<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib uri="/tags/struts-bean" prefix="bean" %>
<%@ taglib uri="/tags/struts-html" prefix="html" %>
<%@ taglib uri="/tags/struts-bean-el" prefix="bean-el" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html-el" %>
<%@ taglib uri="/tags/struts-logic" prefix="logic" %>
<%@ taglib uri="/tags/displaytag" prefix="display" %>
<%@ taglib uri="/tags/esr-core" prefix="esrcore" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="/tags/fw" prefix="fw" %>

<table width="100%" border="0" cellpadding="0" cellspacing="0" class="moduleShell" role="presentation">
<html-el:form action="/signatureEdit" method="post">
  <%@ include file="/admin/csrfgentoken.jsp" %>
  <tr>
    <td>
      <table width="100%" border="0" cellpadding="0" cellspacing="0" class="moduleShellTable" role="presentation">
        <tr>
          <td>
            <table width="100%" border="0" cellpadding="0" cellspacing="0" class="moduleShellTableHead" role="presentation">
              <tr>
                <td class="moduleBlueBox"><img alt=""  src="../images/spacer.gif" width="28" height="23"/></td>
                <td nowrap style="padding-left: 7"><bean-el:message key="signatureEdit.eligPanel.title"/></td>
                <td width="100%"><img alt=""  src="../images/spacer.gif"></td>
              </tr>
            </table>
          </td>
        </tr>

        <tr>
          <td width="100%">
            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="moduleShellTableBody" role="presentation">
              <tr><td>&nbsp;</td></tr>
              <tr>
                <td width="45%" class="moduleLabel"><bean-el:message key="label.imageId"/>:</td>
                <td title="<bean-el:message key="label.imageId"/>" width="55%" class="moduleValue">
                  <esrcore:displayValue name="signatureEditForm" property="imageId"/>
                </td>
              </tr>
              <tr>
                <td class="moduleLabel"><bean-el:message key="label.submittingFacility"/>:</td>
                <td title="<bean-el:message key="label.submittingFacility"/>" class="moduleValue">
                  <c:out value="${signatureEditForm.submittingFacility.name}"/>&nbsp;(#<c:out value="${signatureEditForm.submittingFacility.stationNumber}"/>)
                </td>
              </tr>
              <tr>
                <td class="moduleLabel"><bean-el:message key="label.dateIndexed"/>:</td>
                <td title="<bean-el:message key="label.dateIndexed"/>" class="moduleValue">
                  <esrcore:displayDate name="signatureEditForm" dateProperty="dateIndexed" displayTime="false" nullText=""/>
                </td>
              </tr>
              <tr>
                <td class="moduleLabel"><bean-el:message key="label.indexedBy"/>:</td>
                <td title="<bean-el:message key="label.indexedBy"/>" class="moduleValue">
					<esrcore:displayLookupValue 
						  lookupType="gov.va.med.esr.common.model.security.ESRUserPrincipalImpl" 
							 name="signatureEditForm" property="indexedBy" />                  
                </td>
              </tr>
              <tr>
                <td class="moduleLabel"><fw:label property="signatureonFile" forId="signatureonFileId"><bean-el:message key="label.signatureonFile"/>:</fw:label></td>
                <td class="moduleValue">
                <c:set var="signatureonFileText"><bean-el:message key="label.signatureonFile"/></c:set>
                  <html-el:select title="${signatureonFileText}" name="signatureEditForm" property="signatureonFile" >
                  	<html-el:option styleClass="moduleEdit" styleId="signatureonFileId" value=""><bean-el:message key="label.select" /></html-el:option>
                    <esrcore:options collection="gov.va.med.esr.common.model.lookup.SignatureIndicator" property="code" labelProperty="description"/>
                  </html-el:select>
                </td>
              </tr>
              <tr>
                <td class="moduleLabel"><bean-el:message key="label.lastUpdated"/>:</td>
                <td title="<bean-el:message key="label.lastUpdated"/>" class="moduleValue">
                  <esrcore:displayDate name="signatureEditForm" dateProperty="lastUpdated" displayTime="true" nullText=""/>
                </td>
              </tr>
            </table>

            <table width="100%" align="center" border="0" cellspacing="0" cellpadding="0" class="moduleShellTableBody" role="presentation">
              <tr>
                <td class="moduleValue">
                  <br>
                  <table border="0" align="center" cellspacing="0" cellpadding="0" role="presentation">
                    <tr>
                      <td width="45%"><img alt=""  src="../images/spacer.gif"/></td>
                      <td><img alt=""  src="../images/buttonEndLeft.gif" /></td>
                      <td><html-el:submit property="methodName" style="width:50; vertical-align: top;" styleClass="buttonText"><bean-el:message key="button.update"/></html-el:submit></td>
                      <td><img alt=""  src="../images/buttonEndRight.gif"/></td>
                      <td width="1%"><img alt=""  src="../images/spacer.gif"/></td>
                      <td><img alt=""  src="../images/buttonEndLeft.gif"/></td>
                      <td><html-el:submit property="methodName" style="width:50; vertical-align: top;" styleClass="buttonText"><bean-el:message key="button.cancel"/></html-el:submit></td>
                      <td><img alt=""  src="../images/buttonEndRight.gif"/></td>
                      <td width="45%"><img alt=""  src="../images/spacer.gif"/></td>
                    </tr>
                  </table>
                  <br>
                </td>
              </tr>
            </table>
          </td>
        </tr>
      </table>
    </td>
  </tr>
</html-el:form>
</table>
