<%--
  /**
   * Copyright (c) 2003 by Sun Microsystems, Inc. All rights reserved.
   * Use is subject to license terms.
   *
   * "@(#)sm_createpoolwiz_confirm.jsp    1.14    03/06/06     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="/CreatePoolWizard.do">
<%@ include file="/wizard/wizard_framework_fields.jsp"%> 
<%@ include file="/layout/user_messages.jsp"%>

<% try {
     com.sun.netstorage.array.mgmt.cfg.ui.forms.PoolCreateForm form =
       (com.sun.netstorage.array.mgmt.cfg.ui.forms.PoolCreateForm) session.getAttribute("CreatePool");

 %>

<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.3"/>
      </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 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>
            <div class="table-header-text">
              <bean:message key="detail.property"/>
            </div>
          </td>   
          <td>
            <div class="table-header-text">
              <bean:message key="detail.value"/>
            </div>
          </td>                 
        </tr>
        
        <tr>
         
          <td>           
            <div class="table-normal-text">
               <bean:message key="storage.mgmt.pools.createwizard.arrayname"/>
            </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.pools.createwizard.oldprofile"/>            
            </div>
          </td>
          <td> 
            <div class="table-normal-text">           
              <%
                 String profileName =
                   ((T4Interface)session.getAttribute(
                      Constants.HttpSessionFields.CURRENT_T4)).getProfile().getName();
              %>
              <bean:message key="<%=profileName%>"/>            
            </div>
          </td>
        
        </tr>
        <tr>
        
          <td>
            <div class="table-normal-text">
              <bean:message key="storage.mgmt.pools.createwizard.newprofile"/>
            </div>
          </td>
          <td>
            <div class="table-normal-text">
              <bean:message key="<%=form.getNewProfile()%>"/>
            </div>
          </td>
        
        </tr>
        <tr>
        
          <td>
            <div class="table-normal-text">
              <bean:message key="storage.mgmt.pools.createwizard.trayId"/>
            </div>
          </td>
          <td>
            <div class="table-normal-text">
              <bean:write name="CreatePool" property="trayToModify.id"/>
            </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> 

<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="detail.property"/>
            </div>
          </td>  
          <td>
            <div class="table-header-text">
              <bean:message key="storage.mgmt.pools.createwizard.pool1"/>
            </div>
          </td> 
          <logic:present name="CreatePool" property="dataDrivePool2">
          <td>
            <div class="table-header-text">
              <bean:message key="storage.mgmt.pools.createwizard.pool2"/>
            </div>
          </td>         
          </logic:present>
        </tr>                       
        <tr>
          <td>
            <div class="table-normal-text">
              <bean:message key="pools.table.name"/>
            </div>
          </td>
          <td>
            <div class="table-normal-text">
              <bean:write name="CreatePool" property="pool1Name"/>
            </div>
          </td>
          <logic:present name="CreatePool" property="dataDrivePool2">
          <td>
            <div class="table-normal-text">
              <bean:write name="CreatePool" property="pool2Name"/>
            </div>
          </td>
          </logic:present>
        </tr>
        <tr>
          <td>
            <div class="table-normal-text">
              <bean:message key="pools.table.datadrives"/>
            </div>
          </td>
          <td>
            <div class="table-normal-text">
              <bean:write name="CreatePool" property="dataDrivePool1"/>
            </div>
          </td>
          <logic:present name="CreatePool" property="dataDrivePool2">
          <td>
            <div class="table-normal-text">
              <bean:write name="CreatePool" property="dataDrivePool2"/>
            </div>
          </td>
          </logic:present>
        </tr>
        <tr>
          <td>
            <div class="table-normal-text">
              <bean:message key="pools.table.hotspare"/>
            </div>
          </td>
          <td>
            <div class="table-normal-text">
              <bean:write name="CreatePool" property="hotsparePool1"/>
            </div>
          </td>
          <logic:present name="CreatePool" property="dataDrivePool2">
          <td>
            <div class="table-normal-text">
              <bean:write name="CreatePool" property="hotsparePool2"/>
            </div>
          </td>
          </logic:present>
        </tr>
        <tr>
          <td>
            <div class="table-normal-text">
              <bean:message key="pools.table.raidtype"/>
            </div>
          </td>
          <td>
            <div class="table-normal-text">
              <bean:write name="CreatePool" property="raidLevelPool1"/>
            </div>
          </td>
          <logic:present name="CreatePool" property="dataDrivePool2">
          <td>
            <div class="table-normal-text">
              <bean:write name="CreatePool" property="raidLevelPool2"/>
            </div>
          </td>
          </logic:present>
        </tr>
        <tr>
          <td>
            <div class="table-normal-text">
              <bean:message key="pools.table.size"/>
            </div>
          </td>                    
          <td>
            <div class="table-normal-text">                        
              <% try { %>
              <%=nf.format(nf.parse(Convert.bytesToGB( ((com.sun.netstorage.array.mgmt.cfg.ui.forms.PoolCreateForm)session.getAttribute("CreatePool")).getSizePool1() )))%>
              <bean:message key="size.GB"/>
              <% } catch(Exception ex) { %>
                &nbsp;
              <% } %>
            </div>
          </td>
          <logic:present name="CreatePool" property="dataDrivePool2">
          <td>
            <div class="table-normal-text">
              <% try { %>
              <%=nf.format(nf.parse(Convert.bytesToGB( ((com.sun.netstorage.array.mgmt.cfg.ui.forms.PoolCreateForm)session.getAttribute("CreatePool")).getSizePool2() )))%>
              <bean:message key="size.GB"/>
              <% } catch(Exception ex) { %>
                &nbsp;
              <% } %>
            </div>
          </td>
          </logic:present>
        </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>


    </td>
  </tr>
</table>

<% } catch (Throwable t) {
    Trace.verbose(this, "create pool confirm exception", t);
}
%>


</html:form>
</body>

</html:html>

