Ajout du remove d'evaluation

This commit is contained in:
Frederic Debuire
2008-02-25 16:53:26 +00:00
parent c8d3e76ebf
commit 6b32781d51
4 changed files with 97 additions and 3 deletions

View File

@@ -1,7 +1,19 @@
<%@ include file="/WEB-INF/decorators/include.jsp"%>
<html>
<head></head>
<head>
<script type="text/javascript">
function deleteReport(articleId) {
if (confirm("Are you sure you want to remove your evaluation?")) {
document.location.href = "removeEvaluation.htm?articleId=" + articleId;
}
}
</script>
</head>
<body>
<h4 class="title"><fmt:message key="evaluation.choose" /></h4>
@@ -50,7 +62,8 @@
</c:if>
<c:if test="${article.evaluated == true and empty article.referee}">
<c:if test="${article.article.state != 'REJECTED' and article.article.state != 'ACCEPTED'}">
<c:if test="${article.article.state != 'REJECTED' and article.article.state != 'ACCEPTED'}">
<a title="Delete the evaluation" id="suppressArticle" title="Delete" href="javascript:deleteReport(${article.article.id});">Remove your evaluation<img src="./images/cc-button_cancel-32x32.png" alt="Delete"/></a><br />
<a title="Click to modify evaluation" href="<c:url value="evaluation.htm?id=${article.article.id}&action=modify"/>">Modify the evaluation <img src="./images/cc-kedit-32x32.png" alt="Click to modify evaluation" /></a>
</c:if>
</c:if>

View File

@@ -42,7 +42,8 @@
<prop key="/login.htm">LogonController</prop>
<prop key="/listEvaluation.htm">ListEvaluationController</prop>
<prop key="/download.htm">ArticleDownloadController</prop>
<prop key="/deleteArticle.htm">ArticleDeleteController</prop>
<prop key="/deleteArticle.htm">ArticleDeleteController</prop>
<prop key="/removeEvaluation.htm">EvaluationRemoveController</prop>
<prop key="/listReport.htm">ListReportController</prop>
<prop key="/listReportAuthor.htm">ListReportAuthorController</prop>
<prop key="/forgotPassword.htm">ForgotPasswordController</prop>
@@ -116,6 +117,11 @@
<bean id="ArticleDeleteController" class="org.yacos.web.author.controller.ArticleDeleteController">
<property name="articleManager" ref="articleManager" />
</bean>
<bean id="EvaluationRemoveController" class="org.yacos.web.PCmember.controller.EvaluationRemoveController">
<property name="articleManager" ref="articleManager" />
<property name="evaluationManager" ref="evaluationManager" />
</bean>
<bean id="SUserRegistrationController"