<%--
  /**
   * Copyright (c) 2003 by Sun Microsystems, Inc. All rights reserved.
   * Use is subject to license terms.
   *
   * "@(#)sm_chgprofilewiz_impact.jsp    1.7    03/06/04     SMI"
   * 
   */
 --%>
<%@ include file="/layout/toptags.jsp"%>
<html:html>

<head>
<%@include file="/layout/page_head_section.jsp"%>
</head>

<%@ include file="/layout/wizard_body_tag.jsp" %>
<html:form action="/ChangeProfileWizard">
<%@ include file="/wizard/wizard_framework_fields.jsp"%>

<%@ include file="/layout/user_messages.jsp"%>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr class="wizard-content-title-row">

    <td>
      <div class="wizard-content-title-text">
        <bean:message key="storage.mgmt.system.chgprofile.wizard.impact.header"/>
      </div>
    </td>
  </tr>
  <tr>
    <td class="wizard-content-divider"><img alt width="1" height="1" src="/images/general/dot.gif"
border="0"></td>
  </tr>

</table>
<!-- spacer between two sections -->
<table bgcolor="#ffffff" border="0" cellpadding="0" cellspacing="0" width="100%">
  <tr>
    <td><img alt border="0" height="20" width="1" src="images/general/dot.gif"></td>
  </tr>
</table>

<table>
  <tr><td>
    <table border="0" cellspacing="0" cellpadding="2" align="left" bgcolor="#9999CC">
      <tr><td>
        <table cellspacing="0" cellpadding="5" border="0"  bgcolor="#FFFFFF">
          <tr>
            <td valign="top"><img src="images/icons/warning_16.gif" width="16" height="16" alt='<bean:message key="icon.warning"/>' border="0"></td>
            <td>
             <div class="error-message-header-text">    
               <!-- show the appropriate error message depending on if there are affected volumes -->
               <logic:present name="Profile" property="affectedVolumes">
                 <bean:message key="storage.mgmt.system.chgprofile.wizard.impact.withvolumes"/>
               </logic:present>          
               <logic:notPresent name="Profile" property="affectedVolumes">
                 <bean:message key="storage.mgmt.system.chgprofile.wizard.impact.novolumes"/>
               </logic:notPresent> 
             </div>
          </tr>
        </table>
      </td></tr>
    </table>
  </td></tr>
  <tr><td>
    <img src="/nsm/images/general/dot.gif" width="1" height="10" border="0">
  </td></tr>
</table>
<!-- spacer between two sections -->
<table bgcolor="#ffffff" border="0" cellpadding="0" cellspacing="0" width="100%">
  <tr>
    <td><img alt border="0" height="20" width="1" src="images/general/dot.gif"></td>
  </tr>
</table>

<!-- only show the table listing of affected volume if we have any -->
<logic:present name="Profile" property="affectedVolumes">

<!-- table for header -->
<table border="0" cellpadding="0" cellspacing="0" width="100%">
    <tr>
      <td>
        <table border="0" cellpadding="0" cellspacing="0" width="100%">
          <tr>

            <td nowrap>
              <div class="major-category-text">
                <bean:message key="storage.mgmt.system.chgprofile.wizard.affected.volumes"/>                
              </div>
            </td>
            <td valign="bottom" width="99%">
              <table border="0" cellpadding="0" cellspacing="0" width="100%">
                <tr>
                  <td class="property-separator" valign="bottom"><img alt border="0" height="2" src="/images/general/dot.gif" width="1"></td>

                </tr>
              </table>
            </td>
          </tr>
        </table>
      </td>
    </tr>
    <tr>
      <td><img alt border="0" height="5" src="/images/general/dot.gif" width="1"></td>
    </tr>
  </table>

<!-- table for volume listing -->
<table class="back-table" border="0" cellspacing="0" cellpadding="1" >  
  <tr>
    <td>
      <table class="front-table" border="0" cellspacing="0" cellpadding="0">
        <tr class="header-row">
          <td nowrap>
             <div class="table-header-text">
               <bean:message key="storage.mgmt.system.chgprofile.wizard.volumename"/>
             </div>
           </td>                                                                    
          <td nowrap>
             <div class="table-header-text">
               <bean:message key="storage.mgmt.system.chgprofile.wizard.assoctray"/>
             </div>
           </td>                                                                    
        </tr>      
        <logic:iterate id="volume" name="Profile" property="affectedVolumes" type="StorageVolumeInterface">
         <tr>
          <td>
             <div class="table-normal-text">
               <bean:write name="volume" property="name"/>
             </div>
           </td>
          <td align="right">
             <div class="table-normal-text">
               <bean:write name="volume" property="trayId"/>
             </div>
           </td>
         </tr>
        </logic:iterate>         
      </table> <!-- end front-table -->
    </td>
  </tr>
</table> <!-- end back-table-->

</logic:present>

</html:form>
</body>

</html:html>

