<%@ taglib uri="/tags/struts-bean" prefix="bean" %>
<%@ taglib uri="/tags/struts-html" prefix="html" %>
<%@ taglib uri="/tags/struts-logic" prefix="logic" %>
<%@ taglib uri="/tags/struts-tiles" prefix="tiles" %>
<%@ taglib uri="/tags/struts-nested" prefix="nested" %>

<table width="100%" border="0" cellpadding="0" cellspacing="0" class="moduleShell">
 <tr>
  <td>
   <table width="100%" border="0" cellpadding="0" cellspacing="0" class="moduleShellTable">
    <tr>
     <td>
      <table width="100%" border="0" cellpadding="0" cellspacing="0" class="moduleShellTableHead">
       <tr> 
        <td class="moduleBlueBox">&nbsp;</td>
 	    <td class="moduleHeadline"><bean:message bundle="ee" key="addRatedDisability.text.title"/></td>
       </tr>
      </table>
     </td>
    </tr>
    <tr>
     <td>
      <table width="100%" border="0" cellpadding="0" cellspacing="0" class="moduleShellTableBody">
  	   <tr>
	   	<td class="ErrorMessage" align="center">&nbsp;<span id="Msg" class="ErrorMessage"></span>
	   		<html:errors/>
	   	</td>
  	   </tr>
      </table>
     </td>
    </tr>
    <tr> 
     <td bgColor="#E2DDD7">
   	  <html:form action="/lookupRatedDisability" method="post" >
      <table width="100%" border="0" cellspacing="0" cellpadding="0" class="moduleShellTableBody" role="presentation">
        <TR>
          <TD class="moduleLabel"><bean:message bundle="ee" key="addRatedDisability.text.enterCode"/></TD>
          <TD class="moduleValue">
          <html:textarea styleClass="moduleEdit" property="codes" rows="4" cols="35" />
          </TD></TR>
        <TR>
          <TD class="moduleLabel">&nbsp;</TD>
          <TD class="moduleValue"><bean:message bundle="ee" key="addRatedDisability.text.separateCodes"/>
          </TD></TR>
        <TR>
          <TD class="moduleLabel">&nbsp;</TD>
          <TD class="moduleValue">	
           <html:submit property="methodName" title="lookup" ><bean:message bundle="ee" key="addRatedDisability.button.lookup"/></html:submit>
		  </TD>
		</TR>
      </TABLE>
      </html:form>					
	 </TD>
	</TR>
   </TABLE>
   <logic:notEmpty name="addRatedDisabilityForm" property="codes" >
    <tr>
     <td>
      <table width="100%" border="0" cellpadding="0" cellspacing="0" class="moduleShellLowTableHead" role="presentation">
       <tr> 
        <td class="moduleBrownBox">&nbsp;</td>
 	    <td class="moduleHeadline">Rated Disabilities</td>
       </tr>
      </table>
     </td>
    </tr>
    <tr> 
     <td>
      <table width="100%" border="0" cellspacing="0" cellpadding="0" class="moduleShellTableBody">
	   <html:form action="/addRatedDisability" method="post">
	   <TR>
	    <TD class="moduleValue">Code</TD>
	    <TD class="moduleValue">Description</TD>
	   </TR>
       <logic:iterate id="disabilityId" name="disabilityLookup">
        <tr>
         <TD class="moduleValue">
           <html:multibox property="disabilityCodes">
              <bean:write name="disabilityId" property="code" />
           </html:multibox>
           <bean:write name="disabilityId" property="code" />           
         </td>
         <TD class="moduleValue"><bean:write name="disabilityId" property="description" /></TD>
        </TR>
       </logic:iterate>
	    <TR>
	     <TD class="moduleLabel">&nbsp;</TD>
	     <TD class="moduleValue">
	      <html:submit property="methodName" title="add" ><bean:message bundle="ee" key="addRatedDisability.button.add"/></html:submit>
	     </TD>
	    </TR>
       </html:form>
      </TABLE>
     </td>
    </tr>
   </logic:notEmpty>
  </TD>
 </TR>
</TABLE>
    