Modification de la validation : mise en page et test d'erreur

Modification de l'évaluation : mise en page, ajout d'image pour chaque état de l'article.
This commit is contained in:
Frederic Debuire
2008-02-22 23:06:05 +00:00
parent 8ce437a1d3
commit 25c6db06a2
12 changed files with 140 additions and 102 deletions

View File

@@ -6,39 +6,44 @@
<h4 class="title"><fmt:message key="evaluation.title"/>: ${evaluationForm.title}</h4>
<form:form method="post" commandName="evaluationForm">
<form:form method="post" commandName="evaluationForm" id="account_data">
<p class="legend">Rating</p>
<fieldset>
<table>
<c:forEach items="${evaluationForm.simpleRatings}" var="criterion" varStatus="j">
<tr>
<td>${criterion.name}</td>
<form:hidden path="simpleRatings[${j.index}].name"></form:hidden>
<td>
<c:forEach var="i" begin="${criterion.min_rating}" end="${criterion.max_rating}" step="1">
<c:out value="${i}"/>
<form:radiobutton path="simpleRatings[${j.index}].value" value="${i}" />
</c:forEach>
</td>
</tr>
<div>
<form:label path="title">${criterion.name}</form:label>
<form:hidden path="simpleRatings[${j.index}].name"></form:hidden>
<form:label path="simpleRatings[${j.index}].name"><form:select path="simpleRatings[${j.index}].value">
<c:forEach var="i" begin="${criterion.min_rating}" end="${criterion.max_rating}" step="1">
<form:option value="${i}"></form:option>
</c:forEach>
</form:select></form:label>
</div>
</c:forEach>
<tr>
<td><fmt:message key="evaluation.commentAuthor"/></td>
<td><form:textarea path="commentAuthor"/></td>
</tr>
</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>
<tr>
<td><fmt:message key="evaluation.commentPCMember"/></td>
<td><form:textarea path="commentPCMember"/></td>
<tr>
</table>
<input type="submit" name="submit" value="<fmt:message key="button.OK"/>"/>
<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>
</body>
</html>