<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@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="hostGroupAdd" 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="okEditGroup" />
                          </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_GROUP@hostResourceBundle">

              <contents>

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

                    <cellFormat>
                     <contents>
                      <rowLayout hAlign="left">
                       <contents>
                          <styledText data:text="HOST_GROUP_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="okEditGroup" />
                       </contents>
                      </rowLayout>
                     </contents>
                    </cellFormat>

                   </contents>
                  </rowLayout>

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

            <header data:text="GROUP_INFORMATION@hostResourceBundle">
              <contents>
                <tableLayout cellSpacing="8">
                             <contents>

                              <rowLayout>
                               <contents>
                                      <spacer width="8"/>
                                  <cellFormat hAlign="right">
                                    <contents>
                                     <styledText data:text="GROUP_NAME@hostResourceBundle" styleClass="OraPromptText"/>
                                    </contents>
                                  </cellFormat>
                                  <cellFormat hAlign="left">
                                    <contents>
				    <spacer width="8"/>
                                     <styledText data:text="groupName@editRowData" styleClass="OraInstructionTextStrong"/>

                                   </contents>
                                  </cellFormat>
                                 </contents>
                               </rowLayout>

                              <rowLayout>
                               <contents>
                                      <spacer width="8"/>
                                  <cellFormat hAlign="right">
                                    <contents>
                                          <styledText data:text="GROUP_ID@hostResourceBundle" styleClass="OraPromptText"/>
                                    </contents>
                                  </cellFormat>
                                  <cellFormat hAlign="left">
                                    <contents>                                    
					<textInput  maximumLength="64" name="groupIDInput" data:text="groupID@editRowData"/>
                                   </contents>
                                  </cellFormat>
                                 </contents>
                               </rowLayout>

                              <rowLayout>
                               <contents>
                                      <spacer width="8"/>
                                  <cellFormat hAlign="right">
                                    <contents>
                                          <styledText data:text="GROUP_MEMBERS@hostResourceBundle" styleClass="OraPromptText"/>
                                    </contents>
                                  </cellFormat>
                                  <cellFormat hAlign="left">
                                    <contents>
                                         <textInput maximumLength="64" data:text="groupMembers@editRowData" name="groupMembersInput"/>

                                   </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="getCachedGroupData"/>
        </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="okEditGroup">
      <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>
