<%--
  /**
   * Copyright (c) 2003 by Sun Microsystems, Inc. All rights reserved.
   * Use is subject to license terms.
   *
   * "@(#)sm_configstoragewiz_selectnames.jsp     1.2     03/07/17     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="/ConfigStorageByProfileWizard.do">
<% try { %>
<%@ include file="/wizard/wizard_framework_fields.jsp"%>

<div class="content-layout">

<%@ 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="configure.storage.wizard.toc.3"/>
      </div>
    </td>
  </tr>
  <tr>
    <td class="wizard-content-divider"><img alt width="1" height="1" src="/image
s/general/dot.gif" border="0"></td>
  </tr>
</table>

<!-- instructions -->
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr> 
    <td>
         <bean:message key="configure.storage.wizard.selectnames.instructions"/>
    </td>
  </tr>
</table>

<logic:present name="<%=Constants.HttpSessionFields.CREATE_POOL_FORM_NAME%>" property="traysForProfile"> 

<!-- spacer between two sections -->
<%@include file="/layout/spacer.jsp"%>

  <table border="0" cellpadding="0" cellspacing="0" width="100%">
    <tr>
      <td>
        <table border="0" cellpadding="0" cellspacing="0" width="100%">
          <tr>

            <td nowrap>
              <div>
                <bean:message key="configure.storage.selected.profile"/>
                <bean:write name="<%=Constants.HttpSessionFields.CREATE_POOL_FORM_NAME%>" property="newProfileName"/>
              </div>
            </td>
          </tr>
        </table>
      </td>
    </tr>
    <tr>
      <td><img alt border="0" height="5" src="/images/general/dot.gif" width="1"></td>

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

    </tr>
  </table>
  
  <!-- whole tray listing table-->
  <table border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td nowrap>
        <table border="0" cellspacing="0" cellpadding="0">          
          <tr>
            <td><img alt width="1" height="2" border="0" src="images/general/dot.gif"></td>
          </tr>           
          <tr>
            <td nowrap>
              <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="tray.table.id"/>
                          </div>
                        </td>      
                        <td nowrap>
                          <div class="table-header-text">
                            <bean:message key="tray.table.drivenum.short"/> 
                          </div>
                        </td>       
                        <td nowrap>
                          <div class="table-header-text">
                            <bean:message key="tray.table.drive.size"/> 
                          </div>
                        </td>                        
                        <td nowrap>
                          <div class="table-header-text">
                            <bean:message key="pools.table.name"/> 
                          </div>
                        </td>
                      </tr>
                      <!-- Begin tray row listing(s) -->              
 				     <logic:iterate id="poolBreaks" name="<%=Constants.HttpSessionFields.CREATE_POOL_FORM_NAME%>" property="poolBreakdowns" type="PoolBreakdownForTray" indexId="idx"> 				 	      
                        <%
                            for(int i = 0; i < poolBreaks.getNumPools(); i++) {
                        %>
                     <tr>           
                       <td align="right">     
                         <div class="table-label-text">                    
                           <bean:write name="poolBreaks" property="trayId"/>
                         </div>
                        </td>     
                        <td align="right">  
                          <div class="table-label-text">                        
                            <%=poolBreaks.getNumDisks(i)%>
                          </div>
                        </td>                    
                        <td align="right">        
                          <div class="table-label-text">                  
                            <component:volumeSizeDisplay size="<%=poolBreaks.getEffectiveDiskSize(i).toString()%>"/>
                          </div>
                        </td>      
                        <td>                         
                          <div class="table-label-text"> 
                            <input type="text" name="poolName_<%=poolBreaks.getTrayId()%>_<%=i%>" value="<%=poolBreaks.getSuggestedName(i)%>" maxlength='<%="" + Constants.ObjectValidation.MAX_POOL_NAME%>'>
                          </div>
                        </td>
                      </tr>
                       <% } %>
                     </logic:iterate>
                    </table>
                  </td>
                </tr>             
              </table>
            </td>
          </tr>           
        </table>
      </td>
    </tr>
  </table> <!-- end whole tray table listing -->


</logic:present>   

</div>

<% } catch(Exception e) {
        Trace.error(this, "sm_configstoragewiz_selectnames.jsp",
          "Page exception: " + e);
   }
%>
</html:form>
</body>

</html:html>
