<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">
    <dataScope>

      <contents>
        <html:title>
         <text data:text="title@addRowData"/>
        </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="hostUserAdd" 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@addRowData">
                  <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="okAddUser" />
                          </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@addRowData">
             <case name="okNode">          
              <stackLayout>
               <contents>
                  <messageBox messageType="warning"
                           data:message="inlineConfirm@addRowData"
                           rendered="false"
                           data:rendered="showConfirm@addRowData" />                
            <spacer height="10"/>
            <header data:text="ADD_NEW_LOCAL_USER@hostResourceBundle">
              
              <contents>
                
              <tableLayout width="100%">
                 <contents>
                  <rowLayout>
                   <contents>
                    
                    <cellFormat>
                     <contents>
                      <rowLayout hAlign="left">
                       <contents>
                          <styledText data:text="HOST_USER_ADD_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="okAddUser" />
                       </contents>                       
                      </rowLayout>
                     </contents>
                    </cellFormat>                    
                    
                   </contents>
                  </rowLayout>    
                  
                </contents>
               </tableLayout>               
               <spacer height="20"/>

            <header data:text="PROFILE_INFORMATION@hostResourceBundle">              
              <contents>               
                <tableLayout cellSpacing="5">
                             <contents>                             
                              
                              <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@addRowData"/>                                    
                                   </contents>                                   
                                  </cellFormat>                                  
                                 </contents>
                               </rowLayout>                                
                              
                              <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"/>
                                         <textInput maximumLength="64" data:text="userName@addRowData" name="userNameInput"/>
                                     <spacer height="8"/>                                    
                                   </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" 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" 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="8"/>
                                     <textInput  maximumLength="64" data:text="userID@addRowData" name="userIDInput"/>                                    
                                   </contents>                                   
                                  </cellFormat>                                  
                                 </contents>
                               </rowLayout>                                
                              
                              <rowLayout vAlign="top">
                               <contents>
                                      <spacer width="8"/>
                                  <cellFormat vAlign="top">
                                    <contents>           
                                    <spacer width="8"/>
                                    </contents>
                                  </cellFormat>                                  
                                  <cellFormat vAlign="top" hAlign="left">                                                                     
                                    <contents>
                                    <spacer width="10"/>
                                         <styledText data:text="USER_ID_TIP@hostResourceBundle" styleClass="OraInlineInfoText"/>
                                     <spacer height="8"/>                                    
                                   </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@addRowData" name="homeDirectoryInput"/>
                                     <spacer height="8"/>                                    
                                   </contents>                                   
                                  </cellFormat>                                  
                                 </contents>                               
                               </rowLayout>        

                              <rowLayout>                              
                               <contents>                                
                                      <spacer width="8"/>
                                  <cellFormat hAlign="right">
                                    <contents>           
                                    <spacer height="10" width="8"/>
                                    </contents>
                                  </cellFormat>                                  
                                  <cellFormat hAlign="left">                                                                     
                                    <contents>
                                    <spacer width="5"/>                                    
                                         <checkBox name="emptyHomeCheckBox" data:checked="emptyHome@addRowData" value="true" data:text="EMPTY_HOME@hostResourceBundle"/>
                                     <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@addRowData" 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@addRowData">
                                              <contents marlin:childData="loginShell@addRowData">
                                                <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"                                               
                                                    data:selectedIndex="defaultGroupSelected@addRowData">
                                              <contents marlin:childData="defaultGroup@addRowData">
                                                <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@addRowData" 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@addRowData"
                           rendered="false"
                           data:rendered="showConfirm@addRowData" />              

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

           <spacer height="15"/>

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

      <provider>
      
        <data name="addRowData">
          <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>
  </baja:content>

 <handlers>

    <event name="okAddUser">
      <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>
