<script language="JavaScript" src="../scripts/ESR-Script.js"></script>
<%@ taglib uri="/tags/fw" prefix="fw" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html-el" %>
<%@ taglib uri="/tags/struts-bean-el" prefix="bean-el" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="/tags/esr-core" prefix="esrcore" %>
<%@ page import='gov.va.med.esr.ui.common.util.JspUtils' %>
<%@ page import='gov.va.med.esr.common.model.lookup.VAFacility' %>
<%@ taglib uri="/tags/authz" prefix="auth" %>
<%@ page import='gov.va.med.esr.common.model.lookup.Capability' %>


<table width="100%" border="1" cellpadding="0" cellspacing="0" class="moduleShell">

<html-el:form action="/editUserAccount" method="post">
  <%@ include file="/admin/csrfgentoken.jsp" %>
 <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"><img alt=""  src="../images/spacer.gif" width="28" height="23"/></td>
        <td nowrap class="moduleHeadline">View User Account</td>
		<td width="100%"><img alt=""  src="../images/spacer.gif"/></td>
       </tr>
      </table>
     </td>
    </tr>

    <tr>
     <td>
      <table width="100%" border="0" cellspacing="0" cellpadding="0" class="moduleShellTableBody">
        <tr>
            <td colspan="2">&nbsp;</td>
        </tr>
		<!-- read only fields -->
        <tr>
            <td width="45%" class="moduleLabel"><bean-el:message key="label.userid"/>:</td>
            <td width="55%" class="moduleValue">
				<esrcore:displayValue name="userForm" property="name" />
				<html-el:hidden name="userForm" property="name" />
				<html-el:hidden name="userForm" property="userId" />
			</td>
        </tr>

        <tr>
            <td width="45%" class="label"><bean-el:message key="label.lastname"/>:</td>
            <td width="55%" class="value"><esrcore:displayValue name="userForm" property="familyName"/></td>
        </tr>
        <tr>
            <td width="45%" class="darkLabel"><bean-el:message key="label.firstname"/>:</td>
            <td width="55%" class="darkValue"><esrcore:displayValue name="userForm" property="givenName"/></td>
        </tr>
        <tr>
            <td width="45%" class="label"><bean-el:message key="label.middlename"/>:</td>
            <td width="55%" class="value"><esrcore:displayValue name="userForm" property="middleName"/></td>
        </tr>
        <tr>
            <td width="45%" class="darkLabel"><bean-el:message key="label.facility"/>:</td>
			<td width="55%" class="darkValue"><esrcore:displayLookupValue name="userForm" property="facility"
				lookupType="gov.va.med.esr.common.model.lookup.VAFacility" lookupProperty="facilityName"/>
			</td>
        </tr>
		<tr>
            <td width="45%" class="label"><bean-el:message key="label.functionalGroup"/>:</td>
		    <td width="55%" class="value"><esrcore:displayLookupValue name="userForm" property="functionalGroup"
				lookupType="gov.va.med.esr.common.model.lookup.FunctionalGroup" lookupProperty="description"/>
			</td>
		</tr>
        <tr>
            <td width="45%" class="darkLabel"><bean-el:message key="label.jobTitle"/>:</td>
            <td width="55%" class="darkValue"><esrcore:displayValue name="userForm" property="jobTitle"/></td>
        </tr>
        <tr>
            <td width="45%" class="darkLabel"><bean-el:message key="label.agreementSignatureCode"/>:</td>
            <td width="55%" class="darkValue"><esrcore:displayValue name="userForm" property="agreementSignatureCode" /></td>
        </tr>
        <tr>
            <td width="45%" class="darkLabel"><bean-el:message key="label.lastLoginDate"/>:</td>
            <td width="55%" class="darkValue"><esrcore:displayValue name="userForm" property="lastLoginDate" /></td>
        </tr>
         <tr>
            <td width="45%" class="darkLabel"><bean-el:message key="label.accountLockDate"/>:</td>
            <td width="55%" class="darkValue"><esrcore:displayValue name="userForm" property="accountLockDate" /></td>
        </tr>

		<!-- end of edit specific fields -->
		<%-- Button Row --%>
        <tr>
          <td colspan="2" height="50">
            <table width="100%" border="0" cellpadding="0" cellspacing="0">
              <tr>
					<td width="48%"><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="48%"><img alt=""  src="../images/spacer.gif"/></td>
	           </tr>
            </table>
          </td>
        </tr>
      </table>
     </td>
    </tr>
   </table>
  </td>
 </tr>
</html-el:form>
</table>