<%@ 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" %>
<%@ page import='gov.va.med.esr.ui.common.util.JspUtils' %>
<%@ taglib uri="/tags/authz" prefix="auth" %>
<%@ page import='gov.va.med.esr.common.model.lookup.Capability' %>

<table width="100%" border="0" cellpadding="0" cellspacing="0" class="moduleShell">
<html-el:form action="/home" 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 style="padding-left: 7">Home</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>&nbsp;</td></tr>
			<%-- Based on the assigned Capabilities enable the links --%>
			<tr><td>
				<c:set var="searchforPerson" value="ROLE_USER"></c:set>
				<auth:authorize ifAnyGranted="${searchforPerson}">
					<fw:link action="/search.do?methodName=DISPLAY">
						Search for Person</fw:link>		
				</auth:authorize>
			</td></tr>
			<tr><td>							
				<c:set var="manageUserAccounts" value="ROLE_USER"></c:set>
				<auth:authorize ifAnyGranted="${manageUserAccounts}">
					<fw:link action="/searchUserAccount.do?methodName=DISPLAY">
						User Accounts - Create or Modify</fw:link>		
				</auth:authorize>
			</td></tr>				
			<tr><td>			
				<c:set var="manageUserProfile" value="ROLE_USER"></c:set>
				<auth:authorize ifAnyGranted="${manageUserProfile}">
					<fw:link action="/searchUserProfile.do?methodName=DISPLAY">
						Update User Profile, Roles, Capability Sets</fw:link>		
				</auth:authorize>
			</td></tr>								
			<tr><td>			
				<c:set var="manageSystemParameters" value="ROLE_USER"></c:set>
				<auth:authorize ifAnyGranted="${manageSystemParameters}">
					<fw:link action="/systemParameters.do?methodName=DISPLAY">
						Update System Parameters</fw:link>		
				</auth:authorize>				
			</td></tr>
			</table>
		  </td>
		</tr>
	  </table>
	</td>
  </tr>
</html-el:form>
</table>