<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@testNotifRuleInfoData" />
        </html:title>

        <form name="newNotifRuleInfo" 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@testNotifRuleInfoData" />
                  <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="0">
                          <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 rule properties."
                                         styleClass="OraInstructionText"/>
                             <spacer height="10"/>

                             <labeledFieldLayout fieldWidth="90%" labelWidth="10%"> 
                             <contents>                        
                            
                                <messageTextInput prompt="Name" 
                                                  data:styleClass="styleClass@testNotifRuleInfoData"
                                                  columns="30" 
                                                  data:disabled="disabled@testNotifRuleInfoData"
                                                  data:messageType="ruleNameMsgType@testNotifRuleInfoData"
                                                  data:message="ruleNameInlineMsg@testNotifRuleInfoData"
                                                  data:anchor="ruleNameAnchor@testNotifRuleInfoData"
                                                  name="notifRuleName"
                                                  data:required="required@testNotifRuleInfoData"
                                                  data:text="notifRuleName@testNotifRuleInfoData"/>

                                <messageTextInput prompt="Description"
                                                  rows="5"
                                                  columns="60" 
                                                  name="notifRuleDesc"
                                                  data:text="notifRuleDesc@testNotifRuleInfoData"/>
                        
                                <styledText text=""/>                              
                                <spacer height="10"/>
                            
                                Make Public                                              
                                <checkBox name="makePublicCheckbox" 
                                          marlin:checked="publicRule@testNotifRuleInfoData" 
                                          value="0" />
                        
                                <styledText text=""/>                              
                                <styledText text="(Allows other administrators to later specify that they should receive email for this rule)"
                                            styleClass="OraInlineInfoText" />
                            
                                <styledText text=""/>                              
                                <spacer height="10"/>
                        
                                <styledText text=""/>                              
                                <tip>
                                  <contents>
                                    <styledText text="Select the type of target to which this rule applies."/>
                                  </contents>
                                </tip>
                        
                                <inlineMessage prompt="Target Type"
                                               required="uiOnly"
                                               marlin:messageType="targetTypeMsgType@testNotifRuleInfoData"
                                               marlin:anchor="targetTypeAnchor@testNotifRuleInfoData"
                                               marlin:message="targetTypeInlineMsg@testNotifRuleInfoData">
                                  <contents>                                   
                                    <choice name="itemTypeChoice" 
                                            columns="50">
                                      <contents marlin:childData="typerow@testNotifRuleInfoData">
                                        <option marlin:text="available" marlin:selected="selected" />  
                                      </contents>
                                    </choice>
                                  </contents>
                                </inlineMessage>
                        
                                <styledText text=""/>                              
                                <radioButton name="typeRadioButton"
                                             marlin:selected="selectAllTargets@testNotifRuleInfoData" 
                                             text="Apply rule to all targets of the target type selected" 
                                             value="0"/>   
                        
                                <styledText text=""/>                              
                                <radioButton name="typeRadioButton" 
                                             marlin:selected="selectIndividualTargets@testNotifRuleInfoData" 
                                             text="Apply rule to targets that I'll specify" 
                                             value="1"/>
                                
                              </contents>           
                            </labeledFieldLayout>

                             <spacer height="10"/>

                           </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="testNotifRuleInfoData">
          <method class="oracle.sysman.eml.pref.TestFaintTabs"
                  method="testGetNotifRuleInfoData" />
        </data>         
      </provider>
    </dataScope>

  </baja:content>

  <handlers> 
  </handlers>
    
</page>

