<%--
  /**
   * Copyright (c) 2003 by Sun Microsystems, Inc. All rights reserved.
   * Use is subject to license terms.
   *
   * "@(#)sa_volgrp_createwiz_setinigrps.jsp    1.8    03/09/18     SMI"
   * 
   */
 --%>
<%@ include file="/layout/toptags.jsp"%>
<!-- locale stuff -->
<html:html locale="true">
<!-- end locale -->

<!-- Place Java Script Here -->

<!-- HTML -->
<head>
<%@include file="/layout/page_head_section.jsp"%>
</head>
<%@ include file="/layout/wizard_body_tag.jsp" %>
<%@ include file="/layout/user_messages.jsp"%>
<html:form action="/CreateVolumeGroupWizard.do">
<%@ include file="/wizard/wizard_framework_fields.jsp"%>
<%
 com.sun.netstorage.array.mgmt.cfg.ui.forms.VolumeGroupCreateForm form = 
 (com.sun.netstorage.array.mgmt.cfg.ui.forms.VolumeGroupCreateForm)
    session.getAttribute("VolumeGroupCreate"); 
%>
<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="create.volume.group.wizard.setig"/>
      </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>
    <!-- show appropriate message if there are no initiator groups to add-->
    <logic:notPresent name="VolumeGroupCreate" property="initiatorGroups">
      <bean:message key="create.volume.group.wizard.setig.instructions.noigs"/>
    </logic:notPresent>
    <logic:present name="VolumeGroupCreate" property="initiatorGroups">
      <bean:message key="create.volume.group.wizard.setig.instructions"/>
    </logic:present>
   </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></td>
          <td>
            <div class="table-header-text">
              <bean:message key="storage.access.initiator.groups.table.name"/>
            </div>
          </td>
          <td>
            <div class="table-header-text">
              <bean:message key="storage.access.initiator.groups.table.access"/>
            </div>

          </td>
        </tr>
      <logic:present name="VolumeGroupCreate" property="initiatorGroups">
        <logic:iterate id="ig" name="VolumeGroupCreate" property="initiatorGroups" indexId="index">
        <tr>    
          <td align="left" nowrap>     
            <div class="table-header-text">
             <input <%=form.getIgCheckboxStatus(index)%> type="checkbox" name="selectedIgIndices" value="<%=index%>"/>
            </div>
          </td>
          <td align="left" nowrap>     
             <bean:write name="ig" property="name"/>        
          </td>
          <td align="left" nowrap>
            <div class="table-normal-text">
              <select name="permissions">
                <option <%=form.getAccessSelectionStatus(index, Constants.StorageVolumeProperties.READWRITE)%>  value="<%=Constants.StorageVolumeProperties.READWRITE%>"><bean:message key="selectlist.volumepermissions.readwrite"/>
                <option <%=form.getAccessSelectionStatus(index, Constants.StorageVolumeProperties.READONLY)%>  value="<%=Constants.StorageVolumeProperties.READONLY%>"><bean:message key="selectlist.volumepermissions.readonly"/>
              </select>
            </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>

</div>

</html:form>
</body>

</html:html>
