<%@ 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" %>
<%@ taglib uri="/tags/fw" prefix="fw" %>
<%@ taglib uri="/tags/esr-core" prefix="esrcore" %>

<a name="ContentArea"/>
<table width="100%" border="1" cellpadding="0" cellspacing="0" class="moduleShell">
  <tr>
    <td>
      <table width="100%" border="0" cellpadding="0" cellspacing="0" class="moduleShellTable">
        <%-- Person Merge Header --%>
        <tr>
          <td>
            <table width="100%" border="0" cellpadding="0" cellspacing="0" class="moduleShellTableHead">
              <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="label.person.personMerge"/></td>
                <td width="100%"><img alt=""  src="../images/spacer.gif"></td>
              </tr>
            </table>
          </td>
        </tr>
        <tr>
          <td>
            <table summary="List of Veterans That Require Merging" width="100%" border="0" cellspacing="0" cellpadding="0" class="moduleShellTableBody">
              <thead>
              <tr>
                <th scope="col" style="text-align:left; padding-left: 5px" class="darkLabel"><u><bean-el:message key="label.person.ssn"/></u></th>
                <th scope="col" style="text-align:left; padding-left: 5px" class="darkLabel"><u><bean-el:message key="label.person.lastName"/></u></th>
                <th scope="col" style="text-align:left; padding-left: 5px" class="darkLabel"><u><bean-el:message key="label.person.firstName"/></u></th>
                <th scope="col" style="text-align:left; padding-left: 5px" class="darkLabel"><u><bean-el:message key="label.person.middleName"/></u></th>
                <th scope="col" style="text-align:left; padding-left: 5px" class="darkLabel"><u><bean-el:message key="label.person.dob"/></u></th>
                <th scope="col" style="text-align:left; padding-left: 5px" class="darkLabel"><u><bean-el:message key="label.person.birthSex"/></u></th>
                <th scope="col" style="text-align:left; padding-left: 5px" class="darkLabel"><u><bean-el:message key="label.person.survivingRecord"/></u></th>
              </tr>
              </thead>
              <tbody>
              <tr>
                <td scope="row" class="value" valign="top" nowrap>
                  <esrcore:displayValue name="personMergeInfoMap" property="person_personMergeInfo.deprecatedPersonIdentityTraits.ssn"/><br>
                  <esrcore:displayValue name="personMergeInfoMap" property="person_personMergeInfo.primaryPersonIdentityTraits.ssn"/>
                </td>
                <td class="value" valign="top" nowrap>
                  <esrcore:displayValue name="personMergeInfoMap" property="person_personMergeInfo.deprecatedPersonIdentityTraits.legalName.familyName"/><br>
                  <esrcore:displayValue name="personMergeInfoMap" property="person_personMergeInfo.primaryPersonIdentityTraits.legalName.familyName"/>
                </td>
                <td class="value" valign="top" nowrap>
                  <esrcore:displayValue name="personMergeInfoMap" property="person_personMergeInfo.deprecatedPersonIdentityTraits.legalName.givenName"/><br>
                  <esrcore:displayValue name="personMergeInfoMap" property="person_personMergeInfo.primaryPersonIdentityTraits.legalName.givenName"/>
                </td>
                <td class="value" valign="top" nowrap>
                  <esrcore:displayValue name="personMergeInfoMap" property="person_personMergeInfo.deprecatedPersonIdentityTraits.legalName.middleName"/><br>
                  <esrcore:displayValue name="personMergeInfoMap" property="person_personMergeInfo.primaryPersonIdentityTraits.legalName.middleName"/>
                </td>
                <td class="value" valign="top" nowrap>
                  <esrcore:displayDate name="personMergeInfoMap" dateProperty="person_personMergeInfo.deprecatedPersonIdentityTraits.birthRecord.birthDate"/><br>
                  <esrcore:displayDate name="personMergeInfoMap" dateProperty="person_personMergeInfo.primaryPersonIdentityTraits.birthRecord.birthDate"/>
                </td>
                <td class="value" valign="top" nowrap>
                  <esrcore:displayValue name="personMergeInfoMap" property="person_personMergeInfo.deprecatedPersonIdentityTraits.gender.name"/><br>
                  <esrcore:displayValue name="personMergeInfoMap" property="person_personMergeInfo.primaryPersonIdentityTraits.gender.name"/>
                </td>
                <td class="value" valign="top" nowrap>
                  <bean-el:message key="label.person.deprecated"/><br><bean-el:message key="label.person.surviving"/>
                </td>
              </tr>
              </tbody>
            </table>
          </td>
        </tr>
        <tr>
          <td>
            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="moduleShellTableBody">
              <tr><td colspan="2"><img alt=""  src="../images/spacer.gif" width="1" height="10"/></td></tr>
              <tr>
                <th scope = "col" width="45%" class="moduleLabel"><bean-el:message key="label.person.mergeStatus"/>:</th>
                <td width="55%" class="moduleValue" valign="top" nowrap>
                  <c:choose>
                  <c:when test="${personMergeInfoMap.person_personMergeInfo.mergeInProgress == 'true'}">
                    <bean-el:message key="label.person.mergePreviouslySaved"/>
                  </c:when>
                  <c:otherwise>
                    <bean-el:message key="label.person.mergeNotPreviouslySaved"/>
                  </c:otherwise>
                  </c:choose>
                </td>
              </tr>
              <tr>
                <th scope = "col" class="moduleLabel"><bean-el:message key="label.person.lastSavedBy"/>:</th>
                <td class="moduleValue" valign="top" nowrap>
                  <c:choose>
                  <c:when test="${personMergeInfoMap.person_personMergeInfo.mergeInProgress == 'true'}">
                    <esrcore:displayValue name="personMergeInfoMap" property="person_personMergeInfo.modifiedBy.name"/>
                  </c:when>
                  <c:otherwise>
                    &nbsp;
                  </c:otherwise>
                  </c:choose>
                </td>
              </tr>
              <tr>
                <th scope = "col" class="moduleLabel"><bean-el:message key="label.person.lastSavedOn"/>:</th>
                <td class="moduleValue" valign="top" nowrap>
                  <c:choose>
                  <c:when test="${personMergeInfoMap.person_personMergeInfo.mergeInProgress == 'true'}">
                    <esrcore:displayDate name="personMergeInfoMap" dateProperty="person_personMergeInfo.modifiedOn" displayTime="true"/>
                  </c:when>
                  <c:otherwise>
                    &nbsp;
                  </c:otherwise>
                  </c:choose>
                </td>
              </tr>
            </table>
          </td>
        </tr>
        <tr>
          <td>
            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="moduleShellTableBody">
              <tr>
                <td height="50">
                  <table width="100%" border="0" cellpadding="0" cellspacing="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:138; vertical-align: top;" styleClass="buttonText"><bean-el:message key="button.person.discardAllSelections"/></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:130; vertical-align: top;" styleClass="buttonText"><bean-el:message key="button.person.saveAndMergeLater"/></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:120; vertical-align: top;" styleClass="buttonText"><bean-el:message key="button.person.mergeRecordsNow"/></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>
            </table>
          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
