	<%@  page pageEncoding="utf-8" contentType="text/html;charset=utf-8" import="com.novell.webaccess.common.JSPConduit,
                                                                             java.util.ResourceBundle,
                                                                             com.novell.emframe.dev.eMFrameUtils" %>

<%@ taglib uri="/WEB-INF/iman.tld" prefix="iman" %>

<%@ taglib uri="/WEB-INF/c.tld" prefix="c" %>
<%@ taglib uri="/WEB-INF/x.tld" prefix="x" %>




<iman:stringtable bundle="DevResources"/>
<x:parse xml="${edas}" var="edasXml"/>



<HTML>
<HEAD>
   <TITLE><iman:string key="ProductName"/></TITLE>
   <LINK rel="stylesheet" href="<c:out value="${ContextPath}" />/portal/modules/dev/css/hf_style.css">
   <iman:include page="dev/OSScripts_inc.jsp"/>
   <iman:uihandlerTools/>
   <iman:pageScripts/>
   <iman:eMFrameScripts/>
   <iman:validateNumberScripts/>
   <iman:mvedScripts mode="mvsel"/><%-- Always include for the description field --%>
   <c:if test="${DeviceType=='browser'}">
      <iman:mvedScripts mode="mvie"/>
   </c:if>
   <SCRIPT>
      function onInit()
      {
         var form=document.forms[0];

         <%-- Other name --%>
         <c:if test="${taskIsMoo=='false'}">
            mvLoadFromPack("_cn", "<iman:toScript><c:out value="${otherName}"/></iman:toScript>");
         </c:if>
      }

      function isPageValid()
      {
         var form=document.forms[0];

         <%-- Other name --%>
         <c:if test="${otherNameRights=='RW' && taskIsMoo=='false'}">
            form.otherName.value = mvGetValuesAsPack("_cn" );
         </c:if>

         return notifyAllOfExit();
      }
   </SCRIPT>
</HEAD>

<BODY onLoad="onInit();">
<FORM name="form" method=post action="webacc">
   <iman:include page="dev/Messagebar_inc.jsp"/>
   <iman:include page="dev/BookVars_inc.jsp"/>

   <TABLE class="mediumtext" border="0" cellpadding="0" cellspacing="0">


      <%-- Other name --%>
      <c:if test="${taskIsMoo=='false'}">
      <TR>
         <TD align="left" colspan="2">
            <iman:string key="OtherName"/>:&nbsp;
         </TD>
      <c:if test="${DeviceType=='pocket'}"></TR><TR></c:if>
         <TD>
            <c:if test="${otherNameRights=='RW'  || taskIsMoo=='true'}">
               <INPUT type="hidden" name="otherName" value="">
            </c:if>
            <iman:mved name="_cn" minLength="1" maxLength="64" ignoreCase="true" enforceUnique="true" readonly="${otherNameRights!='RW'}"  />
         </TD>
         <TD valign="top">
         </TD>
      </TR>
      <TR><TD height="9"></TD></TR>
      </c:if>


      <%-- Owner --%>
      <TR>
         <TD align="left" colspan="2">
            <c:out value="${ownerDisplayName}"/>:&nbsp;&nbsp;
         </TD>
      <c:if test="${DeviceType=='pocket'}"></TR><TR></c:if>
         <TD>
            <c:if test="${edasRights.target.owner.writeable  || taskIsMoo=='true'}">
               <INPUT type="hidden" name="eDir$target$owner" value="<c:out value="${eDir$target$owner}" escapeXml="false"/>">
               <SCRIPT>addToNotificationList('owner', 'uih_mvStringEditor');</SCRIPT>
            </c:if>
            <x:set var="MVStringEditor_xmlNodeSet" select="$edasXml/edas/owner" scope="request"/>
            <iman:mved readonly="${!edasRights.target.owner.writeable}" enforceUnique="true" name="_owner" objectTypeName="*" history="true" />
         </TD>
         <TD valign="top">
            <c:set var="mode"><x:out select="$edasXml/edas/owner/@mode"/></c:set>
            <iman:mooMode name="_owner_mode" value="${mode}" multi="true" />
         </TD>
      </TR>
      <TR><TD height="9"></TD></TR>

      <%-- ou --%>
      <TR>
         <TD align="left" colspan="2">
            <c:out value="${ouDisplayName}"/>:&nbsp;&nbsp;
         </TD>
      <c:if test="${DeviceType=='pocket'}"></TR><TR></c:if>
         <TD>
            <c:if test="${edasRights.target.ou.writeable  || taskIsMoo=='true'}">
               <INPUT type="hidden" name="eDir$target$ou" value="<c:out value="${eDir$target$ou}" escapeXml="false"/>">
               <SCRIPT>addToNotificationList('ou', 'uih_mvStringEditor');</SCRIPT>
            </c:if>
            <x:set var="MVStringEditor_xmlNodeSet" select="$edasXml/edas/ou" scope="request"/>
            <iman:mved maxLength="64" readonly="${!edasRights.target.ou.writeable}" enforceUnique="true" ignoreCase="true" minLength="1" name="_ou"               />
         </TD>
         <TD valign="top">
            <c:set var="mode"><x:out select="$edasXml/edas/ou/@mode"/></c:set>
            <iman:mooMode name="_ou_mode" value="${mode}" multi="true" />
         </TD>
      </TR>
      <TR><TD height="9"></TD></TR>

      <%-- o --%>
      <TR>
         <TD align="left" colspan="2">
            <c:out value="${oDisplayName}"/>:&nbsp;&nbsp;
         </TD>
      <c:if test="${DeviceType=='pocket'}"></TR><TR></c:if>
         <TD>
            <c:if test="${edasRights.target.o.writeable  || taskIsMoo=='true'}">
               <INPUT type="hidden" name="eDir$target$o" value="<c:out value="${eDir$target$o}" escapeXml="false"/>">
               <SCRIPT>addToNotificationList('o', 'uih_mvStringEditor');</SCRIPT>
            </c:if>
            <x:set var="MVStringEditor_xmlNodeSet" select="$edasXml/edas/o" scope="request"/>
            <iman:mved maxLength="64" readonly="${!edasRights.target.o.writeable}" enforceUnique="true" ignoreCase="true" minLength="1" name="_o"               />
         </TD>
         <TD valign="top">
            <c:set var="mode"><x:out select="$edasXml/edas/o/@mode"/></c:set>
            <iman:mooMode name="_o_mode" value="${mode}" multi="true" />
         </TD>
      </TR>
      <TR><TD height="9"></TD></TR>

      <%-- description --%>
      <TR>
      <TD align=left colspan=2>
         <c:out value="${descriptionDisplayName}"/>:&nbsp;&nbsp;
      </TD>
      <c:if test="${DEVICE_TYPE=='pocket'}"></TR><TR></c:if>

      <TD>
         <c:if test="${edasRights.target.description.writeable}">
            <INPUT type="hidden" name="eDir$target$description" value="<c:out value="${eDir$target$description}" escapeXml="false"/>" >
            <SCRIPT>addToNotificationList('description', 'uih_mvStringEditor');</SCRIPT>
         </c:if>

         <x:set var="MVStringEditor_xmlNodeSet" select="$edasXml/edas/description" scope="request"/>
         <c:set var="MVStringEditor_bigEditBox" value="true" scope="request"/>
         <iman:mved mode="mvsel" maxLength="1024" readonly="${!edasRights.target.description.writeable}" enforceUnique="true" ignoreCase="true" minLength="1" name="_description"/>
      </TD>
      <TD valign=top>
         <c:set var="mode"><x:out select="$edasXml/edas/description/@mode"/></c:set>
         <iman:mooMode name="_description_mode" value="${mode}" multi="true"/>
      </TD>
   </TR>
      <TR><TD height="9"></TD></TR>

   </TABLE>

</FORM>
<iman:include page="dev/OSFooter_inc.jsp"/>
</BODY>
</HTML>
