<%@ include file="/project/include.jsp" %>
	
<j:tile slave="abusi" name="shell.slaveToolbar" />
<shell:grid description="dataConoscenza; tipoSoggettoSegnalante; tipoAbuso; dataPrimoEpisodio; dataUltimoEpisodio; contestoAmbientale" slave="abusi" />
	
<shell:fieldset title="${j:bundle('LBL_preseincarico_presaincarico_infoMaltrattamenti_SET')}">
	<table align="center" width="100%">
		<tr>
			<td class="form-label">
				<shell:label prop="dataConoscenza" />
			</td>
			<td class="form-data">
				<bui:out slave="abusi" modes="view">
					<j:tile name="shell.plaintext" slave="abusi" prop="dataConoscenza" />
				</bui:out>
				<bui:out slave="abusi" modes="create, update">
					<j:bind prop="dataConoscenza">
						<j:text class="form-date" id="dataConoscenzaCLD"/>
						<shell:calendar inputId="dataConoscenzaCLD" />
						<shell:error />
					</j:bind>
				</bui:out>
			</td>
		</tr>
		<tr>
			<td class="form-label">
				<shell:label prop="tipoSoggettoSegnalante" />
			</td>
			<td class="form-data">
				<bui:out slave="abusi" modes="view">
					<j:tile name="shell.plaintext" slave="abusi" prop="tipoSoggettoSegnalante" />
				</bui:out>
				<bui:out slave="abusi" modes="create, update">
					<j:bind prop="tipoSoggettoSegnalante">
						<j:select class="form-input" emptyOptionDescr=" " />
						<shell:error />
					</j:bind>
				</bui:out>
			</td>
		</tr>
		<tr>   
			<td class="form-label">
				<shell:label prop="nominativoSoggettoSegnalante" />
			</td> 
			<td class="form-values">
				<bui:out slave="abusi" modes="view">  
					<j:tile name="shell.plaintext" slave="abusi" prop="nominativoSoggettoSegnalante" />
				</bui:out>
				<bui:out slave="abusi" modes="update,create">
					<j:bind prop="nominativoSegnalante">
						<j:text class="form-long-text" />
						<shell:error />
					</j:bind>
				</bui:out> 
			</td>
		</tr>			 		
		<tr>
			<td class="form-label">
				<shell:label prop="soggettiAConoscenza" />
			</td>
			<td class="form-data">
				<bui:out slave="abusi" modes="view">
					<j:tile name="shell.plaintext" slave="abusi" prop="soggettiAConoscenza" />
				</bui:out>
				<bui:out slave="abusi" modes="create, update">
					<j:bind prop="soggettiAConoscenza">
						<j:valueSetIterator>
							<j:checkbox />${j:getValueSetItem().description}<br>
						</j:valueSetIterator>
						<shell:error />
					</j:bind>
				</bui:out>
			</td>
		</tr>
		<tr>
			<td class="form-label">
				<shell:label prop="tipoAbuso" />
			</td>
			<td class="form-data">
				<bui:out slave="abusi" modes="view">
					<j:tile name="shell.plaintext" slave="abusi" prop="tipoAbuso" />
				</bui:out>
				<bui:out slave="abusi" modes="create, update">
					<j:bind prop="tipoAbuso">
						<j:select class="form-input" emptyOptionDescr=" " />
						<shell:error />
					</j:bind>
				</bui:out>
			</td>
		</tr>
		<tr>
			<td class="form-label">
				<shell:label prop="soggettiAbusanti" />
			</td>
			<td class="form-data">
				<bui:out slave="abusi" modes="view">
					<j:tile name="shell.plaintext" slave="abusi" prop="soggettiAbusanti" />
				</bui:out>
				<bui:out slave="abusi" modes="create, update">
					<j:bind prop="soggettiAbusanti">
						<j:valueSetIterator>
							<j:checkbox />${j:getValueSetItem().description}<br>
						</j:valueSetIterator>
						<shell:error />
					</j:bind>
				</bui:out>
			</td>
		</tr>
		<tr>
			<td class="form-label">
				<shell:label prop="dataPrimoEpisodio" />
			</td>
			<td class="form-data">
				<bui:out slave="abusi" modes="view">
					<j:tile name="shell.plaintext" slave="abusi" prop="dataPrimoEpisodio" />
				</bui:out>
				<bui:out slave="abusi" modes="create, update">
					<j:bind prop="dataPrimoEpisodio">
						<j:text class="form-date"   id="dataPrimoEpisodioCLD"/>
						<shell:calendar inputId="dataPrimoEpisodioCLD" />
						<shell:error />
					</j:bind>
				</bui:out>
			</td>
		</tr>
		<tr>
			<td class="form-label">
				<shell:label prop="dataUltimoEpisodio" />
			</td>
			<td class="form-data">
				<bui:out slave="abusi" modes="view">
					<j:tile name="shell.plaintext" slave="abusi" prop="dataUltimoEpisodio" />
				</bui:out>
				<bui:out slave="abusi" modes="create, update">
					<j:bind prop="dataUltimoEpisodio">
						<j:text class="form-date"   id="dataUltimoEpisodioCLD"/>
						<shell:calendar inputId="dataUltimoEpisodioCLD" />
						<shell:error />
					</j:bind>
				</bui:out>
			</td>
		</tr>
		<tr>
			<td class="form-label">
				<shell:label prop="frequenzaAbuso" />
			</td>
			<td class="form-data">
				<bui:out slave="abusi" modes="view">
					<j:tile name="shell.plaintext" slave="abusi" prop="frequenzaAbuso" />
				</bui:out>
				<bui:out slave="abusi" modes="create, update">
					<j:bind prop="frequenzaAbuso">
						<j:select class="form-input" emptyOptionDescr=" " />
						<shell:error />
					</j:bind>
				</bui:out>
			</td>
		</tr>
		<tr>
			<td class="form-label">
				<shell:label prop="contestoAmbientale" />
			</td>
			<td class="form-data">
				<bui:out slave="abusi" modes="view">
					<j:tile name="shell.plaintext" slave="abusi" prop="contestoAmbientale" />
				</bui:out>
				<bui:out slave="abusi" modes="create, update">
					<j:bind prop="contestoAmbientale">
						<j:select class="form-input" emptyOptionDescr=" " />
						<shell:error />
					</j:bind>
				</bui:out>
			</td>
		</tr>
		<tr>
			<td class="form-label">
				<shell:label prop="esitoProcedimento" />
			</td>
			<td class="form-data">
				<bui:out slave="abusi" modes="view">
					<j:tile name="shell.plaintext" slave="abusi" prop="esitoProcedimento" />
				</bui:out>
				<bui:out slave="abusi" modes="create, update">
					<j:bind prop="esitoProcedimento">
						<j:select class="form-input" emptyOptionDescr=" " />
						<shell:error />
					</j:bind>
				</bui:out>
			</td>
		</tr>
	</table>
</shell:fieldset>

<shell:fieldset title="${j:bundle('LBL_preseincarico_presaincarico_infoAggiu_SET')}">
	<table>
		<tr>
			<td class="form-label">
				<shell:label prop="noteAbuso" />
			</td>
			<td class="form-data">
				<bui:out slave="abusi" modes="view">
					<j:tile name="shell.plaintext" slave="abusi" prop="noteAbuso" />
				</bui:out>
				<bui:out slave="abusi" modes="create, update">
					<j:bind prop="noteAbuso">
						<j:textarea class="form-normal-textarea"/>
						<shell:error />
					</j:bind>
				</bui:out>
			</td>
		</tr>
	</table>
</shell:fieldset>