<%@ include file="/includes.jsp" %>
<style>
	.inventoryFormTable {
		border: #B4B4B4 1px solid;
		width: 90%;
	}
	
	.inventoryFormTableHeaderCell {
		border: #B4B4B4 1px solid;
		font-size: 12pt;
	}
	
	.inventoryFormTable > tr > td {
		border: #B4B4B4 1px solid;
		
	}
	
	.inventoryFormTable > tr > th {
		white-space: pre;
		font-weight: normal;
		padding: 6px 3px 6px 3px;
		
	}
	
	.formHeadingRow {
		background-color: #90EE90;
	}
	
	.pageHeadingRow {
		background-color: #ADD8E6;
	}
	
	.sectionHeadingRow {
		background-color: #E0FFFF;
	}
	
	.formFieldName {
		
	}
	
	.headerCell1 {
		width: 1px;
	}
	
	.headerCell2 {
		width: 50%;
	}
	
	.headerCell3 {
		width: 1px;
	}
	
	.headerCell4 {
		width: 1px;
	}
	
	.headerCell5 {
		width: 1px;
	}
	
</style>
<br/>
<tags:tableRenderer model="${tableModel}">
	<c:choose>
		<c:when test="${colCount == 1}"><a href="../emdt/formObject.form?type=<c:out value="${cell.value.type }"/>&id=<c:out value="${cell.value.id }"/>"><c:out value="${cell.value.name}"/></a></c:when>
		<c:when test="${colCount == 2}"><c:out value="${cell.value.label }"/></c:when>
		<c:when test="${colCount == 5}">
			<c:if test="${cell.value.optionsMapName ne  null }">
				<a href="javascript:editList('<c:out value="${cell.value.optionsMapDomain }"/>', '<c:out value="${cell.value.optionsMapName }"/>')"><c:out value="${cell.value.optionsMapName }"/></a>
			</c:if>
		</c:when>
		<c:otherwise><c:out value="${cell.value }"/></c:otherwise>
	</c:choose>
</tags:tableRenderer>

<br/>
<table cellpadding="4" width="150" border="1">
<tr>
<td colspan="2">Key to colour coding: </td>
</tr><tr>
<td>Form</td>
<td class="formHeadingRow">&nbsp;</td>
</tr><tr>
<td>Page</td>
<td class="pageHeadingRow">&nbsp;</td>
</tr><tr>
<td>Section</td>
<td class="sectionHeadingRow">&nbsp;</td>
</tr><tr>
<td>Field</td>
<td class="inventoryFormTable">&nbsp;</td>
</tr>
</table>

