<%@ include file="/WEB-INF/decorators/include.jsp"%>

<html>
<head></head>
<body>

<h4 class="title"><fmt:message key="evaluation.title"/>: ${evaluationForm.title}</h4>

<form:form method="post" commandName="evaluationForm" id="account_data">

<p class="legend">Rating</p>
<fieldset class="inline">

    <c:forEach items="${evaluationForm.simpleRatings}" var="criterion" varStatus="j">
    <div>
		<form:hidden path="simpleRatings[${j.index}].name"></form:hidden>
		<form:label path="simpleRatings[${j.index}].name">
        	${criterion.name}
		</form:label>
		<form:select path="simpleRatings[${j.index}].value">
        	<c:forEach var="i" begin="${criterion.min_rating}" end="${criterion.max_rating}">
          		<form:option value="${i}"></form:option>
          	</c:forEach>
		</form:select>
    </div>

   </c:forEach>
   
</fieldset>

<p class="legend">Commentary</p>   
<fieldset>   
    
    <div>
    <form:label path="commentAuthor"><fmt:message key="evaluation.commentAuthor"/></form:label>
	<form:textarea path="commentAuthor" cols="60" rows="10"/>
	</div>
	
	<div>    
    <form:label path="commentPCMember"><fmt:message key="evaluation.commentPCMember"/></form:label>
	<form:textarea path="commentPCMember" cols="60" rows="10"/>
    </div>

</fieldset>

<input type="submit" name="submit" value="<fmt:message key="button.OK"/>"/>

</form:form>

</body>
</html>