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

<script type="text/javascript" src="${j:getResourceUrlOfModule('anagrafiche','js/soggettoUtils.js')}"></script>

<center>
<shell:fieldset title="Informazioni generali">
	<table border="0" cellspacing="3" cellpadding="0" width="100%" >
		<tr>
			<td valign="top" width="40%">
				<table border="0" cellspacing="3" cellpadding="0" >
					<tr>
						<td class="form-label">
							<shell:label prop="cognome" />
						</td>
						<td class="form-values">
							<bui:out modes="view">
								<j:tile name="shell.plaintext" prop="cognome" />
							</bui:out>
							<bui:out modes="create, update">
								<j:bind prop="cognome">
									<j:text class="form-normal-text" />
									<shell:error />
								</j:bind>
							</bui:out>
						</td>
			 		</tr>
					<tr>
						<td class="form-label">
							<shell:label prop="nome" />
						</td>
						<td class="form-values">
							<bui:out modes="view">
								<j:tile name="shell.plaintext" prop="nome" />
							</bui:out>
							<bui:out modes="create, update">
								<j:bind prop="nome">
									<j:text class="form-normal-text" />
									<shell:error />
								</j:bind>
							</bui:out>
						</td>
			 		</tr>
					<tr>
						<td class="form-label">
							<shell:label prop="sesso" />
						</td>
						<td class="form-values">
							<bui:out modes="view">
								<j:tile name="shell.plaintext" prop="sesso" />
							</bui:out>
							<bui:out modes="create, update">
								<j:bind prop="sesso">
									<j:valueSetIterator>
										<j:radio/> ${j:getValueSetItem().description}
									</j:valueSetIterator>
									<shell:error />
								</j:bind>
							</bui:out>
						</td>
			 		</tr>	
					<tr>
						<td class="form-label">
							<shell:label prop="dataNascita" />
						</td>
						<td class="form-values">
							<bui:out modes="view">
								<j:tile name="shell.plaintext" prop="dataNascita" />
							</bui:out>
							<bui:out modes="create, update">
								<j:bind prop="dataNascita">
									<j:text class="form-date" id="dataNascitaCld" />
									<shell:calendar inputId="dataNascitaCld" />
									<shell:error />
								</j:bind>
							</bui:out>
						</td>
			 		</tr>			 				 		
					<tr>
						<td class="form-label">
							<shell:label prop="codiceFiscale" />
						</td>
						<td class="form-values">
							<bui:out modes="view">
								<j:tile name="shell.plaintext" prop="codiceFiscale" />
							</bui:out>
							<bui:out modes="create, update">
								<j:bind prop="codiceFiscale">
									<j:text class="form-normal-text" />
									<shell:error />
								</j:bind>
							</bui:out>
						</td>
			 		</tr>
					<tr>
						<td class="form-label">
							<shell:label prop="emailAddress" />
						</td>
						<td class="form-values">
							<bui:out modes="view">
								<j:tile name="shell.plaintext" prop="emailAddress" />
							</bui:out>
							<bui:out modes="create, update">
								<j:bind prop="emailAddress">
									<j:text class="form-normal-text" />
									<shell:error />
								</j:bind>
							</bui:out>
						</td>
			 		</tr>			 		
				</table>
			</td>
			<td valign="top" width="40%">
				<table border="0" cellspacing="3" cellpadding="0" >
					<icare:ifOptional prop="Tipo medico [p]">						
					<tr>
						<td class="form-label">
							<shell:label prop="tipoMedico" />
						</td>
						<td class="form-values">
							<bui:out modes="view">
								<j:tile name="shell.plaintext" prop="tipoMedico" />
							</bui:out>
							<bui:out modes="create, update">
								<j:bind prop="tipoMedico">
									<j:select class="form-input" emptyOptionDescr=" " />
									<shell:error />
								</j:bind>
							</bui:out>	
						</td>
 					</tr>
 					</icare:ifOptional>				
				</table>
			</td>		
		</tr>
	</table>
</shell:fieldset>

<shell:fieldset title="Informazioni aggiuntive">
	<table border="0" cellspacing="3" cellpadding="0" width="100%" >
		<tr>
			<td class="form-label">
				<shell:label prop="note" />
			</td>
			<td class="form-values">
				<bui:out modes="view">
					<j:tile name="shell.plaintext" prop="note" />
				</bui:out>
				<bui:out modes="create, update">
					<j:bind prop="note">
						<j:textarea class="form-normal-textarea" />
						<shell:error />
					</j:bind>
				</bui:out>
			</td>
		</tr>
	</table>
</shell:fieldset>
</center>