<%@page import="it.cedaf.juice.mvc.context.JuiceContext"%>
<%@ include file="/project/include.jsp" %>

<j:tile slave="unitaOperative" name="shell.slaveToolbar" />	
<shell:grid description="codice; denominazione; note" slave="unitaOperative" />

<shell:fieldset title="Informazioni unit� operativa">
	<table border="0" cellspacing="3" cellpadding="0" >
		<tr>
			<td class="form-label">
				<shell:label prop="codice" />
			</td>
			<td class="form-values">
				<bui:out slave="unitaOperative" modes="create,update">
					<j:bind prop="codice">
						<j:text class="form-normal-text" />
						<shell:error />
					</j:bind>
				</bui:out>
				<bui:out slave="unitaOperative" modes="view">
					<j:tile slave="unitaOperative" name="shell.plaintext" prop="codice" />
				</bui:out>
			</td>
		</tr>
		<tr>
			<td class="form-label">
				<shell:label prop="denominazione" />
			</td>
			<td class="form-values">
				<bui:out slave="unitaOperative" modes="create,update">	
					<j:bind prop="denominazione">
						<j:text class="form-normal-text" size="45" />
						<shell:error />
					</j:bind>
				</bui:out>
				<bui:out slave="unitaOperative" modes="view">
					<j:tile slave="unitaOperative" name="shell.plaintext" prop="denominazione" />
				</bui:out>
			</td>
		</tr>
		<tr>
			<td class="form-label">
				<shell:label prop="distretto" />
			</td>
			<td class="form-values">
				<bui:out slave="unitaOperative" modes="create,update">	
					<j:bind prop="distretto">
						<j:select class="form-input" emptyOptionDescr=""/>
						<shell:error />
					</j:bind>
				</bui:out>
				<bui:out slave="unitaOperative" modes="view">
					<j:tile slave="unitaOperative" name="shell.plaintext" prop="distretto" />
				</bui:out>
			</td>
 		</tr>
 		<% if (JuiceContext.getInstance().getModule("bdpsa") != null) { %>
 		<tr>
			<td class="form-label">
				<shell:label prop="entePSA" />
			</td>
			<td class="form-values">
				<bui:out slave="unitaOperative" modes="create,update">	
					<j:bind prop="entePSA">
						<j:select class="form-input" emptyOptionDescr=""/>
						<shell:error />
					</j:bind>
				</bui:out>
				<bui:out slave="unitaOperative" modes="view">
					<j:tile slave="unitaOperative" name="shell.plaintext" prop="entePSA" />
				</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 slave="unitaOperative" modes="create,update">
					<j:bind prop="note">
						<j:textarea class="form-input" cols="40" rows="3" />
						<shell:error />
					</j:bind>
				</bui:out>
				<bui:out slave="unitaOperative" modes="view">
					<j:tile slave="unitaOperative" name="shell.plaintext" prop="note" />
				</bui:out>
			</td>
		</tr>
	</table>
</shell:fieldset>