<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:baja="http://bali.us.oracle.com/cabo/baja">
  <head>
  </head>
  <baja:content xmlns="http://bali.us.oracle.com/cabo/marlin" xmlns:marlin="http://bali.us.oracle.com/cabo/marlin">
   <body onLoad="loadIt();">
    <contents>
     <dataScope>
       <contents>
        <script>
         <contents>
          function loadIt()
          {
           document.AddSwitchForm.switchName.focus();
          }
         </contents>
        </script>
        <html:title>
          <text>
            <boundAttribute name="text">
              <concat>
                <dataObject select="comm_win_title" source="win_title"/>
                <dataObject select="CfgPageHeader" source="text"/>:&nbsp;<dataObject select="AdaptPageTrainParameters" source="text"/>
              </concat>
            </boundAttribute>
          </text>
        </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="AddSwitchForm" method="post">
          <contents>
            <pageLayout>
              <mediumAdvertisement>
                <include baja:node="../../../oemBanner"/>
              </mediumAdvertisement>
              <globalButtons>
                <include baja:node="../../../globalButtonBar"/>
              </globalButtons>
              <tabs>
                <include baja:node="../../../globalTabs"/>
              </tabs>
              <pageHeader>
                <include baja:node="../../../globalHeader"/>
              </pageHeader>
              <!--
              <marlin:start>
                <include baja:node="../../../../admin/rep/adminSideNav" />
              </marlin:start>
-->
              <copyright>
                <include baja:node="../../../copyright"/>
              </copyright>
              <privacy/>
              <location>
                <train selectedIndex="0">
                  <contents>
                    <link data:text="AdaptPageTrainParameters@text" destination="adaptSwitchParameters"/>
                    <link data:text="AdaptPageTrainAccessInfo@text" destination="adaptSwitchAccessInfo"/>
                    <link data:text="AdaptPageTrainSummary@text" destination="adaptSwitchSummary"/>
                  </contents>
                </train>
              </location>
              <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" baja:event="cancel"/>
                                <navigationBar name="nav" value="1" maxValue="3" destination="adaptSwitchParameters" formName="AddSwitchForm" formSubmitted="true"/>
                              </contents>
                            </pageButtonBar>
                          </contents>
                        </cellFormat>
                      </contents>
                    </rowLayout>
                  </contents>
                </tableLayout>
                <!-- CONTENTS -->
                <!-- Body Section -->
                <header>
                  <boundAttribute name="text">
                    <concat>
                      <dataObject select="CfgPageHeader" source="text"/>:&nbsp;<dataObject select="AdaptPageTrainParameters" source="text"/></concat>
                  </boundAttribute>
                  <contents>
                    <rowLayout width="470">
                      <contents>
                        <stackLayout>
                          <contents>
                            <spacer height="5"/>
                            <!--Labeled Text Section-->
                            <labeledFieldLayout>
                              <contents>
                                <spacer height="20"/>
                                <messageTextInput data:prompt="CfgPageSwitchName@text" required="yes" column="25" maximumLength="80" name="switchName"  data:text="switchName@input"/>
                                <spacer height="2"/>
                                <messageTextInput data:prompt="CfgPageSwitchIP@text" required="yes" column="25" maximumLength="80" name="switchIP" data:tip="CfgPageSwitchIPTip@text" data:text="switchIP@input">
                                  <boundMessage select="switchIPError"/>
                                </messageTextInput>
                                <spacer height="2"/>
                                <formValue name="switchType" data:value="bigip_vendor@vendors"/>      
                                <tableLayout width="200%">
				  <contents>
				    <rowLayout>
				      <contents>				
				        <cellFormat hAlign="right" width="50%">
				          <contents>				        
				            <styledText data:text="model@text"  styleClass="OraPromptText"/>
				          </contents>
				        </cellFormat>
				      </contents>
				      <contents>
				        <cellFormat width="10">
				        </cellFormat>				       				       				
				      </contents>
				      <contents>
				        <cellFormat hAlign="left">
				          <contents>
				            <styledText data:text="bigip_vendor_text@vendors"  styleClass="OraDataText"/>
				       	  </contents>
				        </cellFormat>	
				      </contents>				   
				    </rowLayout>				
				  </contents>
				</tableLayout>

                                <!--
                          <spacer height="2" />
                             <messageChoice name="switchType" data:prompt="bigip_vendorvendor@text" data:selectedValue="switchType@input" required="yes">
                                  <contents data:childData="vendordetails@slbconstants">
                                    <option text="             " data:value="none"/>
                                    <option data:text="bigip_vendor_text" data:value="bigip_vendor"/>
                                    <option data:text="nortel_vendor_text" data:value="nortel_vendor"/>
                                  </contents>
                                </messageChoice>
                                
                          <spacer height="2" />
                          <messageTextInput secret="true" data:prompt="CfgPageSnmpReadString@text" required="yes"
                            column="25" maximumLength="40" name="snmpReadString" data:tip="CfgPageSnmpReadStringTip@text"  data:text="snmpReadString@input">
                          </messageTextInput>
                          <spacer height="2" />
                          <messageTextInput data:prompt="CfgPageWebAccessUserName@text" required="yes"
                            column="25" maximumLength="40" name="webAccessUserName" data:tip="CfgPageWebAccessUserNameTip@text"  data:text="webAccessUserName@input">
                          </messageTextInput>
                          <spacer height="2" />
                          <messageTextInput secret="true" data:prompt="CfgPageWebAccessPassword@text" required="yes"
                            column="25" maximumLength="40" name="webAccessPassword" data:tip="CfgPageWebAccessPasswordTip@text"  data:text="webAccessPassword@input">
                          </messageTextInput>-->
                              </contents>
                            </labeledFieldLayout>
                          </contents>
                        </stackLayout>
                      </contents>
                    </rowLayout>
                  </contents>
                </header>
              </contents>
              <!-- Page Buttons Section -->
              <contentFooter>
                <pageButtonBar>
                  <contents>
                    <submitButton unvalidated="true" data:text="Cancel@text" baja:event="cancel"/>
                    <navigationBar name="nav" value="1" maxValue="3" destination="adaptSwitchParameters" formName="AddSwitchForm" formSubmitted="true"/>
                  </contents>
                </pageButtonBar>
              </contentFooter>
            </pageLayout>
          </contents>
        </form>
      </contents>
      <provider>
        <data name="text">
          <bundle class="oracle.sysman.eml.rsc.target.slb.SLBBundle"/>
        </data>
        <data name="vendors">
          <method class="oracle.sysman.eml.target.slb.initcfg.AddConfiguredSwitch" method="getvendor"/>
        </data>
        <data name="error">
          <method class="oracle.sysman.eml.target.slb.initcfg.AddConfiguredSwitch" method="getErrors"/>
        </data>
        <data name="input">
          <method class="oracle.sysman.eml.target.slb.initcfg.AddConfiguredSwitch" method="getInputValues"/>
        </data>
        <data name="win_title">
          <method class="oracle.sysman.eml.target.slb.common.SLB" method="getCommonWinTitle"/>
        </data>
      </provider>
    </dataScope>

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

  <handlers>
    <event name="cancel">
      <method class="oracle.sysman.eml.target.slb.initcfg.AddConfiguredSwitch" method="doCancel"/>
    </event>
    <!--<event name="add">
      <method class="oracle.sysman.eml.target.slb.initcfg.AddConfiguredSwitch"
              method="doAdd"/>
    </event>
    <event name="back">
      <method class="oracle.sysman.eml.target.slb.initcfg.AddConfiguredSwitch"
              method="doBack"/>
    </event>-->
    <event name="goto">
      <method class="oracle.sysman.eml.target.slb.initcfg.AddConfiguredSwitch" method="doNextSwitchParametersPage"/>
    </event>
    <event name="create">
      <method class="oracle.sysman.eml.target.slb.initcfg.AddConfiguredSwitch" method="doLoad"/>
    </event>
  </handlers>
</page>
