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

<head>
<%@include file="/layout/page_head_section.jsp"%>
<title>Wizard: Body</title>
<meta http-equiv="Content-Type" content="text/html">
<meta http-equiv="expires" content="0">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<%@include file="/layout/page_head_section.jsp"%>
</head>

<%@ include file="/layout/wizard_body_tag.jsp" %>
<html:form action="/VolumeCreateWizard.do">
<%@ 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.selectvolumegroups"/>
      </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="storage.mgmt.volumes.createwizard.optionalselectgroups"/></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" width="50%"> 
  <tr> 
    <td> 
      <table class="front-table" border="0" cellspacing="0" cellpadding="0" width="100%"> 
        <tr class="header-row"> 
           <td align="center" valign="middle" nowrap><a href="javascript:checkAll(document.forms[0])"><img src="images/icons/select-all-small.gif" alt='<bean:message key="table.select.all"/>' vspace="2" border="0" width="11" height="13"></a><a href="javascript:unCheckAll(document.forms[0])"><img src="images/icons/deselect-all-small.gif" alt='<bean:message key="table.deselect.all"/>' vspace="2" border="0" width="11" height="13"></a></td>
           

          <td> 
            <div class="table-header-text"> 
              <bean:message key="storage.mgmt.volumes.createwizard.volumegroups"/>
            </div> 
          </td> 
        </tr> 
        <% com.sun.netstorage.array.mgmt.cfg.ui.forms.VolumeCreateForm vcf = (com.sun.netstorage.array.mgmt.cfg.ui.forms.VolumeCreateForm)session.getAttribute("VolumeCreate");
	  if (vcf != null && vcf.getAllVolumeGroups() != null) { %>
	  <!-- row with raio button that allows user not to select any volume group -->
	  <tr >
            <td align="center" nowrap bgcolor="#cccccc">
	     <input type="radio" name="selectedVolumeGroup" value="">	
	    </td>
            <td align="left" nowrap bgcolor="#cccccc">
                   <bean:message key="storage.mgmt.volumes.createwizard.volumegroups.skip"/>
            </td>
	    </tr>
	    <!-- end dummy row -->
            <logic:iterate id="volumeGroup" name="VolumeCreate" property="allVolumeGroups">
              <tr>
                <td align="center" nowrap>
                  <html:radio name="VolumeCreate" property="selectedVolumeGroup" value="<%=((com.sun.netstorage.array.mgmt.cfg.access.business.VolumeGroupInterface)volumeGroup).getName()%>">
                  </html:radio>
                </td>
                <td align="left" nowrap>
                  <bean:write name="volumeGroup" property="name"/>
                </td>
              </tr>
            </logic:iterate>
        <% } %>
      </table> 
    </td> 
  </tr> 
</table> 


</html:form>
</body>

</html:html>

