<%@ include file="/project/include.jsp" %>
			
<center> 	
<shell:fieldset title="Informazioni generali">
	<table border="0" cellspacing="3" cellpadding="0" >
		<tr>
			<td class="form-label">
				<shell:label prop="modelloForm" />
			</td>
			<td class="form-values">
				<bui:out modes="view, update">
					<j:tile name="shell.plaintext" prop="modelloForm" />
				</bui:out>
				<bui:out modes="create">
					<j:bind prop="modelloForm">
						<j:radio displayValue="si" />${j:bundle('LBL_si')}
						<j:radio displayValue="no" />${j:bundle('LBL_no')}
						<shell:error />
					</j:bind>
				</bui:out>
			</td>						
		</tr>
		<tr>
			<td class="form-label">
				<shell:label prop="codice" />
			</td>
			<td class="form-values">
				<bui:out modes="view">
					<j:tile name="shell.plaintext" prop="codice" />
				</bui:out>
				<bui:out modes="create, update">
					<j:bind prop="codice">
						<j:text class="form-normal-text" />
						<shell:error />
					</j:bind>
				</bui:out>
			</td>						
		</tr>
		<tr>
			<td class="form-label">
				<shell:label prop="titolo" />
			</td>
			<td class="form-values">
				<bui:out modes="view">
					<j:tile name="shell.plaintext" prop="titolo" />
				</bui:out>
				<bui:out modes="create, update">
					<j:bind prop="titolo">
						<j:text class="form-long-text" />
						<shell:error />
					</j:bind>
				</bui:out>
			</td>						
		</tr>
		<tr>
			<td class="form-label">
				<shell:label prop="sottoModelli" />
			</td>
			<td class="form-values">
				<j:tile name="shell.plaintext" prop="sottoModelli" />
			</td>						
		</tr>
		<tr>
			<td class="form-label">
				<shell:label prop="modelloStampa" />
			</td>
			<td class="form-values">
				<bui:out modes="view">
					<j:tile name="shell.plaintext" prop="modelloStampa" />
				</bui:out>
				<bui:out modes="create, update">
					<j:bind prop="modelloStampa">
						<j:textarea class="form-normal-textarea" />
						<shell:error />
					</j:bind>
				</bui:out>
			</td>
 		</tr>
		<tr>
			<td class="form-label">
				<shell:label prop="istanzaIncompleta" />
			</td>
			<td class="form-values">
				<bui:out modes="view">
					<j:tile name="shell.plaintext" prop="istanzaIncompleta" />
				</bui:out>
				<bui:out modes="create, update">
					<j:bind prop="istanzaIncompleta">
						<j:radio displayValue="C" />${j:bundle('LBL_modellischeda_modalitacompilazione_C')}
						<j:radio displayValue="NC" />${j:bundle('LBL_modellischeda_modalitacompilazione_NC')}
						<j:radio displayValue="NCS" />${j:bundle('LBL_modellischeda_modalitacompilazione_NCS')}
						<shell:error />
					</j:bind>
				</bui:out>
			</td>						
		</tr>
		<tr>
			<td class="form-label">
				<shell:label prop="consentiModificaSoloAdOpRilevatore" />
			</td>
			<td class="form-values">
				<bui:out modes="view">
					<j:tile name="shell.plaintext" prop="consentiModificaSoloAdOpRilevatore" />
				</bui:out>
				<bui:out modes="create">
					<j:bind prop="consentiModificaSoloAdOpRilevatore">
						<j:radio displayValue="si" />${j:bundle('LBL_si')}
						<j:radio displayValue="no" />${j:bundle('LBL_no')}
						<shell:error />
					</j:bind>
				</bui:out>
				<bui:out modes="update">
					<c:choose>
						<c:when test="${!empty dto_hasRilevazioni && dto_hasRilevazioni == 'true'}">
							<j:tile name="shell.plaintext" prop="consentiModificaSoloAdOpRilevatore" />
							<j:bind prop="consentiModificaSoloAdOpRilevatore">
								<j:hidden />
							</j:bind>
						</c:when>
						<c:otherwise>
							<j:bind prop="consentiModificaSoloAdOpRilevatore">
								<j:radio displayValue="si" />${j:bundle('LBL_si')}
								<j:radio displayValue="no" />${j:bundle('LBL_no')}
								<shell:error />
							</j:bind>
						</c:otherwise>
					</c:choose>	
				</bui:out>
			</td>						
		</tr>		
		<tr>
			<td class="form-label">
				<shell:label prop="classiPostElaborazione" />
			</td>
			<td class="form-values">
				<bui:out modes="view">
					<j:tile name="shell.plaintext" prop="classiPostElaborazione" />
				</bui:out>
				<bui:out modes="create, update">
					<j:bind prop="classiPostElaborazione">
						<j:textarea class="form-normal-textarea" />
						<shell:error />
					</j:bind>
				</bui:out>
			</td>
 		</tr>
	</table>
</shell:fieldset>

<shell:fieldset title="Informazioni aggiuntive">
	<table border="0" cellspacing="3" cellpadding="0" >
		<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>
		<tr>
  			<td class="form-label">
				<shell:label prop="confServizi" />
			</td>
			<td class="form-values">	
				<bui:out modes="view">
					<shell:grid description="confServizi" property="confServizi" numOfRows="3" />
				</bui:out>
			</td>
		</tr>	 		
	</table>
</shell:fieldset>

<shell:fieldset title="Ultima modifica">
	<table border="0" cellspacing="3" cellpadding="0" >	
		<tr>
			<td class="form-label">
				<shell:label prop="utenteModifica" />
			</td>
			<td class="form-values">
				<bui:out modes="view">
					<j:tile name="shell.plaintext" prop="utenteModifica" />
				</bui:out>
			</td>						
		</tr>
		<tr>
			<td class="form-label">
				<shell:label prop="dataModifica" />
			</td>
			<td class="form-values">
				<bui:out modes="view">
					<j:tile name="shell.plaintext" prop="dataModifica" />
				</bui:out>
			</td>						
		</tr>	
	</table>
</shell:fieldset>	
</center>