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

<bui:out modes="view">
	<script type="text/javascript">
		function eformat_cpmt_vsCaratteristiche(element, value, name) {
			document.getElementById('trCaratteristiche').style.display=(value == 'show' ? '' : 'none');			
		}
	</script>
	<span id="cpmt_vsCaratteristiche" style="display:none;"></span>
	
	<shell:fieldset title="Caratteristiche">
		<table align="center" width="100%">
			<tr>
				<td class="form-label">
					<shell:label prop="tipoCaratteristica" />
				</td>
				<td class="form-values">
					<shell:grid property="caratteristiche" description="codice,20%; descrizione,80%" numOfRows="10"/>
				</td>
			</tr>			
			<tr id="trCaratteristiche" style="display:normal;">
				<td class="form-label">
					<shell:label prop="visualizzaStorico" />
				</td>
				<td class="form-values">
					<icare:viewStorico provider="it.cedaf.icare.anagrafiche.commons.CaratteristicheSoggettoStoricoInfoProvider" idField="idSoggetto" params="storicoPropertyName=storicoCaratteristiche"/>			
				</td>
			</tr>			
		</table>
	</shell:fieldset>	
</bui:out>



<bui:out modes="create, update">
	<shell:fieldset title="Caratteristiche">
		<table align="center" width="100%">
			<tr>
				<td class="form-label">
					<shell:label prop="tipoCaratteristica" />
				</td>
				<td class="form-values">
					<j:bind prop="tipiCaratteristiche">
						<j:valueSetIterator>
							<j:checkbox id="tipoCarattSogg" />${j:getValueSetItem().description}<br>
        				</j:valueSetIterator>
						<shell:error />
					</j:bind>
				</td>
			</tr>
			<icare:storicizza2 prop="storicizzaCaratteristiche"/>
		</table>
	</shell:fieldset>	
		
</bui:out>