Ajout d'un menu main avec l'userBoard et les infos de la conf.
Ajout d'un bouton back lors d'une évaluation
This commit is contained in:
@@ -60,6 +60,11 @@ user.information.followconference={0,choice, 0#You don''t have any conference |
|
|||||||
|
|
||||||
###################
|
###################
|
||||||
# USER MENU
|
# USER MENU
|
||||||
|
|
||||||
|
menu.general.title=Main
|
||||||
|
menu.general.userBoard=User Board
|
||||||
|
menu.general.confInfo=Conference's informations
|
||||||
|
|
||||||
menu.chairman.title=Chairman
|
menu.chairman.title=Chairman
|
||||||
menu.chairman.conference.create=Create new conference
|
menu.chairman.conference.create=Create new conference
|
||||||
menu.chairman.conference.modify=Modify this conference
|
menu.chairman.conference.modify=Modify this conference
|
||||||
|
|||||||
@@ -12,6 +12,20 @@
|
|||||||
|
|
||||||
<c:if test="${currentConferenceId != null}">
|
<c:if test="${currentConferenceId != null}">
|
||||||
|
|
||||||
|
|
||||||
|
<!-- MENU : ROLE_USER for general option -->
|
||||||
|
<authz:authorize ifAllGranted="ROLE_USER">
|
||||||
|
<div id="mainmenubloc">
|
||||||
|
<h4><fmt:message key="menu.general.title" /></h4>
|
||||||
|
<ul>
|
||||||
|
<li><a href="<c:url value="userBoard.htm"/>"><fmt:message key="menu.general.userBoard" /></a></li>
|
||||||
|
<li><a href="<c:url value="main.htm"/>"><fmt:message key="menu.general.confInfo" /></a></li>
|
||||||
|
</ul>
|
||||||
|
<div id="footer"></div>
|
||||||
|
</div>
|
||||||
|
</authz:authorize>
|
||||||
|
|
||||||
|
|
||||||
<!-- MENU : CHAIRMAN -->
|
<!-- MENU : CHAIRMAN -->
|
||||||
<authz:authorize ifAllGranted="ROLE_CHAIRMAN">
|
<authz:authorize ifAllGranted="ROLE_CHAIRMAN">
|
||||||
<div id="mainmenubloc">
|
<div id="mainmenubloc">
|
||||||
|
|||||||
@@ -6,6 +6,11 @@
|
|||||||
|
|
||||||
<h4 class="title"><fmt:message key="evaluation.headPage" /></h4>
|
<h4 class="title"><fmt:message key="evaluation.headPage" /></h4>
|
||||||
|
|
||||||
|
<p class="formOk">
|
||||||
|
You have successfully evaluated the article.<br/>
|
||||||
|
You can modify your evaluation immediately or later.<br/>
|
||||||
|
</p>
|
||||||
|
|
||||||
<table>
|
<table>
|
||||||
<tr>
|
<tr>
|
||||||
<td><fmt:message key="evaluation.titleArticle" /></td>
|
<td><fmt:message key="evaluation.titleArticle" /></td>
|
||||||
@@ -29,9 +34,15 @@
|
|||||||
<td><fmt:message key="evaluation.commentAuthor" /></td>
|
<td><fmt:message key="evaluation.commentAuthor" /></td>
|
||||||
<td>${report.commentAuthor}</td>
|
<td>${report.commentAuthor}</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td colspan="2">
|
||||||
|
<a class="back_link" href="<c:url value="${whereIcome}"/>">Modify the evaluation</a>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<a href="<c:url value="main.htm"/>">Home</a>
|
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -1,7 +1,10 @@
|
|||||||
package org.yacos.web.PCmember.controller;
|
package org.yacos.web.PCmember.controller;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
import javax.servlet.http.HttpServletRequest;
|
import javax.servlet.http.HttpServletRequest;
|
||||||
import javax.servlet.http.HttpServletResponse;
|
import javax.servlet.http.HttpServletResponse;
|
||||||
import org.apache.commons.logging.Log;
|
import org.apache.commons.logging.Log;
|
||||||
@@ -201,8 +204,16 @@ public class EvaluationController extends SimpleFormController {
|
|||||||
|
|
||||||
article.setState(State.EVALUATED);
|
article.setState(State.EVALUATED);
|
||||||
articleManager.updateArticle(article);
|
articleManager.updateArticle(article);
|
||||||
|
|
||||||
|
Map<String, Object> model = new HashMap<String, Object>();
|
||||||
|
model.put("report", rpt);
|
||||||
|
|
||||||
|
String addrFrom = request.getHeader("REFERER");
|
||||||
|
addrFrom = addrFrom + "&action=modify";
|
||||||
|
|
||||||
|
model.put("whereIcome", addrFrom);
|
||||||
|
|
||||||
return new ModelAndView("createReport", "report", rpt);
|
return new ModelAndView("createReport", model);
|
||||||
|
|
||||||
}
|
}
|
||||||
catch (NumberFormatException e) {
|
catch (NumberFormatException e) {
|
||||||
@@ -262,8 +273,14 @@ public class EvaluationController extends SimpleFormController {
|
|||||||
for (Rating rt : ratings) {
|
for (Rating rt : ratings) {
|
||||||
evaluationManager.updateRating(rt);
|
evaluationManager.updateRating(rt);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Map<String, Object> model = new HashMap<String, Object>();
|
||||||
|
model.put("report", rpt);
|
||||||
|
|
||||||
|
String addrFrom = request.getHeader("REFERER");
|
||||||
|
model.put("whereIcome", addrFrom);
|
||||||
|
|
||||||
return new ModelAndView("createReport", "report", rpt);
|
return new ModelAndView("createReport", model);
|
||||||
|
|
||||||
}
|
}
|
||||||
catch (NumberFormatException e) {
|
catch (NumberFormatException e) {
|
||||||
|
|||||||
Reference in New Issue
Block a user