<page xmlns="http://bali.us.oracle.com/cabo/baja"
      xmlns:baja="http://bali.us.oracle.com/cabo/baja"
      xmlns:marlin="http://bali.us.oracle.com/cabo/marlin"
      xmlns:html="http://www.w3.org/TR/REC-html40"
      xmlns:oem="http://xmlns.oracle.com/oem/ui/beans"
      xmlns:data="http://bali.us.oracle.com/cabo/marlin">

  <baja:content xmlns="http://bali.us.oracle.com/cabo/marlin">
    <body><contents>
      <script><contents>

         function changed()
         {
           window.document.hostUserEdit.passwordChanged.value = 'yes';
         }

      </contents></script>
    <dataScope>

      <contents>
        <html:title>
         <text data:text="title@editRowData"/>
        </html:title>

        <html:noScript>"JavaScript is not supported by your browser. Oracle requires JavaScript support in order to completely render this page."</html:noScript>

        <form name="hostUserEdit" method="POST">
        <contents>
        <pageLayout xmlns="http://bali.us.oracle.com/cabo/marlin">
          <mediumAdvertisement>
            <include baja:node="../../../oemBanner" />
          </mediumAdvertisement>
          <marlin:globalButtons>
            <include baja:node="../../../globalButtonBar" />
          </marlin:globalButtons>
          <marlin:tabs>
            <include baja:node="../../../globalTabs" />
          </marlin:tabs>
          <marlin:pageHeader>
            <include baja:node="../../../globalHeader" />
          </marlin:pageHeader>

          <marlin:location>
            <include baja:node="../../../breadCrumbs"/>
          </marlin:location>

          <copyright>
           <include baja:node="../../../copyright"/>
          </copyright>

              <contentFooter>
                <switcher childName="okNode" data:childName="node@editRowData">
                  <case name="okNode">
                    <tableLayout>
                      <contents>
                        <rowLayout>
                          <contents>
                            <spacer width="20"/>
                             <submitButton data:text="CANCEL@commonResourceBundle"
                               name="event"
                               value="cancel"/>
                            <spacer width="10"/>
                            <submitButton data:text="OK_BUTTON@mntrResourceBundle"
                                          name="event"
                                          value="okEditUser" />
                          </contents>
                        </rowLayout>
                      </contents>
                    </tableLayout>
                  </case>
                  <case name="errNode">
                    <tableLayout>
                      <contents>
                        <rowLayout>
                          <contents>
                            <submitButton data:text="OK_BUTTON@mntrResourceBundle"
                                          name="event"
                                          value="cancel" />
                          </contents>
                        </rowLayout>
                      </contents>
                    </tableLayout>
                  </case>
                </switcher>
              </contentFooter>


          <contents>
            <switcher childName="okNode" data:childName="node@editRowData">
             <case name="okNode">
              <stackLayout>
               <contents>
                  <messageBox messageType="warning"
                           data:message="inlineConfirm@editRowData"
                           rendered="false"
                           data:rendered="showConfirm@editRowData" />
            <spacer height="10"/>
            <header data:text="EDIT_LOCAL_USER@hostResourceBundle">

              <contents>

              <tableLayout width="100%">
                 <contents>
                  <rowLayout>
                   <contents>

                    <cellFormat>
                     <contents>
                      <rowLayout hAlign="left">
                       <contents>
                          <styledText data:text="HOST_USER_EDIT_INSTRUCTION@hostResourceBundle" styleClass="OraPromptText"/>
                       </contents>
                      </rowLayout>
                     </contents>
                    </cellFormat>

                    <cellFormat>
                     <contents>
                      <rowLayout hAlign="right">
                       <contents>
                            <spacer width="20"/>
                             <submitButton data:text="CANCEL@commonResourceBundle"
                               name="event"
                               value="cancel"/>
                            <spacer width="10"/>
                            <submitButton data:text="OK_BUTTON@mntrResourceBundle"
                                          name="event"
                                          value="okEditUser" />
                       </contents>
                      </rowLayout>
                     </contents>
                    </cellFormat>

                   </contents>
                  </rowLayout>

                </contents>
               </tableLayout>
               <spacer height="20"/>

            <header data:text="PROFILE_INFORMATION@hostResourceBundle">
              <contents>
                <html:input type="hidden" name="passwordChanged" />
                <tableLayout cellSpacing="5">
                             <contents>


                              <rowLayout>
                               <contents>
                                      <spacer width="8"/>
                                  <cellFormat hAlign="right">
                                    <contents>
                                          <styledText data:text="USERNAME@mntrResourceBundle" styleClass="OraPromptText"/>
                                    </contents>
                                  </cellFormat>
                                  <cellFormat hAlign="left">
                                    <contents>
                                    <spacer width="5"/>
                                         <styledText data:text="userName@editRowData" styleClass="OraInstructionTextStrong"/>                                         
                                     <spacer height="8"/>
                                   </contents>
                                  </cellFormat>
                                 </contents>
                               </rowLayout>

                              <rowLayout>
                               <contents>
                                      <spacer width="8"/>
                                  <cellFormat hAlign="right">
                                    <contents>
                                     <styledText data:text="USERS_FULL_NAME@hostResourceBundle" styleClass="OraPromptText"/>
                                    </contents>
                                  </cellFormat>
                                  <cellFormat hAlign="left">
                                    <contents>
                                     <spacer height="8"/>
                                     <textInput  maximumLength="64" name="fullUserNameInput" data:text="fullUserName@editRowData"/>
                                   </contents>
                                  </cellFormat>
                                 </contents>
                               </rowLayout>

                              <rowLayout>
                               <contents>
                                      <spacer width="8"/>
                                  <cellFormat hAlign="right">
                                    <contents>
                                          <styledText data:text="PASSWORD@mntrResourceBundle" styleClass="OraPromptText"/>
                                    </contents>
                                  </cellFormat>
                                  <cellFormat hAlign="left">
                                    <contents>
                                    <spacer width="5"/>
                                         <textInput maximumLength="72" data:text="password@editRowData" onChange="changed();" secret="true" noAutoComplete="true" name="passwordInput"/>
                                     <spacer height="8"/>
                                   </contents>
                                  </cellFormat>
                                 </contents>
                               </rowLayout>

                              <rowLayout vAlign="top">
                               <contents>
                                      <spacer width="8"/>
                                  <cellFormat hAlign="right" vAlign="top">
                                    <contents>
                                    <spacer width="8"/>
                                    </contents>
                                  </cellFormat>
                                  <cellFormat hAlign="left" vAlign="top">
                                    <contents>
                                    <spacer width="10"/>
                                         <styledText data:text="HOST_USER_PASSWORD_TIP@hostResourceBundle" styleClass="OraInlineInfoText"/>
                                     <spacer height="8"/>
                                   </contents>
                                  </cellFormat>
                                 </contents>
                               </rowLayout>

                              <rowLayout>
                               <contents>
                                      <spacer width="8"/>
                                  <cellFormat hAlign="right">
                                    <contents>
                                          <styledText data:text="CONFIRM_PASSWORD@commonResourceBundle" styleClass="OraPromptText"/>
                                    </contents>
                                  </cellFormat>
                                  <cellFormat hAlign="left">
                                    <contents>
                                    <spacer width="5"/>
                                         <textInput maximumLength="72" data:text="password@editRowData" secret="true" noAutoComplete="true" name="confirmPasswordInput"/>
                                     <spacer height="8"/>
                                   </contents>
                                  </cellFormat>
                                 </contents>
                               </rowLayout>

                              </contents>
                     </tableLayout>
                   </contents>
                  </header>

            <header data:text="PROFILE_INFORMATION@hostResourceBundle">
              <contents>
                <tableLayout cellSpacing="4">
                             <contents>

                              <rowLayout>
                               <contents>
                                      <spacer width="8"/>
                                  <cellFormat hAlign="right">
                                    <contents>
                                     <styledText data:text="USER_ID@hostResourceBundle" styleClass="OraPromptText"/>
                                    </contents>
                                  </cellFormat>
                                  <cellFormat hAlign="left">
                                    <contents>
                                     <spacer height="5"/>
				     <textInput maximumLength="64" data:text="userID@editRowData" name="userIDInput"/>
                                   </contents>
                                  </cellFormat>
                                 </contents>
                               </rowLayout>

                              <rowLayout vAlign="bottom">
                               <contents>
                                      <spacer width="8"/>
                                  <cellFormat hAlign="right" vAlign="bottom" >
                                    <contents>
                                    <spacer height="8"/>
                                          <styledText data:text="HOME_DIRECTORY@hostResourceBundle" styleClass="OraPromptText"/>
                                    </contents>
                                  </cellFormat>
                                  <cellFormat hAlign="left" vAlign="bottom" >
                                    <contents>
                                    <spacer width="5"/>
                                         <textInput maximumLength="64" data:text="homeDirectory@editRowData" name="homeDirectoryInput"/>
                                     <spacer height="8"/>
                                   </contents>
                                  </cellFormat>
                                 </contents>
                               </rowLayout>

                              <rowLayout>
                               <contents>
                                      <spacer width="8"/>
                                  <cellFormat hAlign="right">
                                    <contents>
                                          <styledText data:text="ADDITIONAL_USER_INFORMATION@hostResourceBundle" styleClass="OraPromptText"/>
                                    </contents>
                                  </cellFormat>
                                  <cellFormat hAlign="left">
                                    <contents>
                                    <spacer height="8"/>
                                         <textInput data:text="additionalUserInfo@editRowData" name="additionalUserInfoInput"/>
                                     <spacer height="8"/>
                                   </contents>
                                  </cellFormat>
                                 </contents>
                               </rowLayout>

                              <rowLayout>
                               <contents>
                                      <spacer width="8"/>
                                  <cellFormat hAlign="right">
                                    <contents>
                                     <styledText data:text="LOGIN_SHELL@hostResourceBundle" styleClass="OraPromptText"/>
                                    </contents>
                                  </cellFormat>
                                  <cellFormat hAlign="left">
                                    <contents>
                                     <spacer height="8"/>
                                            <choice name="loginShellChoice" id="loginShellChoice"
                                                    selectedIndex ="1" data:selectedIndex="loginShellSelected@editRowData">
                                              <contents marlin:childData="loginShell@editRowData">
                                                <option marlin:text="option" marlin:selected="selected"
                                                       data:value="LoginShell" />
                                              </contents>
                                            </choice>
                                   </contents>
                                  </cellFormat>
                                 </contents>
                               </rowLayout>

                              <rowLayout>
                               <contents>
                                      <spacer width="8"/>
                                  <cellFormat hAlign="right">
                                    <contents>
                                     <styledText data:text="DEFAULT_GROUP@hostResourceBundle" styleClass="OraPromptText"/>
                                    </contents>
                                  </cellFormat>
                                  <cellFormat hAlign="left">
                                    <contents>
                                     <spacer height="8"/>
                                            <choice name="defaultGroupChoice" id="defaultGroupChoice"
                                                    selectedIndex ="1" data:selectedIndex="defaultGroupSelected@editRowData">
                                              <contents marlin:childData="defaultGroup@editRowData">
                                                <option marlin:text="option" marlin:selected="selected"
                                                       data:value="GroupName" />
                                              </contents>
                                            </choice>
                                   </contents>
                                  </cellFormat>
                                 </contents>
                               </rowLayout>

                              <rowLayout>
                               <contents>
                                      <spacer width="8"/>
                                  <cellFormat hAlign="right">
                                    <contents>
                                          <styledText data:text="GROUP_MEMBERSHIPS@hostResourceBundle" styleClass="OraPromptText"/>
                                    </contents>
                                  </cellFormat>
                                  <cellFormat hAlign="left">
                                    <contents>
                                    <spacer width="5"/>
                                         <textInput data:text="groupMembership@editRowData" name="groupMembershipInput"/>
                                     <spacer height="8"/>
                                   </contents>
                                  </cellFormat>
                                 </contents>
                               </rowLayout>

                              </contents>
                     </tableLayout>
                   </contents>
                  </header>


              </contents>

              </header>
              </contents>
             </stackLayout>
            </case>
            <case name="errNode">
              <stackLayout>
               <contents>
                  <messageBox messageType="error"
                           data:message="inlineConfirm@editRowData"
                           rendered="false"
                           data:rendered="showConfirm@editRowData" />

               </contents>
              </stackLayout>
            </case>
           </switcher>


           <spacer height="15"/>

         </contents>
        </pageLayout>
        </contents>
       </form>
      </contents>

      <provider>

        <data name="editRowData">
          <method class="oracle.sysman.eml.host.admin.HostUserGroupPageHandler"
             method="getCachedRowData"/>
        </data>

        <data name="mntrResourceBundle">
            <bundle class="oracle.sysman.resources.MntrResourceBundle"/>
        </data>

        <data name="commonResourceBundle">
            <bundle class="oracle.sysman.resources.CommonResourceBundle"/>
        </data>

        <data name="hostResourceBundle">
            <bundle class="oracle.sysman.eml.host.HostResourceBundle"/>
        </data>

      </provider>

    </dataScope>
    </contents></body>
  </baja:content>

 <handlers>

    <event name="okEditUser">
      <method class="oracle.sysman.eml.host.admin.HostUserGroupPageHandler"
              method="doCommand"/>
    </event>

    <event name="cancel">
      <method class="oracle.sysman.eml.host.admin.HostUserGroupPageHandler"
              method="doCommand"/>
    </event>

  </handlers>

</page>
