<%@page import="com.ardeo.entities.autoforms.FormField"%>
<%@ include file="/includes.jsp" %>
<tiles:importAttribute /><%--This imports all tiles atributes to page --%>
<%
	FormField field=(FormField)pageContext.getAttribute("field");
%>
<c:choose>
	<c:when test="${empty field.width}">
		<c:set var="theFieldWidth" value="" />
	</c:when>
	<c:otherwise>
		<c:set var="theFieldWidth" value="${field.width}" />
	</c:otherwise>
</c:choose>

<c:if test="${consultationNoteForm.view.note.locked eq true}">
	<c:set var="disabled" value="true"/>
</c:if>
<c:if test="${empty parentPage}">
	<c:set var="parentPage" value=""/>
</c:if>
<tiles:insertTemplate template="/emdt/tiles/fileContent.jsp" flush="false">
		<tiles:putAttribute name="fieldName" value="${field.name}"/>
		<tiles:putAttribute name="fieldWidth" value="${theFieldWidth}" />
		<tiles:putAttribute name="disabled" value="${disabled}"/>
</tiles:insertTemplate>