<%@ include file="/project/include.jsp" %>
 		
<shell:fieldset title="Informazioni soggetto">
	<table border="0" cellpadding="0" cellspacing="3" width="100%">   		
        <tr>
			<td class="form-label">
				<shell:label prop="idAssistito" />
			</td>
			<bui:out modes="view">   
		  		<td class="form-values">
					<j:tile name="shell.plaintext" prop="soggetto" />
				</td>
			</bui:out>
			<td class="form-values">
				<j:tile name="shell.plaintext" prop="soggetto" />
			</td>
		</tr>
	</table>
</shell:fieldset>		
		
<table border="0" cellpadding="0" cellspacing="3" width="100%">
	<tr>
		<td valign="top" width="50%">	        	       	
			<shell:fieldset title="Informazioni provvedimento">
				<table border="0" cellpadding="0" cellspacing="3">
			  		<tr>   
			      		<td class="form-label">
			    			<shell:label prop="dataProvvedimento" />
			    		</td>
			    		<bui:out modes="view">   
					  		<td class="form-values">
								<j:tile name="shell.plaintext" prop="dataProvvedimento" />
							</td>
						</bui:out>
						<bui:out modes="update,create">
						    <j:bind prop="dataProvvedimento">						
								<td class="form-values">
									<j:text class="form-date" id="dataProvvedimentoCLD" />
									<shell:calendar inputId="dataProvvedimentoCLD" />	
									<shell:error />
								</td>
							</j:bind>
					   	</bui:out> 
				  	</tr>
					<tr>   
				      	<td class="form-label">
				    		<shell:label prop="numeroProvvedimento" />
			    		</td>
			    		<bui:out modes="view">   
					  		<td class="form-values">
								<j:tile name="shell.plaintext" prop="numeroProvvedimento" />
							</td>
						</bui:out>
						<bui:out modes="update,create">
						    <j:bind prop="numeroProvvedimento">
								<td class="form-values">
									<j:text class="form-normal-text" maxlength="50"/>
								    <shell:error />
								</td>
							</j:bind>
					   	</bui:out> 
				  	</tr>
			  		<tr>   
			      		<td class="form-label">
			    			<shell:label prop="dataScadenza" />
			    		</td>
			    		<bui:out modes="view">   
					  		<td class="form-values">
								<j:tile name="shell.plaintext" prop="dataScadenza" />
							</td>
						</bui:out>
						<bui:out modes="update,create">
						    <j:bind prop="dataScadenza">						
								<td class="form-values">
									<j:text class="form-date" id="dataScadenzaCLD" />
									<shell:calendar inputId="dataScadenzaCLD" />	
									<shell:error />
								</td>
							</j:bind>
					   	</bui:out> 
				  	</tr>
			 		<tr>
						<td class="form-label">
							<shell:label prop="definitivo" />
						</td>
						<td class="form-values">
							<bui:out modes="view">
								<j:tile name="shell.plaintext" prop="definitivo" />
							</bui:out>
							<bui:out modes="create, update">
								<j:bind prop="definitivo">
									<j:radio displayValue="si"/>${j:bundle('LBL_si')}
									<j:radio displayValue="no"/>${j:bundle('LBL_no')}
									<j:radio displayValue="" />${j:bundle('LBL_nonDefinito')}									
									<shell:error />
								</j:bind>
							</bui:out>
						</td>
 					</tr> 
			 		<tr>
						<td class="form-label">
							<shell:label prop="richiestaIndagine" />
						</td>
						<td class="form-values">
							<bui:out modes="view">
								<j:tile name="shell.plaintext" prop="richiestaIndagine" />
							</bui:out>
							<bui:out modes="create, update">
								<j:bind prop="richiestaIndagine">
									<j:radio displayValue="si"/>${j:bundle('LBL_si')}
									<j:radio displayValue="no"/>${j:bundle('LBL_no')}
									<j:radio displayValue="" />${j:bundle('LBL_nonDefinito')}									
									<shell:error />
								</j:bind>
							</bui:out>
						</td>
 					</tr> 	
			 		<tr>
						<td class="form-label">
							<shell:label prop="affidatoEnte" />
						</td>
						<td class="form-values">
							<bui:out modes="view">
								<j:tile name="shell.plaintext" prop="affidatoEnte" />
							</bui:out>
							<bui:out modes="create, update">
								<j:bind prop="affidatoEnte">
									<j:radio displayValue="si"/>${j:bundle('LBL_si')}
									<j:radio displayValue="no"/>${j:bundle('LBL_no')}
									<j:radio displayValue="" />${j:bundle('LBL_nonDefinito')}									
									<shell:error />
								</j:bind>
							</bui:out>
						</td>
 					</tr> 	 					
				</table>
			</shell:fieldset>
		</td>
		<td valign="top" width="50%">
			<shell:fieldset title="Informazioni autorit� emittente">
				<table border="0" cellpadding="0" cellspacing="3">
					<tr>   
			      		<td class="form-label">
			    			<shell:label prop="tipoAutorita" />
				    	</td>
				    	<bui:out modes="view">   
						  	<td class="form-values">
								<j:tile name="shell.plaintext" prop="tipoAutorita" />
							</td>
						</bui:out>
						<bui:out modes="update,create">
						    <j:bind prop="tipoAutorita">
								<td class="form-values">
									<j:select class="form-input" emptyOptionDescr=" "/>
								    <shell:error />
								</td>
							</j:bind>
					   	</bui:out> 
				  	</tr>
				  	<tr>   
				      	<td class="form-label">
				    		<shell:label prop="nominativoAutorita" />
			    		</td>
			    		<bui:out modes="view">   
					  		<td class="form-values">
								<j:tile name="shell.plaintext" prop="nominativoAutorita" />
							</td>
						</bui:out>
						<bui:out modes="update,create">
						    <j:bind prop="nominativoAutorita">
								<td class="form-values">
									<j:text class="form-normal-text" maxlength="100"/>
								    <shell:error />
								</td>
							</j:bind>
					   	</bui:out> 
				  	</tr>
				</table>
			</shell:fieldset>
		</td>
	</tr>
</table>			

<icare:ifOptional prop="Mandato [f]">
<shell:fieldset title="Informazioni mandato">
	<table border="0" cellpadding="0" cellspacing="3" width="100%">
		<tr>   
	      	<td class="form-label">
	    		<shell:label prop="mandato" />
    		</td>
    		<bui:out modes="view">   
		  		<td class="form-values">
					<j:tile name="shell.plaintext" prop="mandato" />
				</td>
			</bui:out>
			<bui:out modes="update,create">
			    <j:bind prop="mandato">
					<td class="form-values">
						<j:textarea class="form-long-textarea" />
					    <shell:error />
					</td>
				</j:bind>
		   	</bui:out> 
	  	</tr>		
  		<tr>   
      		<td class="form-label">
    			<shell:label prop="dataScadenzaMandato" />
    		</td>
    		<bui:out modes="view">   
		  		<td class="form-values">
					<j:tile name="shell.plaintext" prop="dataScadenzaMandato" />
				</td>
			</bui:out>
			<bui:out modes="update,create">
			    <j:bind prop="dataScadenzaMandato">						
					<td class="form-values">
						<j:text class="form-date" id="dataScadenzaMandatoCLD" />
						<shell:calendar inputId="dataScadenzaMandatoCLD" />	
						<shell:error />
					</td>
				</j:bind>
		   	</bui:out> 
	  	</tr>
	</table>
</shell:fieldset>
</icare:ifOptional>

<icare:ifOptional prop="Protocollo [f]">
<shell:fieldset title="Informazioni protocollo">
	<c:choose>
		<c:when test="${!empty protocolloNonModificabile && protocolloNonModificabile == 'true'}">
			<table border="0" cellpadding="0" cellspacing="3" width="100%">
				<tr>
					<td class="form-label">
						<shell:label prop="numeroProtocollo" />
					</td>
					<td class="form-values">
						<j:tile name="shell.plaintext" prop="numeroProtocollo" />
					</td>
				</tr>
				<tr>
					<td class="form-label">
						<shell:label prop="dataProtocollo" />
					</td>
					<td class="form-values">
						<j:tile name="shell.plaintext" prop="dataProtocollo" />
					</td>
				</tr>
			</table>
		</td><td>
			<table border="0" cellpadding="0" cellspacing="3" width="100%">
				<tr>
					<td class="form-label">
						<shell:label prop="classificaProtocollo" />
					</td>
					<td class="form-values">
						<j:tile name="shell.plaintext" prop="classificaProtocollo" />
					</td>
				</tr>
				<tr>
					<td class="form-label">
						<shell:label prop="fascicoloProtocollo" />
					</td>
					<td class="form-values">
						<j:tile name="shell.plaintext" prop="fascicoloProtocollo" />
					</td>
				</tr>
			</table>
		</c:when>
		<c:otherwise>
			<table border="0" cellpadding="0" cellspacing="3" width="100%">
				<tr>
					<td class="form-label">
						<shell:label prop="numeroProtocollo" />
					</td>
					<td class="form-values">
						<bui:out modes="view">
							<j:tile name="shell.plaintext" prop="numeroProtocollo" />
						</bui:out>
						<bui:out modes="create, update">
							<j:bind prop="numeroProtocollo">
								<j:text class="form-normal-text" />
								<shell:error />
							</j:bind>
						</bui:out>
					</td>						
				</tr>		
				<tr>
					<td class="form-label">
						<shell:label prop="dataProtocollo" />
					</td>
					<td class="form-values">
						<bui:out modes="view">
							<j:tile name="shell.plaintext" prop="dataProtocollo" />
						</bui:out>
						<bui:out modes="create, update">
							<j:bind prop="dataProtocollo">
								<j:text class="form-date" id="dataProtocolloCLD" />
								<shell:calendar inputId="dataProtocolloCLD" />
								<shell:error />
							</j:bind>
						</bui:out>
					</td>						
				</tr>
				<tr>
					<td>
						&nbsp;
					</td>
					<td class="form-values">
						<j:tile name="commons.protocollazione" protContext="PV_P" />
					</td>						
				</tr>
			</table>
			</td><td valign="top">
			<table border="0" cellpadding="0" cellspacing="3" width="100%">
				<tr>
					<td class="form-label">
						<shell:label prop="classificaProtocollo" />
					</td>
					<td class="form-values">
						<bui:out modes="view">
							<j:tile name="shell.plaintext" prop="classificaProtocollo" />
						</bui:out>
						<bui:out modes="create, update">
							<j:bind prop="classificaProtocollo">
								<j:text class="form-normal-text" />
								<shell:error />
							</j:bind>
						</bui:out>
					</td>						
				</tr>		
				<tr>
					<td class="form-label">
						<shell:label prop="fascicoloProtocollo" />
					</td>
					<td class="form-values">
						<bui:out modes="view">
							<j:tile name="shell.plaintext" prop="fascicoloProtocollo" />
						</bui:out>
						<bui:out modes="create, update">
							<j:bind prop="fascicoloProtocollo">
								<j:text class="form-normal-text" />
								<shell:error />
							</j:bind>
						</bui:out>
					</td>						
				</tr>
			</table>
		</c:otherwise>
	</c:choose>	
</shell:fieldset>
</icare:ifOptional>

<shell:fieldset title="Informazioni aggiuntive">
	<table>
		<tr>   
	  		<td class="form-label">
				<shell:label prop="note" />
	    	</td>
		    <bui:out modes="view">   
			 	<td class="form-values">
					<j:tile name="shell.plaintext" prop="note" />
				</td>
			</bui:out>
			<bui:out modes="update,create">
			    <j:bind prop="note">
					<td class="form-values">
						<j:textarea class="form-long-textarea" />
						<shell:error />
					</td>
				</j:bind>
			</bui:out> 
		</tr>
	</table>
</shell:fieldset>