<%--
  /**
   * Copyright (c) 2003 by Sun Microsystems, Inc. All rights reserved.
   * Use is subject to license terms.
   *
   * "@(#)sm_clone_traywiz_confirm.jsp    1.9    03/08/19     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="/CloneTrayWizard">
<%@ 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="clone.tray.wizard.summary"/>
      </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>
    <%@page import="com.sun.netstorage.array.mgmt.cfg.ui.forms.CloneTrayForm"%>
    <%
       CloneTrayForm form = (CloneTrayForm)session.getAttribute("CloneTray");
       TrayInterface source = form.getSourceTray();
    %>
    <td><bean:message key="clone.tray.wizard.sourcetray" arg0="<%=source.getId()%>"/></td>
  </tr>  
   <tr>
    <td><bean:message key="clone.tray.wizard.desttrays" /></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.type"/>
             </div>
           </td>   
            <td>
             <div class="table-header-text">
               <bean:message key="tray.table.drivenum.short"/>
             </div>
           </td>    
            <td>
             <div class="table-header-text">
               <bean:message key="tray.table.drivecapacity"/>
             </div>
           </td>           
        </tr>
        
       <logic:present name="CloneTray" property="destinations">      
          <logic:iterate id="destTray" name="CloneTray" property="destinations" type="TrayInterface" indexId="index">           
               <tr>                 
                  <td align="center">                       
                    <div class="table-normal-text">  
                     <bean:write name="destTray" property="id"/>
                    </div>
                  </td> 
                  <td align="center">                         
                    <div class="table-normal-text">
                      <%
                          String typeStr = "tray.type." + destTray.getTrayType();                                
                      %>
                      <bean:message key="<%=typeStr%>"/>
                    </div>
                  </td> 
                  <td align="center">                         
                    <div class="table-normal-text">
                     <bean:write name="destTray" property="numberOfDrives"/>
                    </div>
                  </td> 
                  <td align="center">                         
                   <div class="table-normal-text">
                     <%=nf.format(nf.parse(Convert.bytesToGB(destTray.getDriveCapacity())))%> 
                     <bean:message key="size.GB"/>
                   </div>
                  </td>                                                                                         
               </tr>
          </logic:iterate>
        </logic:present>

        
      </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>
</html:form>
</body>

</html:html>

