<%@ page import="gov.va.med.esr.ui.util.SessionManager"%>
<%@ taglib uri="/tags/struts-bean-el" prefix="bean-el" %>
<%@ taglib uri="/tags/struts-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html-el" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="/tags/esr-core" prefix="esrcore" %>
<%@ taglib uri="/tags/fw" prefix="fw" %>
<%@ taglib uri="/tags/authz" prefix="auth" %>
<%@ page import='gov.va.med.esr.common.model.lookup.Capability' %>

<c:set var="incomeYear"><%= session.getAttribute(SessionManager.SELECTED_FINANCIAL_INCOME_YEAR) %></c:set>
<c:set var="requiredText"><bean-el:message key="label.required"/></c:set>

<table width="100%" border="0" cellpadding="0" cellspacing="0" class="moduleShell" role="presentation">
<html-el:form action="/adjudicateIncomeTest" method="post">
  <%@ include file="/admin/csrfgentoken.jsp" %>
   <tr>
    <td width="100%">  
	   <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="financials.adjudication.title" /></td>
                <td align="left" nowrap>&nbsp;(<bean-el:message key="title.incomeyear"/>&nbsp;<c:out value="${incomeYear}"/>)</td>
                <td width="100%"><img alt=""  src="../images/spacer.gif"></td>
	           </tr>
	         </table>
	     </td>
	    </tr>
	    
	   <tr> 
	    <td>
		     <table width="100%" border="0" cellpadding="0" cellspacing="0" class="moduleShellTableBody" role="presentation">
                <tr>
                    <td colspan="2">
                      <%@ include file="/tiles/common/instructionalText.jsp" %>
                    </td>
                </tr>
		       <tr>
            	<td width="45%" class="moduleLabel"><bean-el:message key="label.mtThreshold"/>:</td>
				<td width="55%" class="moduleValue">
					<esrcore:displayCurrency name="adjudicationForm" currencyProperty="meansTestThresholdAmount" />
					<html-el:hidden name="adjudicationForm" property="meansTestThreshold" />
				</td>
			   </tr>
		       <tr>
            	<td width="45%" class="moduleLabel"><bean-el:message key="label.gmtThreshold"/>:</td>
				<td width="55%" class="moduleValue">
					<esrcore:displayCurrency name="adjudicationForm" currencyProperty="gmtThresholdAmount" />
					<html-el:hidden name="adjudicationForm" property="gmtThreshold" />
				</td>
			   </tr>
		       <tr>
		       
		<c:set var="mtStatusLabel"><bean-el:message key="label.mtStatus"/></c:set>
            	<td width="45%" class="moduleLabel"><fw:label required="true" property="meansTestStatus" forId="idMeansTestStatus">
					<bean-el:message key="label.mtStatus"/>:</fw:label></td>
				<td width="55%" class="moduleValue">
					<html-el:select title="${requiredText}, ${mtStatusLabel}" styleClass="moduleEdit" styleId="idMeansTestStatus" property="meansTestStatus">
				        <html-el:option styleClass="moduleEdit" value=""><bean-el:message key="label.select" /></html-el:option>
				        <esrcore:options styleClass="moduleEdit" collection="meansTestStatusList" property="code" labelProperty="description"/> 
			        </html-el:select>	
				</td>			   
		       <tr><td>&nbsp;</td></tr>
				 
		       <tr>
	            <td colspan=2 height="50">
                  <table width="100%" border="0" cellpadding="0" cellspacing="0" role="presentation">
                    <tr>
                      		  <td width="46%"><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: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:message key="button.cancel"/></html-el:submit></td>
							  <td><img alt=""  src="../images/buttonEndRight.gif"/></td>
							  <td width="46%"><img alt=""  src="../images/spacer.gif"/></td>				          
                    </tr>
                  </table>		
	            </td>
	           </tr>
	         </table>
        </td>
       </tr>
       </table> <!-- shell table -->
	</td>
   </tr>
</html-el:form>
</table> <!-- module shell -->
