<%--
  /**
   * Copyright (c) 2003 by Sun Microsystems, Inc. All rights reserved.
   * Use is subject to license terms.
   *
   * "@(#)sm_chgprofilewiz_confirm.jsp    1.19    03/06/02     SMI"
   * 
   */
 --%>
<%@ include file="/layout/toptags.jsp"%>
<%@ page import="com.sun.netstorage.array.mgmt.cfg.ui.forms.ProfileForm" %>
<html:html>

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

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

<input type="hidden" name="index" value="1">
<%
   ProfileForm form = (ProfileForm)session.getAttribute("Profile");                  
%>
<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.profile.wizard.toc.4"/>
      </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">              
                <logic:present name="Profile" property="affectedVolumes">
                 <bean:message key="storage.mgmt.system.chgprofile.wizard.confirmmsg.volumes"/>
               </logic:present> 
               <logic:notPresent name="Profile" property="affectedVolumes">
                 <bean:message key="storage.mgmt.system.chgprofile.wizard.confirmmsg.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>


<table bgcolor="#ffffff" border="0" cellpadding="0" cellspacing="0" width="100%">
  <tr>
    <td><bean:message key="wizard.reviewselections"/></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 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 colspan="2">
            <div class="table-header-text">
              <bean:message key="detail.properties"/>
            </div>
          </td>                  
        </tr>
        
        <tr>
         
          <td>           
            <div class="table-normal-text">
               <bean:message key="storage.mgmt.system.chgprofile.wizard.t4name"/>
            </div>
          </td>
          <td> 
            <div class="table-normal-text">           
              <bean:write name="CurrentT4" property="name"/>           
            </div>
          </td>
        
        </tr>
        <tr>
        
          <td>    
            <div class="table-normal-text">        
              <bean:message key="storage.mgmt.system.chgprofile.wizard.oldprofile"/>            
            </div>
          </td>
          <td> 
            <div class="table-normal-text">           
              <bean:message key="<%=form.getCurrentProfile().getName()%>"/>
            </div>
          </td>
        
        </tr>
        <tr>
        
          <td>
            <div class="table-normal-text">
              <bean:message key="storage.mgmt.system.chgprofile.wizard.newprofile"/>
            </div>
          </td>
          <td>
            <div class="table-normal-text">
              <bean:message key="<%=form.getNewProfileName()%>"/>
            </div>
          </td>
        
        </tr>
      

        
      </table>

    </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>

 <!-- show trays to allocate -->
<logic:present name="Profile" property="trayWrappersToConfigure">

<table bgcolor="#ffffff" border="0" cellpadding="0" cellspacing="0" width="100%">
  <tr>
    <td><bean:message key="storage.mgmt.system.chgprofile.wizard.confirmalloc"/></td>
  </tr>
</table>

<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>
            <div class="table-header-text">
              <bean:message key="tray.table.id"/>
            </div>
          </td>  
          <td>
            <div class="table-header-text">
              <bean:message key="tray.table.drivenum"/>
            </div>
          </td>         
        </tr> 
        <%
           List drives = null;
           if (form != null) {
	           drives = form.getNumDrivesToAllocate();
           }
        %>
        <logic:present name="Profile" property="trayWrappersToConfigure">
          <logic:iterate id="trayW" name="Profile" property="trayWrappersToConfigure" type="TrayWrapper" indexId="idx">          
            <tr>
              <td align="right">
                <div class="table-normal-text">
                  <bean:write name="trayW" property="tray.id"/>
                </div>
              </td>
              <td align="right">
                <div class="table-normal-text">
                <% if (drives != null) { %>
                   <%= drives.get(idx.intValue())%>
               <% } %>
                </div>
              </td>
            </tr>
          </logic:iterate>
        </logic:present>

        
      </table>

    </td>
  </tr>
</table>
</logic:present>

<!-- 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>



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






</html:form>
</body>

</html:html>

