add article si conf/ pas conf

This commit is contained in:
Nicolas Michard
2008-02-18 16:22:22 +00:00
parent 11e388b15a
commit e564428eb2
6 changed files with 101 additions and 67 deletions

View File

@@ -21,6 +21,7 @@ home.link.choose=Choose one conference
connected.noconference.title=No conference selectionned connected.noconference.title=No conference selectionned
connected.noconference.warning=You must choose a conference to access all your features : connected.noconference.warning=You must choose a conference to access all your features :
article.post.noconference=You must choose a conference before post or edit an article.
conference.detail.description=Description conference.detail.description=Description
conference.detail.other=Others informations conference.detail.other=Others informations
@@ -158,6 +159,23 @@ form.submitArticle.noFile=You have to send the file of the article.
form.addConference.invitationsHeader=Invitations form.addConference.invitationsHeader=Invitations
###################
# FORM <20>POST EDIT ARTICLE
form.article.information=Article's information
form.article.author.information=Author's information
form.article.submit.info=Article for submission
form.article.file=File
#Validation messages for errors
submissionArticle.title=The title should not be null
submissionArticle.theme=The theme should not be null
submissionArticle.abstractText=The Abstract text should not be null
submissionArticle.mainauthor=The main author should not be null, insert example "toto"
submissionArticle.file=Please choose an article to submit
button.add=Add button.add=Add
button.browse=Browse button.browse=Browse
button.reset=Reset button.reset=Reset
@@ -228,12 +246,7 @@ evaluation.choose=Choose a article to evaluate
invitation.send=Send an invitation invitation.send=Send an invitation
#Validation messages for errors
submissionArticle.title=The title should not be null
submissionArticle.theme=The theme should not be null
submissionArticle.abstractText=The Abstract text should not be null
submissionArticle.mainauthor=the main author should not be null, insert example "toto"
submissionArticle.file=please choose an article to submit
#valider les articles #valider les articles

View File

@@ -10,39 +10,59 @@
</head> </head>
<body> <body>
<h4 class="title"><c:choose> <h4 class="title">
<c:choose>
<c:when test="${param['action'] eq 'modify'}"> <c:when test="${param['action'] eq 'modify'}">
<fmt:message key="submission.modify" /> <fmt:message key="submission.modify" />
</c:when> </c:when>
<c:otherwise> <c:otherwise>
<fmt:message key="submission.title" /> <fmt:message key="submission.title" />
</c:otherwise> </c:otherwise>
</c:choose></h4> </c:choose>
</h4>
<form:form method="post" enctype="multipart/form-data" commandName="submissionArticle"> <c:choose>
<table> <c:when test="${currentConferenceId == null}">
<tbody> <div class="warningBox">
<tr> <fmt:message key="article.post.noconference" />
<td class="formLabel"><fmt:message key="form.submission.article.title" /></td> <a href="<c:url value="listConference.htm"/>"><fmt:message key="home.link.choose" /></a>
<td><form:input path="title" /> <span class="formError"><form:errors path="title" /></span></td> </div>
</tr> </c:when>
<tr> <c:when test="${currentConferenceId != null}">
<td class="formLabel"><fmt:message key="form.submission.article.theme" /></td>
<td><form:input path="theme" /> <span class="formError"><form:errors path="theme" /></span></td> <form:form method="post" enctype="multipart/form-data" commandName="submissionArticle" id="account_data">
</tr>
<tr> <p class="legend"><fmt:message key="form.article.information" /></p>
<td class="formLabel"><fmt:message key="form.submission.article.abstractText" /></td>
<td><form:textarea path="abstractText" cols="60" rows="10" /><span class="formError"><form:errors path="abstractText" /></span></td> <fieldset>
</tr> <div>
<tr> <form:label path="title"><fmt:message key="form.submission.article.title" /></form:label>
<td class="formLabel"><fmt:message key="form.submission.mainauthor" />:</td> <form:input path="title"/>*
<td><b>${currentUser.firstName} ${currentUser.lastName}</b></td> <span class="formError"><form:errors path="title" /></span>
</tr> </div>
<tr> <div>
<td class="formLabel"><fmt:message key="form.submission.secondaryauthor" /></td> <form:label path="theme"><fmt:message key="form.submission.article.theme" /></form:label>
<td><input id="newSecondaryAuthorInput" type="text" name="newSecondaryAuthor" /> <form:input path="theme"/>*
<span class="formError"><form:errors path="theme" /></span>
</div>
<div>
<form:label path="theme"><fmt:message key="form.submission.article.abstractText" /></form:label>
<form:textarea path="abstractText" cols="60" rows="10" />*<br />
<span class="abstractText"><form:errors path="theme" /></span>
</div>
</fieldset>
<p class="legend"><fmt:message key="form.article.author.information" /></p>
<fieldset>
<div>
<form:label path="theme"><fmt:message key="form.submission.mainauthor" /></form:label>
<b>${currentUser.firstName} ${currentUser.lastName}</b><br />
</div>
<div>
<form:label path="theme"><fmt:message key="form.submission.secondaryauthor" /></form:label>
<input id="newSecondaryAuthorInput" type="text" name="newSecondaryAuthor" />
<input type="button" id="addSecondaryButton" name="addSecondary" value="<fmt:message key="button.add" />"> <input type="button" id="addSecondaryButton" name="addSecondary" value="<fmt:message key="button.add" />">
<div id="secondaryAuthorList" class="dynamicList"> <div id="secondaryAuthorList" class="dynamicList">
<div class="dynamicListHeader"><fmt:message key="form.submission.secondaryauthor" /></div> <div class="dynamicListHeader"><fmt:message key="form.submission.secondaryauthor" /></div>
<c:if test="${param['action'] eq 'modify'}"> <c:if test="${param['action'] eq 'modify'}">
@@ -54,26 +74,27 @@
</c:forEach> </c:forEach>
</c:if> </c:if>
</div> </div>
<input type="button" id="removeSecondaryButton" name="removeSecondary" value="<fmt:message key="button.removeSelected" />" /></td> <input type="button" id="removeSecondaryButton" name="removeSecondary" value="<fmt:message key="button.removeSelected" />" />
</tr> </div>
<tr> </fieldset>
<td class="formLabel">File</td>
<td><input type="file" name="file" /><div class="formError"><form:errors path="file" /></div></td> <p class="legend"><fmt:message key="form.article.submit.info" /></p>
</tr>
</tbody> <fieldset>
<tfoot> <div>
<tr> <form:label path="file"><fmt:message key="form.article.file" /></form:label>
<td>&nbsp;</td> <input type="file" name="file" />*
<td><input type="reset" value="<fmt:message key="button.reset" />" /> <span class="abstractText"><form:errors path="file" /></span>
<input type="submit" value="<fmt:message key="button.OK" />" /></td> </div>
</tr> </fieldset>
</tfoot>
</table>
<input type="submit" value="<fmt:message key="button.OK" />" />
</form:form> </form:form>
<a href="<c:url value="main.htm"/>">Home</a> </c:when>
</c:choose>
</body> </body>
</html> </html>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

View File

@@ -494,7 +494,7 @@ a.manage_link:hover {
a.back_link { a.back_link {
text-decoration: none; text-decoration: none;
padding-left: 50px; padding-left: 50px;
background: url(../images/button_back_32x32.gif) no-repeat left top; background: url(../images/button_back_32x32.png) no-repeat left top;
padding-top: 10px; padding-top: 10px;
padding-bottom: 10px; padding-bottom: 10px;
color: #008281; color: #008281;