<%@ taglib uri="/tags/struts-bean-el" prefix="bean-el" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html-el" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<table width="100%" border="0" cellpadding="0" cellspacing="0" class="moduleShell">
<tr>
    <td width="100%">
	   <table width="100%" border="0" cellpadding="0" cellspacing="0" class="moduleShellTableBody">
	   <tr>
	     <td>
	         <table width="100%" border="0" cellpadding="0" cellspacing="0" class="moduleShellTableHead">
	           <tr>
	        	<td width="5%" class="moduleBlueBox">&nbsp;</td>
			    <c:if test="${financialsDependentForm.spouseInd == 'false'}">
			    	<td class="moduleHeadline"><bean-el:message key="financials.addDependent.title" /></td>
				</c:if>
			    <c:if test="${financialsDependentForm.spouseInd == 'true'}">
			    	<td class="moduleHeadline"><bean-el:message key="financials.addDepSpouse.title" /></td>
				</c:if>

				</tr>
	         </table>
	     </td>
	    </tr>

	    <tr>
	     <td>
		<html-el:form action="/financialsDependentAdd" method="post">
  			<%@ include file="/admin/csrfgentoken.jsp" %>
		<html-el:hidden property="spouseInd" />

		<table width="100%" border="0" cellpadding="0" cellspacing="0" class="moduleShellTableBody">
		  <tr>
		    <td>
		    <c:if test="${financialsDependentForm.spouseInd == 'false'}">
				<%@ include file="dependentChildForm.jsp" %>
			</c:if>
		    <c:if test="${financialsDependentForm.spouseInd == 'true'}">
				<%@ include file="dependentSpouseForm.jsp" %>
			</c:if>
		    </td>
		  </tr>
		  <tr><td>&nbsp;</td></tr>
		  <tr>
	       <td class="moduleValue">
	        <table width="100%" border="0" align="center" cellspacing="0" cellpadding="0">
            <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.add"/></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>
 		   </td>
 	      </tr>

		   </td>
		  </tr>
		</table>

		</html-el:form>

	       </td>
	      </tr>
	     </table>
    </td>
</tr>
</table>
