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

<j:tile slave="eventi" name="shell.slaveToolbar" />
<shell:grid description="dataEvento,30%; tipoEvento,50%; dataTermineNuovaCondizione,20%" slave="eventi" />
	
<shell:fieldset title="Informazioni generali">
	<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="dataEvento" />
						</td>
						<td class="form-values">
							<bui:out slave="eventi" modes="view">
								<j:tile slave="eventi" name="shell.plaintext" prop="dataEvento" />
							</bui:out>
							<bui:out slave="eventi" modes="create,update">
								<j:bind prop="dataEvento">
									<j:text class="form-date" id="dataEventoCld" />
									<shell:calendar inputId="dataEventoCld" />
									<shell:error />
								</j:bind>
							</bui:out>
						</td>
					</tr>
					<tr>
						<td class="form-label">
							<shell:label prop="dataTermineNuovaCondizione" />
						</td>
						<td class="form-values">
							<bui:out slave="eventi" modes="view">
								<j:tile slave="eventi" name="shell.plaintext" prop="dataTermineNuovaCondizione" />
							</bui:out>
							<bui:out slave="eventi" modes="create,update">
								<j:bind prop="dataTermineNuovaCondizione">
									<j:text class="form-date" id="dataTermineNuovaCondizioneCld" />
									<shell:calendar inputId="dataTermineNuovaCondizioneCld" />
									<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="tipoEvento" />
						</td>
						<td class="form-values">
							<bui:out slave="eventi" modes="view">
								<j:tile slave="eventi" name="shell.plaintext" prop="tipoEvento" />
							</bui:out>
							<bui:out slave="eventi" modes="create,update">
								<j:bind prop="tipoEvento">
									<j:select class="form-input" emptyOptionDescr="" />
									<shell:error />
								</j:bind>
							</bui:out>
						</td>
					</tr>
				</table>
		</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 slave="eventi" modes="view">
				<j:tile slave="eventi" name="shell.plaintext" prop="note" />
			</bui:out>
			<bui:out slave="eventi" modes="create, update">
				<j:bind prop="note">
					<j:textarea class="form-normal-textarea" />
					<shell:error />
				</j:bind>
			</bui:out>
		</td>
 	</tr>
	</table>
</shell:fieldset>