Modification CSS formulaire d'ajout de conference

This commit is contained in:
2008-02-15 18:21:56 +00:00
parent d370d2d7b8
commit 38bd59d2a6
7 changed files with 367 additions and 244 deletions

View File

@@ -145,117 +145,120 @@ var CritereManager = Class.create({
<body>
<h4 class="title">
<c:choose>
<c:when test="${param['action'] eq 'modify'}">
<fmt:message key="conference.titleModify" />
</c:when>
<c:otherwise>
<fmt:message key="conference.titleAdd" />
</c:otherwise>
</c:choose>
</h4>
<h4 class="title"><c:choose>
<c:when test="${param['action'] eq 'modify'}">
<fmt:message key="conference.titleModify" />
</c:when>
<c:otherwise>
<fmt:message key="conference.titleAdd" />
</c:otherwise>
</c:choose></h4>
<fmt:message key="step">
<fmt:param value="4" />
<fmt:param value="5" />
</fmt:message>
<br />
<br />
<p class="formHelp"><fmt:message key="conference.help.step4" /></p>
<form:form commandName="formConference" name="monForm">
Step (4/5) <br/>
This step allows you to add criterion which will be used when someone will evaluate an article.<br/>
You can add a new criterion using the input form, or add an existing criterion.<br/>
<br/>
<fieldset><legend>Existing criteria</legend>
<table border="1" id="tableCriterionAll" style="display: none;">
<thead>
<table>
<tbody>
<tr>
<th>Criterion</th>
<th>Min</th>
<th>Max</th>
<th>Action</th>
</tr>
</thead>
<tbody id="criteriabodyAll">
<tr id="patternAll" style="display: none;">
<td><span id="tableCriterionAll">Criterion</span></td>
<td><span id="tableCriterionMinAll">Min</span></td>
<td><span id="tableCriterionMaxAll">Max</span></td>
<td class="formLabel">Existing criteria</td>
<td>
<a id="add" href="#" onclick="addClicked(this.id)" >Add</a>
<table border="1" id="tableCriterionAll" style="display: none;">
<thead>
<tr>
<th>Criterion</th>
<th>Min</th>
<th>Max</th>
<th>Action</th>
</tr>
</thead>
<tbody id="criteriabodyAll">
<tr id="patternAll" style="display: none;">
<td><span id="tableCriterionAll">Criterion</span></td>
<td><span id="tableCriterionMinAll">Min</span></td>
<td><span id="tableCriterionMaxAll">Max</span></td>
<td><a id="add" href="#" onclick="addClicked(this.id)">Add</a>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</fieldset>
<tr>
<td class="formLabel">Add a new criterion</td>
<td>
<table class="plain">
<tr>
<td>Label:</td>
<td><input id="label" type="text" /></td>
</tr>
<tr>
<td>Min:</td>
<td><input id="min" type="text" /></td>
</tr>
<tr>
<td>Max:</td>
<td><input id="max" type="text" /></td>
<td><span id="errorMax"></span></td>
</tr>
<tr>
<td colspan="2" align="right"><span id="id"
style="display: none;">-1</span> <a href="#"
onclick="writePerson()">Save</a> <a href="#"
onclick="clearPerson()">Clear</a></td>
<td></td>
</tr>
</table>
<br />
<fieldset><legend>Criteria</legend>
<table class="plain">
<tr>
<td>Label:</td>
<td><input id="label" type="text"/></td>
</tr>
<tr>
<td>Min:</td>
<td><input id="min" type="text"/></td>
</tr>
<tr>
<td>Max:</td>
<td><input id="max" type="text"/></td>
<td><span id="errorMax"></span></td>
</tr>
<tr>
<td colspan="2" align="right"><span id="id" style="display: none;">-1</span>
<a href="#" onclick="writePerson()">Save</a>
<a href="#" onclick="clearPerson()">Clear</a>
</td>
<td></td>
</tr>
</table>
</fieldset>
<script type="text/javascript">
<script type="text/javascript">
new CritereManager('label', 'min', 'max');
</script>
<br />
<table border="1" id="tableCriterion" style="display: none;">
<thead>
<tr>
<th>Criterion</th>
<th>Min</th>
<th>Max</th>
<th>Actions</th>
</script></td>
</tr>
</thead>
<tbody id="criteriabody">
<tr id="pattern" style="display: none;">
<td><span id="tableCriterion">Criterion</span></td>
<td><span id="tableCriterionMin">Min</span></td>
<td><span id="tableCriterionMax">Max</span></td>
<tr>
<td class="formLabel">Criteria list for this conference</td>
<td>
<a id="edit" href="#" onclick="editClicked(this.id)" >Edit</a>
<a id="delete" href="#" onclick="deleteClicked(this.id)" >Delete</a>
<table border="1" id="tableCriterion" style="display: none;">
<thead>
<tr>
<th>Criterion</th>
<th>Min</th>
<th>Max</th>
<th>Actions</th>
</tr>
</thead>
<tbody id="criteriabody">
<tr id="pattern" style="display: none;">
<td><span id="tableCriterion">Criterion</span></td>
<td><span id="tableCriterionMin">Min</span></td>
<td><span id="tableCriterionMax">Max</span></td>
<td><a id="edit" href="#" onclick="editClicked(this.id)">Edit</a>
<a id="delete" href="#" onclick="deleteClicked(this.id)">Delete</a>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
<tfoot>
<tr>
<td>&nbsp;</td>
<td><input type="submit" name="_target2" value="Back">
<input type="submit" name="_target4" value="Next" /></td>
</tr>
</tfoot>
</table>
<br />
<input type="submit" align="middle" name="_target2" value="Back">
<input type="submit" align="middle" name="_target4" value="Next"/>
</form:form>
<script type="text/javascript">
init();
</script>
<br />
<br />
<a href="<c:url value="main.htm"/>">Home</a>
</body>