<page xmlns="http://bali.us.oracle.com/cabo/baja" xmlns:html="http://www.w3.org/TR/REC-html40" xmlns:marlin="http://bali.us.oracle.com/cabo/marlin" xmlns:data="http://bali.us.oracle.com/cabo/marlin" xmlns:uix="http://bali.us.oracle.com/cabo/marlin" xmlns:baja="http://bali.us.oracle.com/cabo/baja">
  <head>
  </head>
  <content>
    <dataScope xmlns="http://bali.us.oracle.com/cabo/marlin">
      <contents>
        <html:title>
          <text>
            <boundAttribute name="text">
              <concat>
                <dataObject select="comm_win_title" source="win_title"/>
                <dataObject select="ADD_SITE" source="text"/>:&nbsp;
                <dataObject select="AddSitePageTrainSelectResources" source="text"/>
              </concat>
            </boundAttribute>
          </text>
        </html:title>
        <form name="add_site" method="post">
          <contents>
    	  <switcher data:childName="hasMgmtPriv@user_target_priv">
           <case name="true">
            <pageLayout>
              <!--  <include baja:node="branding" /> -->
              <mediumAdvertisement>
                <include baja:node="../../../oemBanner"/>
              </mediumAdvertisement>
              <globalButtons>
                <include baja:node="../../../globalButtonBar"/>
              </globalButtons>
              <tabs>
                <include baja:node="../../../globalTabs"/>
              </tabs>
              <pageHeader>
                <include baja:node="../../../globalHeader"/>
              </pageHeader>
              <!--
              <copyright>Copyright 2001, Oracle Corp.</copyright>
              -->
              <copyright>
                <include baja:node="../../../copyright"/>
              </copyright>
              <privacy/>
              <!-- Train -->
              <location>
                <train selectedIndex="2">
                  <contents>
                    <link data:text="AddSitePageTrainCreationMethod@text"/>
                    <link data:text="AddSitePageTrainProperties@text"/>
                    <link data:text="AddSitePageTrainSelectResources@text"/>
                    <link data:text="AddSitePageTrainReview@text"/>
                    <link data:text="AddSitePageTrainSummary@text"/>
                  </contents>
                </train>
              </location>
              <!-- CONTENTS -->
              <contents>
                <tableLayout width="100%">
                  <contents>
                    <rowLayout hAlign="right">
                      <contents>
                        <cellFormat>
                          <contents>
                            <styledText text=""/>
                          </contents>
                        </cellFormat>
                        <cellFormat>
                          <contents>
                            <pageButtonBar>
                              <contents>
                                <submitButton unvalidated="true" data:text="Cancel@text" data:shortDesc="Cancel@text" name="event" value="cancel"/>
                                <navigationBar name="nav" value="3" maxValue="5" destination="addSiteSelectionRule" formName="add_site" formSubmitted="true"/>
                              </contents>
                            </pageButtonBar>
                          </contents>
                        </cellFormat>
                      </contents>
                    </rowLayout>
                  </contents>
                </tableLayout>
                <!-- Body Section -->
                <!-- header data:text="AddSitePageTrainChooseRules@text" -->
                <header>
                  <boundAttribute name="text">
                    <concat>
                      <dataObject select="ADD_SITE" source="text"/>:&nbsp;<dataObject select="AddSitePageTrainSelectResources" source="text"/></concat>
                  </boundAttribute>
                  <contents>
                    <stackLayout>
                      <contents>
                        <styledText data:text="ChooseRule@text" styleClass="OraInstructionText"/>
                        <spacer height="8"/>
                        <tableLayout width="40%">
                          <contents>
                                    <rowLayout hAlign="right">
                                      <contents>
                                        <button data:text="showButtonText@rule_list"
                                                data:shortDesc="showButtonText@rule_list"
                                                      baja:event="show"
                                                      data:rendered="rendered@rule_list"/>
                                      </contents>
                                    </rowLayout>
                          </contents>
                        </tableLayout>
                        <table name="ruleListTable" formSubmitted="true" data:blockSize="blockSize@rule_list"
                          data:maxValue="maxValue@rule_list" data:value="value@rule_list"
                          data:columnHeaderData="column@rule_list" width="40%"
                          data:tableData="row@rule_list"
                          data:columnFormats="colformat@columnFormatData">
                          <columnHeaderStamp>
                            <sortableHeader data:text="text" data:sortable="sortable"/>
                          </columnHeaderStamp>
                          <boundAttribute name="columnHeaderData">
                            <dataObject select="column" source="rule_list"/>
                          </boundAttribute>
                          <!-- Add a selection column -->
                          <tableSelection>
                            <singleSelection data:selectedIndex="selectedRuleIndex@rule_list">
                              <contents/>
                            </singleSelection>
                          </tableSelection>
                          <!-- Creating the columns as rowLayouts -->
                          <contents>
                            <styledText data:text="rule_name"/>
                            <formValue name="rule_name" data:value="rule_name"/>
                          </contents>
                        </table>
                      </contents>
                    </stackLayout>
                  </contents>
                </header>
              </contents>
              <!-- Footer Section -->
              <!-- Page Buttons Section -->
              <contentFooter>
                <pageButtonBar>
                  <contents>
                    <submitButton unvalidated="true" data:text="Cancel@text" data:shortDesc="Cancel@text" name="event" value="cancel"/>
                    <navigationBar name="nav" value="3" maxValue="5" destination="addSiteSelectionRule" formName="add_site" formSubmitted="true"/>
                  </contents>
                </pageButtonBar>
              </contentFooter>
            </pageLayout>
          </case>
          </switcher>
          </contents>
        </form>
      </contents>
      <provider>
        <data name="text">
          <bundle class="oracle.sysman.eml.rsc.target.slb.SLBBundle"/>
        </data>
        <data name="rule_list">
          <method class="oracle.sysman.eml.target.slb.mgmt.AddSitePage" method="getRuleNameList"/>
        </data>
        <data name="user_target_priv">
          <method class="oracle.sysman.eml.target.slb.mgmt.RoleBasedMgmt" method="getUserTargetPriv"/>
        </data>
        <data name="win_title">
          <method class="oracle.sysman.eml.target.slb.common.SLB" method="getCommonWinTitle"/>
        </data>
      </provider>
    </dataScope>
  </content>
  <handlers>
    <event name="goto">
      <method class="oracle.sysman.eml.target.slb.mgmt.AddSitePage" method="doNextRuleSelectionPage"/>
    </event>
    <event name="cancel">
      <method class="oracle.sysman.eml.target.slb.mgmt.AddSitePage" method="doCancel"/>
    </event>
    <event name="sort">
      <method class="oracle.sysman.eml.target.slb.common.SLBCommonUIX" method="doSort"/>
    </event>
    <event name="show">
      <method class="oracle.sysman.eml.target.slb.common.SLBCommonUIX" method="doShow"/>
    </event>
  </handlers>
</page>

