<%@ include file="/project/include.jsp" %>
		
<script type="text/javascript">
function inputOnBlur(frmInput) {
	try {
		if (frmInput.id) { eval(frmInput.id + '_onBlur(frmInput)') };
	} catch (e) {
	}
}
</script>

<icare:customControl identifier="soggetto_redditi_ext" />
<j:tile slave="redditiSoggetto" name="shell.slaveToolbar" />	
<shell:grid description="annoRiferimento,10%; tipoReddito,20%; importoAnnuale,20%; importoMensile,20%;titolare,30%" slave="redditiSoggetto" />

<shell:fieldset title="${j:bundle('LBL_infogenRedditi_SET')}">
	<table border="0" cellpadding="0" cellspacing="3" width="100%">	
		<tr>
			<td valign="top" width="50%">
				<table border="0" cellpadding="0" cellspacing="3">
					<tr>
						<td class="form-label">
							<shell:label prop="annoRiferimento" />
						</td>
						<td class="form-values">
							<bui:out slave="redditiSoggetto" modes="view">
								<j:tile slave="redditiSoggetto" name="shell.plaintext" prop="annoRiferimento" />
							</bui:out>
							<bui:out slave="redditiSoggetto" modes="create, update">
								<j:bind prop="annoRiferimento">
									<j:text class="form-short-text" />
									<shell:error />
								</j:bind>
							</bui:out>
						</td>
			 		</tr>
					<tr>
						<td class="form-label">
							<shell:label prop="tipoReddito" />
						</td>
						<td class="form-values">
							<bui:out slave="redditiSoggetto" modes="view">
								<j:tile slave="redditiSoggetto" name="shell.plaintext" prop="tipoReddito" />
							</bui:out>
							<bui:out slave="redditiSoggetto" modes="create, update">
								<j:bind prop="tipoReddito">
									<j:select class="form-input" emptyOptionDescr=""/>
									<shell:error />
								</j:bind>
							</bui:out>
						</td>
			 		</tr>
			 		<tr>
						<td class="form-label">
							<shell:label prop="tipoDocumento" />
						</td>
						<td class="form-values">
							<bui:out slave="redditiSoggetto" modes="view">
								<j:tile slave="redditiSoggetto" name="shell.plaintext" prop="tipoDocumento" />
							</bui:out>
							<bui:out slave="redditiSoggetto" modes="create, update">
								<j:bind prop="tipoDocumento">
									<j:select class="form-input" emptyOptionDescr=""/>
									<shell:error />
								</j:bind>
							</bui:out>
						</td>
			 		</tr>
					<tr>
						<td class="form-label">
							<shell:label prop="estremiPresentazione" />
						</td>
						<td class="form-values">
							<bui:out slave="redditiSoggetto" modes="view">
								<j:tile slave="redditiSoggetto" name="shell.plaintext" prop="estremiPresentazione" />
							</bui:out>
							<bui:out slave="redditiSoggetto" modes="create, update">
								<j:bind prop="estremiPresentazione">
									<j:text class="form-normal-text" />
									<shell:error />
								</j:bind>
							</bui:out>
						</td>
			 		</tr>
			 		<tr>
						<td class="form-label">
							<shell:label prop="dataScadenza" />
						</td>
						<td class="form-values">
							<bui:out slave="redditiSoggetto" modes="view">
								<j:tile slave="redditiSoggetto" name="shell.plaintext" prop="dataScadenza" />
							</bui:out>
							<bui:out slave="redditiSoggetto" modes="create, update">
								<j:bind prop="dataScadenza">
									<j:text class="form-date" id="dataScadenzaCld" />
									<shell:calendar inputId="dataScadenzaCld" />
									<shell:error />
								</j:bind>
							</bui:out>
						</td>
			 		</tr>
			 	</table>
			 </td>
			 <td valign="top" width="50%">
				<table border="0" cellpadding="0" cellspacing="3">
					<tr>
						<td class="form-label">
							<shell:label prop="titolare" />
						</td>
						<td class="form-values">
							<bui:out slave="redditiSoggetto" modes="view">
								<j:tile slave="redditiSoggetto" name="shell.plaintext" prop="titolare" />
							</bui:out>
							<bui:out slave="redditiSoggetto" modes="create, update">
								<j:bind prop="titolare">
									<j:text class="form-normal-text" />
									<shell:error />
								</j:bind>
							</bui:out>
						</td>
			 		</tr>
					<tr>
						<td class="form-label">
							<shell:label prop="importoAnnuale" />
						</td>
						<td class="form-values">
							<bui:out slave="redditiSoggetto" modes="view">
								<j:tile slave="redditiSoggetto" name="shell.plaintext" prop="importoAnnuale" />
							</bui:out>
							<bui:out slave="redditiSoggetto" modes="create, update">
								<j:bind prop="importoAnnuale">
									<j:text id="idImportoAnnuale" class="form-normal-text" onblur="javascript:inputOnBlur(this);" />
									<shell:error />
								</j:bind>
							</bui:out>
						</td>
			 		</tr>
					<tr>
						<td class="form-label">
							<shell:label prop="importoMensile" />
						</td>
						<td class="form-values">
							<bui:out slave="redditiSoggetto" modes="view">
								<j:tile slave="redditiSoggetto" name="shell.plaintext" prop="importoMensile" />
							</bui:out>
							<bui:out slave="redditiSoggetto" modes="create, update">
								<j:bind prop="importoMensile">
									<j:text id="idImportoMensile" class="form-normal-text" onblur="javascript:inputOnBlur(this);" />
									<shell:error />
								</j:bind>
							</bui:out>
						</td>
			 		</tr>
					<tr>
						<td class="form-label">
							<shell:label prop="mensilitaStipendio" />
						</td>
						<td class="form-values">
							<bui:out slave="redditiSoggetto" modes="view">
								<j:tile slave="redditiSoggetto" name="shell.plaintext" prop="mensilitaStipendio" />
							</bui:out>
							<bui:out slave="redditiSoggetto" modes="create, update">
								<j:bind prop="mensilitaStipendio">
									<j:text id="idMensilitaStipendio" class="form-short-text" onblur="javascript:inputOnBlur(this);" />
									<shell:error />
								</j:bind>
							</bui:out>
						</td>
			 		</tr>
				</table>
			</td>
		</tr>
	</table>
</shell:fieldset>

<shell:fieldset title="${j:bundle('LBL_infoaggRedditi_SET')}">
	<table border="0" cellspacing="3" cellpadding="0" >
		<tr>
			<td class="form-label">
				<shell:label prop="note" />
			</td>
			<td class="form-values">
				<bui:out slave="redditiSoggetto" modes="view">
					<j:tile slave="redditiSoggetto" name="shell.plaintext" prop="note" />
				</bui:out>
				<bui:out slave="redditiSoggetto" modes="create, update">
					<j:bind prop="note">
						<j:textarea class="form-normal-textarea" />
						<shell:error />
					</j:bind>
				</bui:out>
			</td>
 		</tr>	
	</table>
</shell:fieldset>