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

<script type="text/javascript">

	/** */
	function separateNucleo() {
		var form = document.getElementById('scissioneNucleoForm');
		juiceSubmitForm(form);
	}

</script>

<j:form id="scissioneNucleoForm" name="scissioneNucleo" event="scissioneNucleo" enctype="multipart/form-data" method="POST" clientValidatorProvider="it.cedaf.juice.mvc.modules.shell.view.helper.JavascriptClientValidatorProvider">

	<j:bind prop="selectedRow">
		<j:hidden id="selectedRow"/>
	</j:bind>
	<j:bind prop="dmKey">
		<j:hidden id="dmKey"/>
	</j:bind>
	<br>
	<shell:fieldset title="Informazioni del nuovo Nucleo Familiare">
	<table border="0" cellpadding="0" cellspacing="3" width="100%">
		<tr>
			<td valign="top" width="50%"><!-- Denominazione, colonna sx-->
			<table border="0" cellpadding="0" cellspacing="3" width="100%">
				<tr>
		      		<td class="form-label">
		    			Data Inizio<span class="form-label-required">�*</span>
		    		</td>
		    		<td class="form-values">
				    	<j:bind prop="dataInizio">
							<j:text class="form-date" id="dataInizioCld"/>
							<shell:calendar inputId="dataInizioCld" />
							<shell:error />
						</j:bind>
				   	</td>
			   	</tr>
			   	<tr>
			      	<td class="form-label">
			    		Monogenitoriale
			    	</td>
			    	<td class="form-values">
					    <j:bind prop="monogenitoriale">
							<j:radio displayValue="" />${j:bundle('LBL_nonRilevato')}
							<j:radio displayValue="si" />${j:bundle('LBL_si')}
							<j:radio displayValue="no" />${j:bundle('LBL_no')}
						    <shell:error />
						</j:bind>
				   	</td>
				</tr>
				<tr>
			      	<td class="form-label">
			      		Straniero
			    	</td>
			    	<td class="form-values">
					    <j:bind prop="straniero">
							<j:radio displayValue="" />Non rilevato
							<j:valueSetIterator>
								<j:radio/> ${j:getValueSetItem().description}
							</j:valueSetIterator>
						    <shell:error />
						</j:bind>
				   	</td>
				</tr>
		   	</table>
		   	</td>
		   	<td valign="top" width="50%"><!-- Cod. Anagrafe, colonna dx -->
			<table border="0" cellpadding="0" cellspacing="3" width="100%">
			   	<tr>
		      		<td class="form-label">
		    			Denominazione<span class="form-label-required">�*</span>
		    		</td>
		    		<td class="form-values">
				    	<j:bind prop="denominazione">
							<j:text class="form-normal-text"/>
							<shell:error />
						</j:bind>
				   	</td>
			   	</tr>
		   	</table>
		   	</td>
		</tr>
		<tr>
			<td valign="top" colspan="2">
			
			<br>
			<shell:fieldset title="Elenco componenti">
			<table border="0" cellpadding="0" cellspacing="3" width="100%">
				<tr>
					<td class="form-label">
						Componenti Nucleo<span class="form-label-required">�*</span>
					</td>
					<td class="form-values">
						<j:bind prop="componenteNucleo">
							<j:valueSetIterator>
								<j:checkbox id="componenteNucleoId" />${j:getValueSetItem().description}<br>
	        				</j:valueSetIterator>
	        				<shell:error />
							<%-- 
							<shell:swap swapId="componenteNucleoId" />
							--%>
						</j:bind>
					</td>
				</tr>
			</table>
			</shell:fieldset>
			</td>
		</tr>
		<tr>
			<td colspan="2" style="padding: 15px 4px 5px 4px; text-align:center;">
				<button class="generic-button ui-state-default ui-corner-all" onclick="separateNucleo();"><img src="${j:getResourceUrlOfModule('shell', 'img/misc/confirm-small.gif')}" width="16" height="16" border="0" align="absmiddle">&nbsp;Conferma</button> 													
			</td>
		</tr>							
	</table>
	</shell:fieldset>
</j:form>