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

<head>
<title>Wizard: Body</title>
<meta http-equiv="Content-Type" content="text/html">
<meta http-equiv="expires" content="0">
<%@include file="/layout/page_head_section.jsp"%>
</head>

<%@ include file="/layout/wizard_body_tag.jsp" %>
<%@ include file="/layout/user_messages.jsp" %>
<html:form action="/VolumeCreateWizard">
<%@ include file="/wizard/wizard_framework_fields.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.volumes.createwizard.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="5" width="1" src="images/general/dot.gif"></td>
  </tr>
  <tr>
    <td><bean:message key="wizard.reviewselections"/></td>
  </tr>
  <tr>
    <td><img alt border="0" height="5" width="1" src="images/general/dot.gif"></td>
  </tr>
  <tr>
    <td><bean:message key="storage.mgmt.volumes.createwizard.aftercreate" 
        arg0='<%=Integer.toString(((com.sun.netstorage.array.mgmt.cfg.ui.forms.VolumeCreateForm)session.getAttribute("VolumeCreate")).getNumberCurrentVolumes())%>'
        arg1='<%="" + ((T4Interface)session.getAttribute(Constants.HttpSessionFields.CURRENT_T4)).getMaxNumberOfVolumes()%>' />
    </td>
  </tr>
  <tr>
    <td><img alt border="0" height="5" width="1" src="images/general/dot.gif"></td>
  </tr>
</table>
<table class="back-table" border="0" cellspacing="0" cellpadding="1" width="50%">
  <tr>
    <td>
      <table class="front-table" border="0" cellspacing="0" cellpadding="0" width="100%">
        <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 align="left" nowrap>

            <div class="table-normal-text">
              <bean:message key="storage.mgmt.volumes.name"/>
            </div>
          </td>
          <td align="left" nowrap>
            <div class="table-normal-text">
              <bean:write name="VolumeCreate" property="name"/>
            </div>
          </td>
        </tr>
        <tr>
          <td align="left" nowrap>
            <div class="table-normal-text">
              <bean:message key="storage.mgmt.volumes.createwizard.poolname"/>
            </div>
          </td>
          <td align="left" nowrap>
            <div class="table-normal-text">
              <bean:write name="VolumeCreate" property="selectedRaidGroup.name"/> 
            </div>
          </td>
        </tr>
        <tr>
          <td align="left" nowrap>

            <div class="table-normal-text">
              <bean:message key="storage.mgmt.volumes.createwizard.size"/>
            </div>
          </td>
          <td align="left" nowrap>
            <div class="table-normal-text">
              <bean:write name="VolumeCreate" property="requestedSize"/>
              <bean:write name="VolumeCreate" property="requestedSizeUnit"/>
            </div>
          </td>
        </tr>
        <tr>
          <td align="left" nowrap>

            <div class="table-normal-text">
              <bean:message key="storage.mgmt.volumes.createwizard.defaultlun"/>
            </div>
          </td>
          <td align="left" nowrap>
            <div class="table-normal-text">
              <bean:write name="VolumeCreate" property="selectedLUN"/>
            </div>
          </td>
        </tr>

        <tr>
          <td align="left" nowrap>
            <div class="table-normal-text">
              <bean:message key="storage.mgmt.volumes.createwizard.defaultvolumepermissions"/>
            </div>
          </td>
          <td align="left" nowrap>
            <div class="table-normal-text">
              <bean:write name="VolumeCreate" property="volumePermissions"/>
            </div>
          </td>
        </tr>
        <logic:present name="VolumeCreate" property="defaultLUN">
        <tr>
          <td align="left" nowrap>
            <div class="table-normal-text">
              <bean:message key="storage.mgmt.volumes.createwizard.defaultlun"/>
            </div>
          </td>

          <td align="left" nowrap>
            <div class="table-normal-text">
              <bean:write name="VolumeCreate" property="defaultLUN"/>
            </div>
          </td>
        </tr>
        </logic:present>
        <tr>
          <td align="left" valign="top" nowrap>
            <div class="table-normal-text">
              <bean:message key="storage.mgmt.volumes.createwizard.volumegroups"/>
            </div>
          </td>
          <td align="left" nowrap>
            <div class="table-normal-text">
              <logic:present name="VolumeCreate" property="selectedVolumeGroup"/>
                <bean:write name="VolumeCreate" property="selectedVolumeGroup" filter="false"/>
              </logic:present>
              <logic:notPresent name="VolumeCreate" property="selectedVolumeGroup"/>
                 &nbsp;
              </logic:notPresent>

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

    </td>
  </tr>
</table>
<%
com.sun.netstorage.array.mgmt.cfg.ui.forms.VolumeCreateForm form = 
	(com.sun.netstorage.array.mgmt.cfg.ui.forms.VolumeCreateForm)
	session.getAttribute("VolumeCreate");
String volGrpName = form.getSelectedVolumeGroup();
if(volGrpName != null && !volGrpName.trim().equals("")) {
%>
<table>
  <tr>
    <td><img alt border="0" height="5" width="1" src="images/general/dot.gif"></td>
  </tr>
  <tr>
    <td>
    <%
    %>
     <bean:message key="storage.mgmt.volumes.createwizard.volgroups.pending" arg0="<%=volGrpName%>"/>
    </td>
   </tr>
</table>
<% } %>
</html:form>
</body>

</html:html>

