<page xmlns="http://bali.us.oracle.com/cabo/baja"
      xmlns:baja="http://bali.us.oracle.com/cabo/baja"
      xmlns:data="http://bali.us.oracle.com/cabo/marlin"
      xmlns:html="http://www.w3.org/TR/REC-html40">

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

        <html:title>
          <text data:text="title@notifRuleData" />
        </html:title>
        <html:noScript>
          "This page uses JavaScript to perform the list of values lookup. Your browser either does not support JavaScript, or it is disabled.  Please enable JavaScript, or upgrade your browser."
        </html:noScript>

        <form name="delForm" 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>
  
            <contentFooter>
              <switcher data:childName="hasPrivileges@notifRuleData">
                <case name="true">
                  <tableLayout>
                    <contents>
                      <rowLayout>
                        <contents>
                          <spacer width="20"/>
                          <submitButton data:text="NO@commonResourceBundle" name="event" value="No" />
                          <spacer width="10"/>
                          <submitButton data:text="YES@commonResourceBundle" name="event" value="Yes" />
                        </contents>
                      </rowLayout>
                    </contents>
                  </tableLayout>
                </case>
                <case name="false">
                  <switcher data:childName="operation@notifRuleData">
                    <case name="delete">
                      <tableLayout>
                        <contents>
                          <rowLayout>
                            <contents>
                              <spacer width="20"/>
                              <submitButton data:text="OK@commonResourceBundle" name="event" value="Ok" />
                            </contents>
                          </rowLayout>
                        </contents>
                      </tableLayout>
                    </case>
                    <case name="edit">
                      <tableLayout>
                        <contents>
                          <rowLayout>
                            <contents>
                              <spacer width="20"/>
                              <button data:text="VIEW_RULE_DETAILS@notifResourceBundle" data:destination="returnUrl@notifRuleData" />
                              <spacer width="10"/>
                              <submitButton data:text="OK@commonResourceBundle" name="event" value="Ok" />
                            </contents>
                          </rowLayout>
                        </contents>
                      </tableLayout>
                    </case>
                  </switcher>                                                
                </case>
              </switcher>
            </contentFooter>
 
              <contents>
                <header messageType="confirmation"
                        data:text="CONFIRMATION@commonResourceBundle"/>
                <switcher data:childName="hasPrivileges@notifRuleData">
                  <case name="true">
                    <flowLayout>
                      <contents>
                        <styledText data:text="deleteRuleConfMsg@notifRuleData"
                                          styleClass="OraInstructionTextStrong" />
                      </contents>
                    </flowLayout>
                  </case>
                  <case name="false">
                    <switcher data:childName="operation@notifRuleData">
                      <case name="delete">
                        <flowLayout>
                          <contents>
                            <styledText data:text="deleteRuleNoPrivMsg@notifRuleData"
                                              styleClass="OraInstructionTextStrong" />
                          </contents>
                        </flowLayout>
                      </case>
                      <case name="edit">
                        <flowLayout>
                          <contents>
                            <styledText data:text="editRuleNoPrivMsg@notifRuleData"
                                              styleClass="OraInstructionTextStrong" />
                          </contents>
                        </flowLayout>
                      </case>
                    </switcher>                                                
                  </case>
                </switcher>
              </contents>
            </pageLayout>
          </contents>
        </form>
      </contents>
      <provider>
        <data name="commonResourceBundle">
          <bundle class="oracle.sysman.resources.CommonResourceBundle"/>
        </data>
        <data name="notifResourceBundle">
          <bundle class="oracle.sysman.resources.NotifMsg"/>
        </data>
        <data name="notifRuleData">
          <method class="oracle.sysman.eml.pref.NotifRulesPref"
                    method="getNotifRuleInfoForEditDelete"/>
        </data>
      </provider>
    </dataScope>
  </baja:content>
  <baja:handlers>
    <event name="Yes">
      <method class="oracle.sysman.eml.pref.NotifRuleEvents" 
              method="deleteNotifRule"/>
    </event> 
    <event name="No">
      <method class="oracle.sysman.eml.pref.NotifRuleEvents" 
              method="deleteNotifRule"/>
    </event> 
    <event name="Ok">
      <method class="oracle.sysman.eml.pref.NotifRuleEvents" 
              method="deleteNotifRule"/>
    </event> 
  </baja:handlers>
</page>
