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

<!-- POW permissions -->

<c:set var="readOnlyMOH" value="true"/>
<c:set var="expandableSectionCollapsed" scope="page"><bean-el:message key="label.expandableSectionCollapsed"/></c:set>
 

<table width="100%" border="0" cellspacing="0" cellpadding="0" class="moduleShellTableBody">
  <tr>
    <td width="50%" class="moduleLabel">
      <fw:link href="." onclick="expandOrCollapse(mohBlock, mohImage, mohHiddenId); return false">
        <html-el:img alt="${expandableSectionCollapsed}" align="center" border="0" styleId="mohImage" src="../images/redArrowRight.gif"/>
        <fw:label property="mohInd" forId="idMoh"><bean-el:message key="label.medalOfHonor"/>:</fw:label>
      </fw:link>&nbsp;
      <html-el:hidden name="militaryServiceInfoForm" property="mohHiddenId"/>
    </td>
    <td width="55%">
      <table width="20%" border="0"cellspacing="0" cellpadding="0">
        <tr>
          <td class="moduleValue" nowrap>
            <c:set var="mohText"><bean-el:message key="label.medalOfHonor"/></c:set>
            <html-el:text title="${mohText}" styleClass="moduleEdit" styleId="idMoh" readonly="true" property="mohInd" />
          </td>          
        </tr>
      </table>
    </td>
  </tr>
</table>

<div id=mohBlock style="display:none" class="expandCollapseBody">
  <table width="100%" border="0" cellspacing="0" cellpadding="0" class="moduleShellTableBody">
    <c:choose>
    <c:when test="${militaryServiceInfoForm.mohInd == 'Yes'}"> 
    <tr>
      <td colspan="2" width="100%"><img alt=""  src="../images/spacer.gif" width="1" height="10"/></td>
    </tr>
    <tr>
      <td width="50%" class="moduleLabel"><bean-el:message key="label.dataSource"/>:</td>
      <td width="55%" class="moduleValue">
      <esrcore:displayValue name="conflictExperience" property="endDate"/>
        <c:set var="mohSourceText"><bean-el:message key="label.dataSource"/></c:set>
        <esrcore:displayValue name="militaryServiceInfoForm" property="dataSource"/>             
      </td>
    </tr>
    <tr>
      <td width="50%" class="moduleLabel"><bean-el:message key="label.statusUpdateDate"/>:</td>
      <td width="55%" class="moduleValue">
        <c:set var="statusUpdateText"><bean-el:message key="label.statusUpdateDate"/></c:set>
        <esrcore:displayValue name="militaryServiceInfoForm" property="mhLastStatusUpdateDate"/>          
      </td>
    </tr>
    <tr>
      <td width="50%" class="moduleLabel"><bean-el:message key="label.lastUpdatedDate"/>:</td>
      <td width="55%" class="moduleValue">
        <c:set var="lastUpdateText"><bean-el:message key="label.lastUpdatedDate"/></c:set>
        <esrcore:displayValue name="militaryServiceInfoForm" property="mhLastEditDate"/>         
      </td>
    </tr>
    </c:when>
    <c:otherwise>
    <tr>
      <td width="50%" class="moduleLabel" style="padding-bottom: 10"><bean-el:message key="label.noMOHAvailable"/>&nbsp;</td>
      <td width="55%" class="moduleValue">&nbsp;</td>
    </tr>
    </c:otherwise>
    </c:choose>
  </table>  
</div>
