Corrections diverses
This commit is contained in:
@@ -121,6 +121,7 @@ http://www.springframework.org/schema/beans http://www.springframework.org/schem
|
||||
/listreport.htm=ROLE_USER
|
||||
/detailarticle.htm=ROLE_USER
|
||||
/admin.htm=ROLE_ADMIN
|
||||
/forum.htm=ROLE_CHAIRMAN,ROLE_PCMEMBER
|
||||
/**=IS_AUTHENTICATED_ANONYMOUSLY
|
||||
</value>
|
||||
</property>
|
||||
|
||||
@@ -9,17 +9,19 @@
|
||||
<form:form method="post" commandName="evaluationForm" id="account_data">
|
||||
|
||||
<p class="legend">Rating</p>
|
||||
<fieldset>
|
||||
<fieldset class="inline">
|
||||
|
||||
<c:forEach items="${evaluationForm.simpleRatings}" var="criterion" varStatus="j">
|
||||
<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">
|
||||
<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></form:label>
|
||||
</form:select>
|
||||
</div>
|
||||
|
||||
</c:forEach>
|
||||
|
||||
@@ -4,49 +4,29 @@
|
||||
<head>
|
||||
|
||||
<script type='text/javascript' src='./javascripts/prototype.js'></script>
|
||||
<script type='text/javascript' src='./javascripts/scriptaculous.js'></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
//<![CDATA[
|
||||
function ShowRegistered() {
|
||||
|
||||
// faux tt ca
|
||||
var listElem;
|
||||
if ($('ongoing').checked)
|
||||
listElem = $$('.isRegistered', 'confPost');
|
||||
if ($('register').checked)
|
||||
listElem = $$('.isRegistered').invoke('blindDown');
|
||||
else
|
||||
listElem = $$('.isRegistered');
|
||||
|
||||
for (var i = 0; i < listElem.length; i++) {
|
||||
if (listElem[i].visible())
|
||||
listElem[i].style.display = "none";
|
||||
else
|
||||
listElem[i].style.display = "";
|
||||
}
|
||||
listElem = $$('.isRegistered').invoke('blindUp');
|
||||
}
|
||||
|
||||
function ShowNotRegistered() {
|
||||
var listElem;
|
||||
if ($('ongoing').checked)
|
||||
listElem = $$('.notRegistered', 'confPost');
|
||||
if ($('notregister').checked)
|
||||
listElem = $$('.notRegistered').invoke('blindDown');
|
||||
else
|
||||
listElem = $$('.notRegistered');
|
||||
|
||||
for (var i = 0; i < listElem.length; i++) {
|
||||
if (listElem[i].visible())
|
||||
listElem[i].style.display = "none";
|
||||
else
|
||||
listElem[i].style.display = "";
|
||||
}
|
||||
listElem = $$('.notRegistered').invoke('blindUp');
|
||||
}
|
||||
|
||||
function ShowOngoing() {
|
||||
var listElem = $$('.confPast');
|
||||
for (var i = 0; i < listElem.length; i++) {
|
||||
if (listElem[i].visible())
|
||||
listElem[i].style.display = "none";
|
||||
else
|
||||
listElem[i].style.display = "";
|
||||
}
|
||||
if ($('ongoing').checked)
|
||||
listElem = $$('.confPast').invoke('blindUp');
|
||||
else
|
||||
listElem = $$('.confPast').invoke('blindDown');
|
||||
}
|
||||
//]]>
|
||||
</script>
|
||||
|
||||
@@ -21,9 +21,9 @@
|
||||
<c:when test="${empty listArticle}">
|
||||
<div class="warningBox">
|
||||
You have no article at the moment.<br />
|
||||
You can submit an article in clicking
|
||||
You can submit an article by clicking
|
||||
<a href="submissionArticle.htm">here</a>
|
||||
or using the item menu.<br />
|
||||
or using the menu item.<br />
|
||||
</div>
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
@@ -36,21 +36,26 @@
|
||||
<table width="100%">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td width="50%" align="center">
|
||||
<td>
|
||||
<ul>
|
||||
<li>Secondary Authors:
|
||||
<li>
|
||||
<h2>Secondary Authors:</h2>
|
||||
<ul>
|
||||
<c:forEach var="sAuthor" items="${article.secondaryAuthors}">
|
||||
<li><b>${sAuthor}</b></li>
|
||||
</c:forEach>
|
||||
</ul>
|
||||
</li>
|
||||
<li>Topic: <b>${article.topic}</b></li>
|
||||
<li>
|
||||
<h2>Topic:</h2>
|
||||
<b>${article.topic}</b>
|
||||
</li>
|
||||
<li>
|
||||
<h2>Abstract :</h2>
|
||||
${article.abstractText}
|
||||
</li>
|
||||
</ul>
|
||||
</td>
|
||||
<td width="50%" align="center">
|
||||
${article.abstractText}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" align="center">
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
<h4 class="title">Validate an article</h4>
|
||||
|
||||
<p class="formHelp">
|
||||
Choose whether you want to validate an article (i.e. the article will take part in the conference) or reject it.
|
||||
Choose whether you want to validate an article (i.e. the article will be featured in the conference) or reject it.
|
||||
</p>
|
||||
|
||||
<c:forEach items="${listArticleValidate}" var="article">
|
||||
@@ -17,11 +17,27 @@
|
||||
<td>${article.mainAuthor.firstName} ${article.mainAuthor.lastName}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">State: ${article.state}
|
||||
<a href="<c:url value="validateOrReject.htm?value=valide&id=${article.id}"/>">
|
||||
<fmt:message key="validate.validate" /><img src="./images/ok.png" alt="Validate" /></a>
|
||||
<a href="<c:url value="validateOrReject.htm?value=reject&id=${article.id}"/>">
|
||||
<fmt:message key="validate.reject" /><img src="./images/cancel.png" alt="Reject" /></a></td>
|
||||
<td colspan="2">
|
||||
<c:choose>
|
||||
<c:when test="${article.state != 'REJECTED' and article.state != 'ACCEPTED'}">
|
||||
<a href="<c:url value="validateOrReject.htm?value=valide&id=${article.id}"/>"
|
||||
onclick="return confirm('You are about to validate this article. This operation cannot be undone. Do you want to continue ?')">
|
||||
<fmt:message key="validate.validate" /><img src="./images/ok.png" alt="Validate" /></a>
|
||||
<a href="<c:url value="validateOrReject.htm?value=reject&id=${article.id}"/>"
|
||||
onclick="return confirm('You are about to reject this article. This operation cannot be undone. Do you want to continue ?')">
|
||||
<fmt:message key="validate.reject" /><img src="./images/cancel.png" alt="Reject" /></a>
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
<c:if test="${article.state == 'REJECTED'}">
|
||||
<img src="./images/cancel.png" alt="Rejected" />
|
||||
</c:if>
|
||||
<c:if test="${article.state == 'ACCEPTED'}">
|
||||
<img src="./images/ok.png" alt="Validated" />
|
||||
</c:if>
|
||||
State: ${article.state}
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a title="Download" href="<c:url value="/download.htm"><c:param name="articleId" value="${article.id}"/></c:url>">Download<img
|
||||
|
||||
@@ -482,6 +482,12 @@ a.manage_link:hover {
|
||||
float:left;
|
||||
width:195px;
|
||||
}
|
||||
|
||||
#account_data fieldset.inline div label {
|
||||
display:inline;
|
||||
width:195px;
|
||||
}
|
||||
|
||||
#account_data fieldset div input {
|
||||
font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
|
||||
color:#847d6e;
|
||||
|
||||
@@ -54,8 +54,10 @@ public class ForumController extends SimpleFormController {
|
||||
List<Article> listArticle = new ArrayList<Article>();
|
||||
|
||||
String person = request.getParameter("role");
|
||||
|
||||
// TODO : renvoyer un truc s'il n'a pas le role
|
||||
|
||||
if(person == null){
|
||||
throw new ModelAndViewDefiningException(new ModelAndView("404error"));
|
||||
}
|
||||
if (person.equals("pcmember")) {
|
||||
if (userManager.hasRoleForConference(SessionService.getInstance().getCurrentUserLogin(), RoleType.PCMEMBER, conf.getId())) {
|
||||
listArticle = articleManager.getArticlesOfMember(conf.getId(), SessionService.getInstance().getCurrentUserLogin());
|
||||
@@ -67,7 +69,7 @@ public class ForumController extends SimpleFormController {
|
||||
}
|
||||
}
|
||||
else
|
||||
throw new ModelAndViewDefiningException(new ModelAndView("404error"));
|
||||
throw new ModelAndViewDefiningException(new ModelAndView("denied"));
|
||||
|
||||
|
||||
return new ModelAndView("forum", "listArticle", listArticle);
|
||||
|
||||
Reference in New Issue
Block a user