<%--
  /**
   * Copyright (c) 2003 by Sun Microsystems, Inc. All rights reserved.
   * Use is subject to license terms.
   *
   * "@(#)sm_tray_edit.jsp    1.22    03/08/13     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.tray.details.title"/>
    </title>
</head>

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

<html:form action="root.menu.item0.item0trayedit.do">
<%
   com.sun.netstorage.array.mgmt.cfg.ui.forms.TrayForm form = 
     (com.sun.netstorage.array.mgmt.cfg.ui.forms.TrayForm)session.getAttribute("tray");
%>
<!-- hidden element which specifies the action for this form -->
<input type="hidden" name="request_action" value="<%=request.getAttribute("request_action")%>">

<div class="content-layout">

  <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.tray.details.section"/>                
              </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>
  <table border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td nowrap>
        <table border="0" cellspacing="0" cellpadding="0">         
          <tr>
            <td><img alt border="0" src="images/general/dot.gif" width="1" height="5"></td>
          </tr>
          <tr>
            <td nowrap>
              <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-label-text">
                            <bean:message key="tray.table.id" />
                          </div>
                        </td>
                        <td align="left" nowrap>
                          <div class="table-normal-text">
                            <bean:write name="tray" property="id"/>
                          </div>
                        </td>
                      </tr>
                      <tr>
                        <td align="left" nowrap>
                          <div class="table-label-text">
                            <bean:message key="tray.detail.t4" /> 
                          </div>
                        </td>
                        <td align="left" nowrap>
                          <div class="table-normal-text">
                            <bean:write name="tray" property="t4Name"/>
                          </div>
                        </td>
                      </tr>
                      <tr>
                        <td align="left" nowrap>
                          <div class="table-normal-text">
                            <bean:message key="tray.table.type" />
                          </div>
                        </td>
                        <td align="left" nowrap>
                          <div class="table-normal-text">
                            <bean:message key="<%=form.getTrayType()%>" />
                          </div>
                        </td>
                      </tr>
                      <tr>
                        <td align="left" nowrap>
                          <div class="table-normal-text">
                            <bean:message key="tray.table.role" />
                          </div>
                        </td>
                        <td align="left" nowrap>
                          <div class="table-normal-text">
                            <bean:message key="<%=form.getRole()%>" />
                          </div>
                        </td>
                      </tr>
                      <tr>
                        <td align="left" nowrap>
                          <div class="table-normal-text">
                            <bean:message key="tray.table.state" />
                          </div>
                        </td>
                        <td align="left" nowrap>
                          <div class="table-normal-text">
                            <bean:message key="<%=form.getState()%>" />
                          </div>
                        </td>
                      </tr>
                      <tr>
                        <td align="left" nowrap>
                          <div class="table-normal-text">
                            <bean:message key="tray.table.status" />
                          </div>
                        </td>
                        <td align="left" nowrap>
                          <div class="table-normal-text">
                            <bean:message key="<%=form.getStatus()%>" />
                          </div>
                        </td>
                      </tr>
                      <tr>
                        <td align="left" nowrap>
                          <div class="table-normal-text">
                            <bean:message key="tray.table.arrayhotspare" />
                          </div>
                        </td>
                        <td align="left" nowrap>
                          <div class="table-normal-text">
			  <%=form.getNumberOfArrayHotsparesOnTray()%>
                          </div>
                        </td>
                      </tr>
                    </table>
                  </td>
                </tr>
              </table>
            </td>
          </tr>
        </table>
      </td>
    </tr>
  </table>
</div>
<!-- END SECTION:  fixed/static data section -->

<%@include file="/layout/spacer.jsp"%>
<div class="content-layout">
 <!-- sub-reports section header -->
  <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="express.subreports.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>

<%
 String formName = Constants.HttpSessionFields.TRAY_FORM;
%>
<html:hidden name="<%=formName%>" property="comingFrom" value="traydetails"/>
<input type="hidden" name="name" value="<%=form.getId()%>"/>
<!-- View selection box table -->
<table >
  <tr>
    <td class="view-label-text">
       <bean:message key="express.subreports.view"/>
    </td>
    <td>
      <html:select name="<%=formName%>" property="subReportFilter" onchange="submitForm('show')">
        <html:option key="express.subreports.view.disks" value='<%="" + Constants.Tray.DISK_SUBREPORT%>'/>
        <html:option key="express.subreports.view.pools" value='<%="" + Constants.Tray.POOL_SUBREPORT%>'/>
   	  </html:select>
    </td>
    <td>&nbsp;</td>
  </tr>
</table>
<!-- spacer between two sections -->
<%@include file="/layout/spacer.jsp"%>
<logic:equal name="<%=formName%>" property="subReportFilter" value='<%="" + Constants.Tray.POOL_SUBREPORT%>'>
<%@include file="/storage_management/sm_manage_pools_include.jsp"%>
</logic:equal>
<logic:equal name="<%=formName%>" property="subReportFilter" value='<%="" + Constants.Tray.DISK_SUBREPORT%>'>
<%@include file="/storage_management/sm_disks_include.jsp"%>
</logic:equal>

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

</html:html>
