<%@ include file="/includes.jsp" %>
<style>
p	{
	text-align: left;
	margin: 10 0 0 20;
	}
.date	{
	text-align: left;
	color: gray;
	margin: 0 0 0 20;
	}

</style>

<p>
Form Search Results for <b>'<c:out value="${noteSearchForm.query}"/>'</b>:<p/>

<c:forEach var="nsr" items="${noteSearchResults}" varStatus="index">
<%com.ardeo.emdt.NoteSearchResult nsr=(com.ardeo.emdt.NoteSearchResult)pageContext.getAttribute("nsr"); %>
<b><c:out value="${nsr.form.label}"/></b> on page '<c:out value="${nsr.field.parent.parent.label}"/>'&nbsp;&nbsp;&nbsp;&nbsp;<a href="consultationNote.form?conNoteId=<%=nsr.getNoteGuid()%>"><b>[View form]</b></a>
<br/>

<c:out value="${nsr.field.label}"/> : 

	<webapp:forEach id="val" items="${nsr.fieldValue.values}">
		<c:out value="${val}"/> 
	</webapp:forEach>

<br/>
<div class="date">Date: <c:out value="${nsr.form.modifiedDate}"/></div>
<p/>

</c:forEach>
</p>


<!--

Todo: 

link to a specific form page
count the items returned
page the results
different search options - match field label only, match field name, show only fields with values

-->
