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>
|
<table>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<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>
|
||||||
<td><form:input id="myfilter" path="myfilter" /> <br />
|
<td><form:input id="myfilter" path="myfilter" /> <br />
|
||||||
<br />
|
<br />
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
<%@ include file="/WEB-INF/decorators/include.jsp"%>
|
<%@ include file="/WEB-INF/decorators/include.jsp"%>
|
||||||
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
|
|
||||||
|
|
||||||
<html>
|
<html>
|
||||||
<head></head>
|
<head></head>
|
||||||
@@ -43,8 +42,6 @@
|
|||||||
<c:forEach items="${listRole}" var="role">
|
<c:forEach items="${listRole}" var="role">
|
||||||
<c:if test="${conference.id == role.conference.id}">
|
<c:if test="${conference.id == role.conference.id}">
|
||||||
${role.type}
|
${role.type}
|
||||||
|
|
||||||
|
|
||||||
</c:if>
|
</c:if>
|
||||||
</c:forEach>
|
</c:forEach>
|
||||||
</c:when>
|
</c:when>
|
||||||
@@ -54,9 +51,18 @@
|
|||||||
</c:choose>
|
</c:choose>
|
||||||
</h2>
|
</h2>
|
||||||
<b>Description:</b> ${conference.description}<br />
|
<b>Description:</b> ${conference.description}<br />
|
||||||
|
<c:choose>
|
||||||
|
<c:when test="${varName == 'true'}">
|
||||||
<center>
|
<center>
|
||||||
<a href="<c:url value="/chooseConference.htm?idConf=${conference.id}" />">Choose</a><br />
|
<a href="<c:url value="/chooseConference.htm?idConf=${conference.id}" />">Select</a><br />
|
||||||
</center>
|
</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>
|
</div>
|
||||||
</c:forEach>
|
</c:forEach>
|
||||||
</c:otherwise>
|
</c:otherwise>
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
|
|
||||||
<c:otherwise>
|
<c:otherwise>
|
||||||
<authz:authorize ifNotGranted="ROLE_ANONYMOUS">
|
<authz:authorize ifNotGranted="ROLE_ANONYMOUS">
|
||||||
Pour pouvoir acc<63>der <20> vos fonctions veuillez choisir une conference :
|
Choose a conference to access your features:
|
||||||
<a href="<c:url value="listConference.htm"/>"><fmt:message key="conference.linkMenu.choose" /></a>
|
<a href="<c:url value="listConference.htm"/>"><fmt:message key="conference.linkMenu.choose" /></a>
|
||||||
</authz:authorize>
|
</authz:authorize>
|
||||||
<authz:authorize ifAllGranted="ROLE_ANONYMOUS">
|
<authz:authorize ifAllGranted="ROLE_ANONYMOUS">
|
||||||
|
|||||||
@@ -45,6 +45,11 @@
|
|||||||
<div class="dynamicListHeader">
|
<div class="dynamicListHeader">
|
||||||
<fmt:message key="form.submission.secondaryauthor" />
|
<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>
|
</div>
|
||||||
<input type="button" id="removeSecondaryButton" name="removeSecondary" value="<fmt:message key="button.removeSelected" />"/>
|
<input type="button" id="removeSecondaryButton" name="removeSecondary" value="<fmt:message key="button.removeSelected" />"/>
|
||||||
|
|
||||||
@@ -63,8 +68,6 @@
|
|||||||
</fieldset>
|
</fieldset>
|
||||||
</form:form>
|
</form:form>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<a href="<c:url value="main.htm"/>">Home</a>
|
<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));
|
$(buttonAdd).observe("click",this.AddSecondaryAuthor.bind(this));
|
||||||
$(buttonRemove).observe("click",this.RemoveSecondaryAuthor.bind(this));
|
$(buttonRemove).observe("click",this.RemoveSecondaryAuthor.bind(this));
|
||||||
$(inputField).observe("keypress", this.KeyPressHandler.bindAsEventListener(this));
|
$(inputField).observe("keypress", this.KeyPressHandler.bindAsEventListener(this));
|
||||||
|
this.lastRef = $('secondaryAuthorList').select(".dynamicListItem").size();
|
||||||
},
|
},
|
||||||
SelectSecondaryAuthor: function(event){
|
SelectSecondaryAuthor: function(event){
|
||||||
var item = event.element();
|
var item = event.element();
|
||||||
@@ -29,15 +30,19 @@ var SecondaryAuthorManager = Class.create({
|
|||||||
KeyPressHandler: function(event){
|
KeyPressHandler: function(event){
|
||||||
switch(event.keyCode){
|
switch(event.keyCode){
|
||||||
case Event.KEY_RETURN:
|
case Event.KEY_RETURN:
|
||||||
this.AddSecondaryAuthor();
|
this.AddSecondaryAuthor(null);
|
||||||
event.stop();
|
event.stop();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
AddSecondaryAuthor: function() {
|
AddSecondaryAuthor: function(name) {
|
||||||
var ref = this.lastRef++;
|
var ref = this.lastRef++;
|
||||||
var elemName = "liste["+ref+"]";
|
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 hidden = new Element('input',{'id':elemName,'name':elemName,'type':'hidden','value':value});
|
||||||
var elem = new Element('div',
|
var elem = new Element('div',
|
||||||
{ 'class':'dynamicListItem',
|
{ 'class':'dynamicListItem',
|
||||||
@@ -47,6 +52,9 @@ var SecondaryAuthorManager = Class.create({
|
|||||||
$('secondaryAuthorList').insert(elem);
|
$('secondaryAuthorList').insert(elem);
|
||||||
$(this.inputField).clear();
|
$(this.inputField).clear();
|
||||||
elem.appear();
|
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.setListe(a.getSecondaryAuthors());
|
||||||
myArticle.setTheme(a.getTopic());
|
myArticle.setTheme(a.getTopic());
|
||||||
|
|
||||||
|
request.getSession().setAttribute("listSecondaryAuthors", a.getSecondaryAuthors());
|
||||||
|
|
||||||
|
|
||||||
return myArticle;
|
return myArticle;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user