<%--
  /**
   * Copyright (c) 2003 by Sun Microsystems, Inc. All rights reserved.
   * Use is subject to license terms.
   *
   * "@(#)sm_manage_pools_initconfirm.jsp    1.1    03/06/02     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"%>
    <title>
        <bean:message  key="storage.mgmt.system.expert.pools.init.header"/>
    </title>
</head>

<div class="content-layout">

<%@include file="/layout/bodytag.jsp"%>
<%@include file="/layout/top.jsp"%>
<%@include file="/layout/breadcrumb.jsp"%>
<%@include file="/layout/spacer.jsp"%>

<html:form action="/root.menu.item0.item2poolsinit.do">
<input type="hidden" name="request_action" value="<%=request.getAttribute("request_action")%>">

<%@ include file="/layout/user_messages.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 class="major-category-text">
                <bean:message key="storage.mgmt.system.expert.pools.init.header"/>
              </div>
            </td>
           
            <td valign="bottom" width="99%">
              <table border="0" cellpadding="0" cellspacing="0" width="100%">
                <tr>
                  <td class="property-separator" valign="bottom"><img alt border="0" height="2" src="/images/general/dot.gif" width="1"></td>
                </tr>
              </table>
            </td>
          </tr>
        </table>
      </td>
    </tr>
    <tr>
      <td><img alt border="0" height="5" src="/images/general/dot.gif" width="1"></td>
    </tr>
  </table> 
 
<!-- spacer between two sections -->
<%@include file="/layout/spacer.jsp"%>

<table>
  <tr><td>
    <table border="0" cellspacing="0" cellpadding="2" align="left" bgcolor="#9999CC">
      <tr><td>
        <table cellspacing="0" cellpadding="5" border="0"  bgcolor="#FFFFFF">
          <tr>
            <td valign="top" rowspan="3"><img src="images/icons/warning_16.gif" width="16" height="16" alt='<bean:message key="icon.warning"/>' border="0"></td>
            <td><div class="error-message-header-text">
             <logic:present name="Pool" property="affectedVolumes">
               <bean:message key="storage.mgmt.system.expert.pools.init.warning"/>
             </logic:present>
             <logic:notPresent name="Pool" property="affectedVolumes">
               <bean:message key="storage.mgmt.system.expert.pools.init.warning.novolumes"/>
             </logic:notPresent>
            </div>
            </td>
          </tr>                    
        </table>
      </td></tr>
    </table>
  </td></tr>
  <tr><td>
    <img src="/nsm/images/general/dot.gif" width="1" height="10" border="0">
  </td></tr>
 
</table>
    </td>
  </tr>
</table>
 

<table border="0" cellpadding="0" cellspacing="0" align="center">
  <tr>
    <td>
    <table>
    <tr>
    <td align="center" valign="middle">
       <table border="0" cellpadding="0" cellspacing="0" align="center">
          <tr>
             <td>
                <table border="0" cellpadding="1" cellspacing="0" class="button-link-enabled-text">
                  <tr>
                     <td>
                        <table>
                          <tr>
                            <td align="center" valign="middle" nowrap>
                              <component:button text="storage.mgmt.system.expert.pools.initialize.button" href="javascript:submitForm('confirm_init');" title="storage.mgmt.system.expert.pools.initialize.button" isEnabled="true" />
                            </td>
                          </tr>
                        </table>
                      </td>
                    </tr>
                 </table>
              </td>                 
           </tr>
        </table>
      </td>

      <td align="left" valign="middle">
         <table border="0" cellpadding="0" cellspacing="0">
           <tr>
             <td>
               <table border="0" cellpadding="1" cellspacing="0" class="button-link-enabled-text">
                 <tr>
                    <td>
                      <table>
                        <tr>
                           <td align="center" valign="middle" nowrap>
                              <component:button text="button.cancel" href="root.menu.item0.item2pools.do" title="button.cancel" isEnabled="true" />
                           </td>
                         </tr>
                       </table>
                    </td>
                 </tr>
               </table>
             </td>                 
           </tr>
         </table>
       </td>
     </tr>     
     </table>
     </td>
  </tr>
  
   
</table>
    

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

<logic:present name="Pool" property="affectedVolumes">


<table border="0" cellpadding="0" cellspacing="0" width="100%">
    <tr>
      <td>
        <table border="0" cellpadding="0" cellspacing="0" width="100%">
          <tr>
            <td nowrap>
              <div class="major-category-text">
                <bean:message key="storage.mgmt.system.expert.pools.affectedvolumes"/>
              </div>
            </td>
           
            <td valign="bottom" width="99%">
              <table border="0" cellpadding="0" cellspacing="0" width="100%">
                <tr>
                  <td class="property-separator" valign="bottom"><img alt border="0" height="2" src="/images/general/dot.gif" width="1"></td>
                </tr>
              </table>
            </td>
          </tr>
        </table>
      </td>
    </tr>
    <tr>
      <td><img alt border="0" height="5" src="/images/general/dot.gif" width="1"></td>
    </tr>
  </table> 
<!-- the affected volumes table listing -->
<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="storage.mgmt.system.expert.pools.volume.name"/>
             </div>
           </td>                                               
           <td>
             <div class="table-header-text">
               <bean:message key="pools.table.name"/>
             </div>
           </td>                         
        </tr>                                      
            <logic:iterate id="affectedVol" name="Pool" property="affectedVolumes" type="StorageVolumeInterface">
               <tr>                 
                  <td align="center">                       
                    <div class="table-normal-text">  
                      <%= affectedVol.getName() %>                     
                    </div>
                  </td> 
                  <td align="center">                         
                    <div class="table-normal-text">
                      <%= affectedVol.getRaidGroupName()%>
                    </div>
                  </td>                                                                                                         
               </tr>
              </logic:iterate>    
     </table>
   </td>
  </tr>
</table>

</logic:present>

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

<!-- the list of pools that cannot be initialized because they are already online -->
<logic:present name="Pool" property="onlinePoolNames">


<table border="0" cellpadding="0" cellspacing="0" width="100%">
    <tr>
      <td>
        <table border="0" cellpadding="0" cellspacing="0" width="100%">
          <tr>
            <td nowrap>
              <div class="major-category-text">
                <bean:message key="storage.mgmt.system.expert.pools.alreadyonline.header"/>
              </div>
            </td>
           
            <td valign="bottom" width="99%">
              <table border="0" cellpadding="0" cellspacing="0" width="100%">
                <tr>
                  <td class="property-separator" valign="bottom"><img alt border="0" height="2" src="/images/general/dot.gif" width="1"></td>
                </tr>
              </table>
            </td>
          </tr>
        </table>
      </td>
    </tr>
    <tr>
      <td><img alt border="0" height="5" src="/images/general/dot.gif" width="1"></td>
    </tr>
    <tr>
      <td>
          <bean:message key="storage.mgmt.system.expert.pools.init.error.alreadyonline"/>
      </td>
    </tr>
  </table> 
<!-- the online pool name table listing -->
<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="pools.table.name"/>
             </div>
           </td>                                               
        </tr>                                      
            <logic:iterate id="poolName" name="Pool" property="onlinePoolNames">
               <tr>                 
                  <td align="center">                       
                    <div class="table-normal-text">  
                       <bean:write name="poolName"/>
                    </div>
                  </td> 
               </tr>
              </logic:iterate>    
     </table>
   </td>
  </tr>
</table>

</logic:present>
  
</html:form>
</body>
</div>
</html:html>
