Files
yacos/YACOSWeb/WebContent/WEB-INF/jsp/choosePreference.jsp
Frederic Debuire 363238ce30 Divers changement:
Ajout d'image pour le download (à changer)
Changement de choose preference
2008-02-15 19:33:51 +00:00

50 lines
1.5 KiB
Plaintext

<%@ include file="/WEB-INF/decorators/include.jsp"%>
<html>
<head></head>
<body>
<h4 class="title"><fmt:message key="preference.title" /></h4>
<p class="formHelp">
Choose the preference you have for each article.
</p>
<form:form method="post" commandName="choosePreference">
<c:if test="${not empty articleList}">
<table>
<c:forEach items="${articleList}" var="article" varStatus="i">
<tr>
<td><a href="<c:url value='detailArticle.htm?id=${article.id}'/>">${article.title}</a></td>
<form:hidden path="preferences[${i.index}].article.id" />
<form:hidden path="preferences[${i.index}].pcMember.login" />
<td><fmt:message key="preference.like"/></td>
<td><form:radiobutton path="preferences[${i.index}].preferenceType" value="LIKE"/></td>
<td><fmt:message key="preference.indifferent"/></td>
<td><form:radiobutton path="preferences[${i.index}].preferenceType" value="INDIFFERENT"/></td>
<td><fmt:message key="preference.dislike"/></td>
<td><form:radiobutton path="preferences[${i.index}].preferenceType" value="DISLIKE"/></td>
</tr>
</c:forEach>
</table>
<input type="submit" name="submit" value="<fmt:message key="button.OK"/>"/>
</c:if>
</form:form>
<c:if test="${param['message'] eq 'done'}">
<p class="formOk">
You have successfully updated the preference.<br/>
You can modify your choices immediately or later.<br/>
</p>
</c:if>
<br />
<a href="<c:url value="main.htm"/>">Home</a>
</body>
</html>