<%@ include file="/includes.jsp"%>
<tiles:importAttribute />
<%--This imports all tiles atributes to page --%>
<c:if test="${empty parentPage}">
	<c:set var="parentPage" value="" />
</c:if>
<table class="dialogBox" width="<c:out value="${section.width}"/>" height="<c:out value="${section.height}"/>" id="dynamicTableId<c:out value="${sectionIndex}"/>">
	<tr>
		<td colspan="2" class="dialogTitle"><c:out value="${section.label}"/></td>
		<%-- SECTION TITLE --%>
	</tr>
	<tr>
		<td colspan="2" height="5"></td>
		<%-- SPACER --%>
	</tr>
	<c:forEach var="field" items="${section.children }">
		<tiles:insertTemplate template="standardFieldRenderer.jsp" flush="false">
			<tiles:putAttribute name="field" value="${field}" />
			<tiles:putAttribute name="sectionWritable" value="true" />
			<tiles:putAttribute name="parentPage" value="${parentPage}" />
		</tiles:insertTemplate>
	</c:forEach>
</table>
<c:forEach var="field" items="${section.children }">
	<input type="hidden" id="<c:out value="${field.label}"/>_styles" value="<c:out value="${field.style}"/>"></input>
</c:forEach>