<%@ include file="/includes.jsp" %>

<style type="text/css"> 

.formMenuHeader	{
	color: black;
	font-family: Arial;
	font-size: 12px;
	font-weight: bold;
	text-align: left;
	letter-spacing: 0px;
	padding-left: 18px;
	padding-bottom: 8px;
}

.formName	{
	color: #373737;
	font-family: Arial;
	font-size: 11px;
	font-weight: normal;
	text-align: left;
	xletter-spacing: 0px;
	text-decoration: none;
	padding-left: 18px;
	padding-bottom: 2px;
}


.rounded_colhead
{
	width: 300px;
	margin: 30px auto;
	color: #aaa;
	border:	1px solid #aaa;
	padding: 14px 20px;
	
	/* Rounded corner stuff starts here */
	background-color: #f0f0f0;
	-webkit-border-radius: 6px;    /* for Safari */
	-moz-border-radius: 6px;       /* for Firefox */
	
	/* Shadows */
	box-shadow: 3px 3px 4px #777;
	-moz-box-shadow: 3px 3px 4px #777;		    /* for Firefox */
	-webkit-box-shadow: 3px 3px 4px #777;	    /* for Safari */
	-ms-filter: "progid:DXImageTransform.Microsoft.Shadow(Strength=4, Direction=135, Color='#707070')"; /* For IE 8 */
	filter: progid:DXImageTransform.Microsoft.Shadow(Strength=4, Direction=135, Color='#707070'); /* For IE 5.5 - 7 */
}
 
</style> 
 
 <h2>Forms menu</h2>
To add a new form for this patient, choose a form below:

<c:if test="${emdt.formDomain != null }">
	<c:set var="fDom" value="${emdt.formDomain}"/>
		<c:forEach var="group" items="${fDom.children}">
					<c:if test="${fn:length(forms) gt 0 }">
					
						<div class="rounded_colhead">
						<div class="tl"></div><div class="tr"></div> 
						
							<div align="center" class="formMenuHeader" title='<c:out value="${group.description }"/>'><c:out value="${group.label }"/></div>
							
							<c:forEach var="form" items="${forms}">
									<c:if test="${form.liveStatus != 0}">
										<div class="formName" ><a href="consultationNote.form?filterFormId=<c:out value="${form.id }"/>" title="<c:out value="${form.description }"/>"><c:out value="${form.label }"/></a></div>
									</c:if>
									<c:if test="${form.liveStatus eq 0 and emdt.currentUser.username eq form.owner}">
										<div class="formName" ><a href="consultationNote.form?filterFormId=<c:out value="${form.id }"/>" title="<c:out value="${form.description }"/>"><c:out value="${form.label }"/></a></div>
									</c:if>
							</c:forEach>
						
						<div class="bl"></div><div class="br"></div> 
						</div>

					</c:if>

		</c:forEach>
</c:if>