<%@ include file="/includes.jsp"%>
<%@ taglib prefix="smvc" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ include file="styles.css"%>

<tiles:importAttribute />
<c:set var="readOnly" value="false"/>
<c:if test="${consultationNoteForm.view.note.locked eq true}">
	<c:set var="readOnly" value="true"/>
</c:if>

<div class="container">

	<div class="sectionSubPageTop">

		<input type="hidden" value="false" id="unsaveButtonId" />
		<h2>Post Neoadjuvant Review</h2>

		<div class="fieldSet2Column">
			<span class="inputLabelAbove">Presented By</span>
		</div>
		<div class="fieldSet2Column">
			<span class="inputControl">
				<webapp:namedListSpring path='value[PresentedBy]'  id="PresentedBy" disabled="${readOnly}" domain="EMDT" name="SpireEdSurg Onc"
						currentValue="${consultationNoteForm.value['PresentedBy']}" nlFromFormDefinition="${namedListMap['EMDT']['SpireEdSurg Onc']}"/>
				</span>
		</div>

		<div class="fieldSet2Column">
			<span class="inputLabelAbove">Date</span>
		</div>
		<div class="fieldSet2Column">
			<span class="inputControl">
			<spring:bind path='value[Date]'>
				<c:choose>
					<c:when test="${disabled or readOnly}">
						<input type="text" name='value[Date]' size="0" id="Date" class="form-control" disabled="disabled" placeholder="dd/mm/yyyy" value="${consultationNoteForm.view.note.values['Date']}" />
					</c:when>
					<c:otherwise>
						<input type="text" name='value[Date]' size="0" id="Date" class="form-control" placeholder="dd/mm/yyyy" value="${consultationNoteForm.view.note.values['Date']}"/>
					</c:otherwise>
				</c:choose>
			</spring:bind>
			</span>
		</div>


		<div>&nbsp;</div>
		<div class="fieldSet2Column">
			<span class="inputLabelAbove">Primary/Neoadjuvant treatment</span>
		</div>
		<div class="fieldSet2Column">
			<span class="inputControlWide"><smvc:textarea path="value[PrimaryNeoadTreatment]" cols="100" rows="5" id="PrimaryNeoadTreatment" /></span>
		</div>

		<div class="fieldSet2Column">
			<span class="inputLabelAbove">Response</span>
		</div>
		<div class="fieldSet2Column">
			<span class="inputControlWide"><smvc:textarea path="value[Response]" cols="100" rows="5" id="Response" /></span>
		</div>
	</div>

	<div class="sectionSubPageTop">


		<h2>Histopathology</h2>

		<table width="100%">
			<tr>
				<td width="50%">
					<table width="100%">
						<tr>
							<td><span class="inputLabel">Size (mm)</span> </td> <td><span class="inputControl"><smvc:input path="value[Size]" size="5" id="Size" /></span> </td>
						</tr>				
						<tr>
							<td> <span class="inputLabel">Size (invasive + DCIS) mm</span></td> <td><span class="inputControl"><smvc:input path="value[SizeInvasiveDCIS]" size="5" id="SizeInvasiveDCIS" /></span> </td>
						</tr>				
						<tr>
							<td><span class="inputLabel">Tumour Type</span> </td> <td><span class="inputControl"><smvc:input path="value[TumourType]" size="20" id="TumourType" /></span> </td>
						</tr>		
						
						<tr>
							<td><span class="inputLabel">Grade</span> </td>
							<td><span class="inputControl">
								<webapp:namedList id="nl" domain="EMDT" name="List1to3" nlFromFormDefinition="${namedListMap['EMDT']['List1to3']}" />
								<c:forEach var="pair" items="${nl.pairIterator}" varStatus="radioCount">
									<smvc:radiobutton disabled="false" path='multiValue[Grade]' value="${pair.first}" id="Grade${radioCount.count}" />&nbsp;<c:out value="${pair.second}"/>&nbsp;
								</c:forEach>
								</span> 
							</td>
						</tr>		
						<tr>
							<td> <span class="inputLabel">LVI</span></td> <td><span class="inputControl"><smvc:input path="value[LVI]" size="20" id="LVI" /></span>
							</td>
						</tr>		
						<tr>
							<td> <span class="inputLabel">Margins</span></td> <td><span class="inputControl"><smvc:input path="value[Margins]" size="20" id="Margins" /></span> </td>
						</tr>		
					</table>
					
				 </td>	
				<td width="50%">
				
					<table width="100%">
						<tr>
							<td><span class="inputLabel">NPI</span> </td> <td><span class="inputControl"><smvc:input path="value[NPI]" size="30" id="NPI" /></span> </td>
						</tr>
						<tr>
							<td><span class="inputLabel">Nodes</span> </td> <td><span class="inputControl"><smvc:input path="value[Nodes]" size="30" id="Nodes" /></span> </td>
						</tr>
						<tr>
							<td><span class="inputLabel">DCIS</span> </td> <td><span class="inputControl"><smvc:input path="value[DCIS]" size="30" id="DCIS" /></span> </td>
						</tr>
						<tr>
							<td><span class="inputLabel">ER</span> </td> <td><span class="inputControl"><smvc:input path="value[ER]" size="30" id="ER" /></span> </td>
						</tr>
						<tr>
							<td><span class="inputLabel">PR</span> </td> <td><span class="inputControl"><smvc:input path="value[PR]" size="30" id="PR" /></span> </td>
						</tr>
						<tr>
							<td><span class="inputLabel">Her2</span> </td> <td><span class="inputControl"><smvc:input path="value[HER2]" size="30" id="HER2" /></span> </td>
						</tr>
					</table>
				
				 </td>
			</tr>
		</table>
	</div>

	

	<div class="sectionSubPageTop">

		<div class="fieldSet2Column">
			<span class="inputLabelAbove">Notes</span>
		</div>
		<div class="fieldSet2Column">
			<span class="inputControlWide"><smvc:textarea path="value[SignatureNotes]" cols="100" rows="2" id="SignatureNotes" /></span>
		</div>	
	</div>
</div>


<br/>