Modification d'article
Ajout d'une image loupe pour le filtre user dans addConference
This commit is contained in:
@@ -130,7 +130,7 @@ function filterUser(el, value) {
|
||||
<table>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="formLabel"><fmt:message key="conference5.findUsers" />
|
||||
<td class="formLabel"><img alt="<fmt:message key="conference5.findUsers" />" src="./images/search.png"/>
|
||||
</td>
|
||||
<td><form:input id="myfilter" path="myfilter" /> <br />
|
||||
<br />
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
<%@ include file="/WEB-INF/decorators/include.jsp"%>
|
||||
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
|
||||
|
||||
<html>
|
||||
<head></head>
|
||||
@@ -42,9 +41,7 @@
|
||||
${conference.title} - In this conference you are:
|
||||
<c:forEach items="${listRole}" var="role">
|
||||
<c:if test="${conference.id == role.conference.id}">
|
||||
${role.type}
|
||||
|
||||
|
||||
${role.type}
|
||||
</c:if>
|
||||
</c:forEach>
|
||||
</c:when>
|
||||
@@ -54,9 +51,18 @@
|
||||
</c:choose>
|
||||
</h2>
|
||||
<b>Description:</b> ${conference.description}<br />
|
||||
<center>
|
||||
<a href="<c:url value="/chooseConference.htm?idConf=${conference.id}" />">Choose</a><br />
|
||||
</center>
|
||||
<c:choose>
|
||||
<c:when test="${varName == 'true'}">
|
||||
<center>
|
||||
<a href="<c:url value="/chooseConference.htm?idConf=${conference.id}" />">Select</a><br />
|
||||
</center>
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
<center>
|
||||
<a href="<c:url value="/chooseConference.htm?idConf=${conference.id}" />">View details</a><br />
|
||||
</center>
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
</div>
|
||||
</c:forEach>
|
||||
</c:otherwise>
|
||||
|
||||
@@ -11,8 +11,8 @@
|
||||
</c:when>
|
||||
|
||||
<c:otherwise>
|
||||
<authz:authorize ifNotGranted="ROLE_ANONYMOUS">
|
||||
Pour pouvoir acc<63>der <20> vos fonctions veuillez choisir une conference :
|
||||
<authz:authorize ifNotGranted="ROLE_ANONYMOUS">
|
||||
Choose a conference to access your features:
|
||||
<a href="<c:url value="listConference.htm"/>"><fmt:message key="conference.linkMenu.choose" /></a>
|
||||
</authz:authorize>
|
||||
<authz:authorize ifAllGranted="ROLE_ANONYMOUS">
|
||||
|
||||
@@ -44,7 +44,12 @@
|
||||
<div id="secondaryAuthorList" class="dynamicList">
|
||||
<div class="dynamicListHeader">
|
||||
<fmt:message key="form.submission.secondaryauthor" />
|
||||
</div>
|
||||
</div>
|
||||
<c:if test="${param['action'] eq 'modify'}">
|
||||
<c:forEach items="${listSecondaryAuthors}" var="secAuthor" varStatus="i">
|
||||
<div class="dynamicListItem" style="height: 0px; width: 0px;" id="liste[${i.index}]">${secAuthor}<input type="hidden" id="liste[${i.index}]" name="liste[${i.index}]" value="${secAuthor}"/></div>
|
||||
</c:forEach>
|
||||
</c:if>
|
||||
</div>
|
||||
<input type="button" id="removeSecondaryButton" name="removeSecondary" value="<fmt:message key="button.removeSelected" />"/>
|
||||
|
||||
@@ -61,10 +66,8 @@
|
||||
<input type="reset" value="<fmt:message key="button.reset" />"/>
|
||||
<input type="submit" value="<fmt:message key="button.OK" />"/> <br/><br/>
|
||||
</fieldset>
|
||||
</form:form>
|
||||
|
||||
|
||||
|
||||
</form:form>
|
||||
|
||||
<a href="<c:url value="main.htm"/>">Home</a>
|
||||
|
||||
|
||||
|
||||
BIN
YACOSWeb/WebContent/images/search.png
Normal file
BIN
YACOSWeb/WebContent/images/search.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.7 KiB |
@@ -8,6 +8,7 @@ var SecondaryAuthorManager = Class.create({
|
||||
$(buttonAdd).observe("click",this.AddSecondaryAuthor.bind(this));
|
||||
$(buttonRemove).observe("click",this.RemoveSecondaryAuthor.bind(this));
|
||||
$(inputField).observe("keypress", this.KeyPressHandler.bindAsEventListener(this));
|
||||
this.lastRef = $('secondaryAuthorList').select(".dynamicListItem").size();
|
||||
},
|
||||
SelectSecondaryAuthor: function(event){
|
||||
var item = event.element();
|
||||
@@ -29,15 +30,19 @@ var SecondaryAuthorManager = Class.create({
|
||||
KeyPressHandler: function(event){
|
||||
switch(event.keyCode){
|
||||
case Event.KEY_RETURN:
|
||||
this.AddSecondaryAuthor();
|
||||
this.AddSecondaryAuthor(null);
|
||||
event.stop();
|
||||
return false;
|
||||
}
|
||||
},
|
||||
AddSecondaryAuthor: function() {
|
||||
AddSecondaryAuthor: function(name) {
|
||||
var ref = this.lastRef++;
|
||||
var elemName = "liste["+ref+"]";
|
||||
var value = $('newSecondaryAuthorInput').value;
|
||||
var value;
|
||||
if (name == null)
|
||||
value = $('newSecondaryAuthorInput').value;
|
||||
else
|
||||
value = name;
|
||||
var hidden = new Element('input',{'id':elemName,'name':elemName,'type':'hidden','value':value});
|
||||
var elem = new Element('div',
|
||||
{ 'class':'dynamicListItem',
|
||||
@@ -47,6 +52,9 @@ var SecondaryAuthorManager = Class.create({
|
||||
$('secondaryAuthorList').insert(elem);
|
||||
$(this.inputField).clear();
|
||||
elem.appear();
|
||||
},
|
||||
FillSecondaryAuthor: function(liste) {
|
||||
liste.each(this.AddSecondaryAuthor.bind(this));
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
@@ -140,8 +140,7 @@ public class SArticleController extends SimpleFormController {
|
||||
myArticle.setListe(a.getSecondaryAuthors());
|
||||
myArticle.setTheme(a.getTopic());
|
||||
|
||||
|
||||
|
||||
request.getSession().setAttribute("listSecondaryAuthors", a.getSecondaryAuthors());
|
||||
|
||||
return myArticle;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user