<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:data="http://bali.us.oracle.com/cabo/marlin">

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

    <dataScope>
      <contents>

        <html:title>
          <text marlin:text="browserTitle@testAvailableActions" />
        </html:title>

        <form name="notifRuleActions" method="post" >
          <contents>

            <pageLayout> 
              
              <mediumAdvertisement>
                <include baja:node="../oemBanner" />
              </mediumAdvertisement>

              <globalButtons>
                <include baja:node="../globalButtonBar" />
              </globalButtons>

              <tabs>
                <include baja:node ="../globalTabs" />
              </tabs>

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


              <pageHeader>
                <include baja:node="header"/>
              </pageHeader>

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

              <contents>
            
                <!--  1st page - notification rule's basic information -->
                <spacer height="30"/>
                <header data:text="createEditHeader@testAvailableActions" />
                  <stackLayout>
                    <contents>
                
                     <tableLayout cellSpacing="10" width="100%">
                       <contents>                      
                         <rowLayout hAlign="right">
                           <contents>
                             <flowLayout>
                               <contents>
                                 <resetButton text="Revert" />
                                 <button text="Apply"/>
                               </contents>
                             </flowLayout>                                                
                           </contents>
                         </rowLayout>
                       </contents>
                     </tableLayout>

                     <subTabLayout>
                       <subTabs>
                         <subTabBar selectedIndex="3">
                          <contents>
                           <link text="Properties"
                                 destination="testCreateNr" />
                           <link text="Targets"
                                 destination="testTargets" />
                           <link text="Metrics"
                                 destination="testMetrics" />
                           <link text="Actions"
                                 destination="testActions" />
                          </contents>
                         </subTabBar>
                       </subTabs>
                       <contents>
                         <stackLayout>
                           <contents>
                             <spacer height="10"/>
                             <styledText text="Specify the notification actions that should occur as part of this rule."
                                         styleClass="OraInstructionText"/>
                             <spacer height="10"/>

                            <tableLayout cellSpacing="25" width="100%">
                              <contents>
            
                                <rowLayout rendered="false"
                                           marlin:rendered="errorOccurred@testAvailableActions"
                                           vAlign="top">
                                  <contents>
                                    <cellFormat vAlign="top">
                                      <contents>
                                        <messageBox message="Correct the following errors" 
                                                    messageType="error">
                                          <contents marlin:childData="errorData@testAvailableActions">
                                            <link data:text="label" data:longDesc="message" data:destination="destination"/>
                                          </contents>                                                
                                        </messageBox>                                        
                                      </contents>
                                    </cellFormat>
                                  </contents>
                                </rowLayout>

                                <rowLayout vAlign="top">
                                  <contents>
                                    <cellFormat vAlign="top">
                                      <contents>
                                        <header text="Email">
                                          <contents>
                                            <stackLayout>
                                              <contents>
                                                <checkBox name="emailCheckbox" 
                                                          text="Send me Email" 
                                                          marlin:checked="sendEmail@testAvailableActions" 
                                                          value="0" />
                                                <spacer height="10"/>
                                                <styledText text="Specify your email address to which notifications will be sent. This email address will be used for ALL notificaiton rules for which you choose to receive email. Other administrators can individually choose to receive email for this rule and specify their own email address"
                                                            styleClass="OraInstructionText"/>
                                                <spacer height="10"/>
                                                <messageTextInput prompt="Email Address"
                                                                  data:messageType="emailMsgType@testAvailableActions"
                                                                  data:message="emailInlineMsg@testAvailableActions"
                                                                  data:anchor="emailAnchor@testAvailableActions"
                                                                  columns="30" 
                                                                  name="emailAddress"
                                                                  data:text="emailAddress@testAvailableActions"/>
                                              </contents>
                                            </stackLayout>                                                        
                                          </contents>
                                        </header>
                                      </contents>
                                    </cellFormat>
                                  </contents>
                                </rowLayout>
     
                                <rowLayout vAlign="top">
                                  <contents>
                                    <cellFormat vAlign="top">
                                      <contents>
                                        <header text="SNMP Trap">
                                          <contents>
                                            <inlineMessage marlin:messageType="trapMsgType@testAvailableActions"
                                                           marlin:anchor="trapAnchor@testAvailableActions"
                                                           marlin:message="trapInlineMsg@testAvailableActions">
                                              <contents>
                                                <checkBox name="trapCheckbox" 
                                                          text="Send SNMP trap" 
                                                          marlin:checked="sendTrap@testAvailableActions" 
                                                          value="0" />
                                              </contents>                                                       
                                            </inlineMessage>                                                       
                                          </contents>
                                        </header>
                                      </contents>
                                    </cellFormat>
                                  </contents>
                                </rowLayout>
    
                                <switcher marlin:childName="showProgram@testAvailableActions">
                                  <case name="true">
                                    <rowLayout vAlign="top">
                                      <contents>
                                        <cellFormat vAlign="top">
                                          <contents>
                                            <header text="Command">
                                              <contents>
                                                <stackLayout>
                                                  <contents>
                                                    <checkBox name="programCheckbox" 
                                                              text="Execute Command" 
                                                              marlin:checked="executeCommand@testAvailableActions" 
                                                              value="0" />
                                                    <spacer height="10"/>
                                                    <messageTextInput prompt="Command"
                                                                      data:messageType="commandMsgType@testAvailableActions"
                                                                      data:message="commandInlineMsg@testAvailableActions"
                                                                      data:anchor="commandAnchor@testAvailableActions"
                                                                      rows="5" 
                                                                      columns="60" 
                                                                      name="commandName"
                                                                      data:text="commandName@testAvailableActions"/>
                                                  </contents>
                                                </stackLayout>                                                        
                                              </contents>
                                            </header>
                                          </contents>
                                        </cellFormat>
                                      </contents>
                                    </rowLayout>
                                  </case>
                                  <case name="false">
                                    <switcher marlin:childName="mode@testAvailableActions">
                                      <case name="edit">
                                        <rowLayout vAlign="top">
                                          <contents>
                                            <cellFormat vAlign="top">
                                              <contents>
                                                <header text="Command">
                                                  <contents>
                                                    <stackLayout>
                                                      <contents>
                                                        <checkBox name="programCheckbox" 
                                                                  text="Execute Command" 
                                                                  marlin:checked="executeCommand@testAvailableActions" 
                                                                  disabled="true"
                                                                  value="0" />
                                                        <spacer height="10"/>
                                                        <messageTextInput prompt="Command"
                                                                          rows="5" 
                                                                          columns="60" 
                                                                          name="commandName"
                                                                          disabled="true"
                                                                          data:text="commandName@testAvailableActions"/>
                                                      </contents>
                                                    </stackLayout>                                                        
                                                  </contents>
                                                </header>
                                              </contents>
                                            </cellFormat>
                                          </contents>
                                        </rowLayout>
                                      </case>
                                    </switcher>
                                  </case>
                                </switcher>
     
                              </contents>
                            </tableLayout>

                           </contents>
                         </stackLayout>
                       </contents>
                     </subTabLayout>

                     <tableLayout cellSpacing="10" width="100%">
                       <contents>                      
                         <rowLayout hAlign="right">
                           <contents>
                             <flowLayout>
                               <contents>
                                 <resetButton text="Revert" />
                                 <button text="Apply"/>
                               </contents>
                             </flowLayout>                                                
                           </contents>
                         </rowLayout>
                       </contents>
                     </tableLayout>

                    </contents>
                  </stackLayout>

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

      <provider>
        <data name="testAvailableActions">
          <method class="oracle.sysman.eml.pref.TestFaintTabs"
                  method="testGetActionsDetailData" />
        </data>         
      </provider>
    </dataScope>

  </baja:content>

  <handlers> 
  </handlers>
    
</page>

