<%@ taglib uri="/tags/struts-bean-el" prefix="bean-el" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html-el" %>
<%@ 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="/demographicIdentityTraitsSubmitted" method="post">
  <%@ include file="/admin/csrfgentoken.jsp" %>
 <tr>
    <td>
      <table width="100%" border="0" cellpadding="0" cellspacing="0" class="moduleShellTable" role="presentation">

			<%-- Main screen header --%>
			<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="25" height="17"/></td>
					<td nowrap style="padding-left: 7px"> <bean-el:message key="label.identityTraits.submissionHistory"/></td>
					<td width="100%"><img alt=""  src="../images/spacer.gif"></td>
					<td nowrap class="moduleBlueLink" style="padding: 1px 8px 1px 8px"><html-el:link action="/demographicIdentityTraits?methodName=Identity+Traits"><bean-el:message key="text.returnToIdentityTraits"/></html-el:link></td>
				  </tr>
				</table>
			  </td>
			</tr>

		   <%-- List of Submitted Times --%>
			<tr>
			  <td>
				<table width="100%" border="0" cellspacing="0" cellpadding="0" class="moduleShellTableBody" role="presentation">
				  <tr style="padding:20px 0 20px 0">
					<c:choose>
					<c:when test="${Submitted_Change_Event_Keys == null}">
					<td style="text-align:left; padding: 10px 0 10px 10px" nowrap class="moduleLabel"><bean-el:message key="label.identityTraits.noSubmittedDataAvailable"/></td>
					</c:when>
					<c:otherwise>
					<c:set var="submittedTimesLabel" scope="page"><bean-el:message key="label.identityTraits.submittedTimes"/></c:set>
					<td style="padding:0 5px 0 10px" nowrap class="moduleLabel"><fw:label property="changeEventKey" forId="submittedTimesId"><bean-el:message key="label.identityTraits.submittedTimes"/>:</fw:label></th>
					<td class="moduleValue">
					  <html-el:select title="${submittedTimesLabel}" styleClass="moduleEdit" styleId="submittedTimesId" property="changeEventKey">
					  <html-el:option value=""><bean-el:message key="label.select" /></html-el:option>
					  <html-el:options name="Submitted_Change_Event_Keys"/>
					  </html-el:select>
					</td>
					<td style="padding:0 0 0 15px"><img alt=""  src="../images/buttonEndLeft.gif"/></td>
					<td><html-el:submit property="methodName" style="width:70; vertical-align: top;" styleClass="buttonText"><bean-el:message key="button.identityTraits.viewSubmittedDataForChangeEvent"/></html-el:submit></td>
					<td><img alt=""  src="../images/buttonEndRight.gif"/></td>
					<td width="100%"><img alt=""  src="../images/spacer.gif"></td>
					</c:otherwise>
					</c:choose>
				  </tr>
				</table>
			  </td>
			</tr>

<c:if test="${Submitted_Change_Event_Keys != null}">
	<%-- Submitted Change Details --%>
	<tr>
	  <td>
		<table width="100%" border="0" cellpadding="0" cellspacing="0" class="moduleShellLowTableHead"  style="padding-top: 4px; padding-bottom: 4px;" role="presentation">
		  <tr>
			<td class="moduleBrownBox"><img alt=""  src="../images/spacer.gif" width="25" height="17"/></td>
			<td nowrap style="padding-left: 7px"><bean-el:message key="text.submittedChangeDetails"/></td>
			<td align="left" nowrap>&nbsp;(<esrcore:displayDate name="submittedIdentityTraitsForm" dateProperty="changeEventKey"/>)
			</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 width="20%" style="text-align: left; padding-left: 10px" valign="top" class="darkLabel" nowrap>
					<bean-el:message key="label.identityTraits.submittedUpdateStatus"/>:
				</td>
				<td width="20%" align="left" valign="top" class="darkValue" nowrap>
					<esrcore:displayValue name="submittedIdentityTraitsForm" property="updateStatus"/>
				</td>
			</tr>

			 <tr>
				<td width="20%" style="text-align: left; padding-left: 10px" valign="top" class="label" nowrap>
					<bean-el:message key="label.personal.prefix"/>:
				</td>
				<td width="20%" align="left" valign="top" class="value" nowrap>
					<esrcore:displayValue name="submittedIdentityTraitsForm" property="prefix"/>
				</td>
			</tr>

			 <tr>
				<td width="20%" style="text-align: left; padding-left: 10px" valign="top" class="darkLabel" nowrap>
					<bean-el:message key="label.personal.firstName"/>	:
				</td>
				<td width="20%" align="left" valign="top" class="darkValue" nowrap>
					<esrcore:displayValue name="submittedIdentityTraitsForm" property="firstName"/>
				</td>
			</tr>

			 <tr>
				<td width="20%" style="text-align: left; padding-left: 10px" valign="top" class="label" nowrap>
					<bean-el:message key="label.personal.middleName"/>	:
				</td>
				<td width="20%" align="left" valign="top" class="value" nowrap>
					<esrcore:displayValue name="submittedIdentityTraitsForm" property="middleName"/>
				</td>
			</tr>

			 <tr>
				<td width="20%" style="text-align: left; padding-left: 10px" valign="top" class="darkLabel" nowrap>
					<bean-el:message key="label.personal.lastName"/>:
				</td>
				<td width="20%" align="left" valign="top" class="darkValue" nowrap>
					<esrcore:displayValue name="submittedIdentityTraitsForm" property="lastName"/>
				</td>
			</tr>

			 <tr>
				<td width="20%" style="text-align: left; padding-left: 10px" valign="top" class="label" nowrap>
					<bean-el:message key="label.personal.suffix"/>:
				</td>
				<td width="20%" align="left" valign="top" class="value" nowrap>
					<esrcore:displayValue name="submittedIdentityTraitsForm" property="suffix"/>
				</td>
			</tr>

			 <tr>
				 <td width="20%" style="text-align: left; padding-left: 10px" valign="top" class="darkLabel" nowrap>
					<bean-el:message key="label.identityTraits.ssn"/>:
				</td>
				<td width="20%" align="left" valign="top" class="darkValue" nowrap>
					<esrcore:displayValue name="submittedIdentityTraitsForm" property="ssn"/>
				</td>
			</tr>

			 <tr>
				<td width="20%" style="text-align: left; padding-left: 10px" valign="top" class="label" nowrap>
					<bean-el:message key="label.identityTraits.ssaVerificationStatus"/>:
				</td>
				<td width="20%" align="left" valign="top" class="value" nowrap>
					<esrcore:displayValue name="submittedIdentityTraitsForm" property="ssaVerificationStatus"/>
				</td>
			</tr>

			 <tr>
				<td width="20%" style="text-align: left; padding-left: 10px" valign="top" class="darkLabel" nowrap>
					<bean-el:message key="label.identityTraits.ssaVerificationDate"/>	:
				</td>
				<td width="20%" align="left" valign="top" class="darkValue" nowrap>
					<esrcore:displayValue name="submittedIdentityTraitsForm" property="ssaVerificationDate"/>
				</td>
			</tr>

			 <tr>
				<td width="20%" style="text-align: left; padding-left: 10px" valign="top" class="label" nowrap>
					<bean-el:message key="label.identityTraits.ssaMessage"/>:
				</td>
				<td width="20%" align="left" valign="top" class="value" nowrap>
					<esrcore:displayValue name="submittedIdentityTraitsForm" property="ssaMessage"/>
				</td>
			</tr>

			 <tr>
				<td width="20%" style="text-align: left; padding-left: 10px" valign="top" class="darkLabel" nowrap>
					<bean-el:message key="label.identityTraits.ssnSourceOfChange"/>:
				</td>
				<td width="20%" align="left" valign="top" class="darkValue" nowrap>
					<esrcore:displayValue name="submittedIdentityTraitsForm" property="ssnSourceOfChange"/>
				</td>
			</tr>

			 <tr>
				 <td width="20%" style="text-align: left; padding-left: 10px" valign="top" class="label" nowrap>
					<bean-el:message key="label.identityTraits.pseudoSsnReason"/>:
				</td>
				<td width="20%" align="left" valign="top" class="value" nowrap>
					<esrcore:displayValue name="submittedIdentityTraitsForm" property="pseudoSsnReason"/>
				</td>
			</tr>

			 <tr>
				<td width="20%" style="text-align: left; padding-left: 10px" valign="top" class="darkLabel" nowrap>
					<bean-el:message key="label.personal.birthSex"/>:
				</td>
				<td width="20%" align="left" valign="top" class="darkValue" nowrap>
					<esrcore:displayValue name="submittedIdentityTraitsForm" property="gender"/>
				</td>
			</tr>

			 <tr>
				<td width="20%" style="text-align: left; padding-left: 10px" valign="top" class="darkLabel" nowrap>
					<bean-el:message key="label.personal.dateOfBirth"/>:
				</td>
				<td width="20%" align="left" valign="top" class="darkValue" nowrap>
					<esrcore:displayValue name="submittedIdentityTraitsForm" property="dateOfBirth"/>
				</td>
			</tr>

			 <tr>
				<td width="20%" style="text-align: left; padding-left: 10px" valign="top" class="label" nowrap>
					<bean-el:message key="label.identityTraits.submittedBy"/>:
				</td>
				<td width="20%" align="left" valign="top" class="value" nowrap>
					<esrcore:displayValue name="submittedIdentityTraitsForm" property="updateUser"/>
				</td>
			</tr>

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

</c:if>

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


  </html-el:form>
</table>
