NIHVIVO-3352 improvements to validation in backend editing forms

This commit is contained in:
brianjlowe 2011-11-23 17:11:27 +00:00
parent 777d10ba04
commit 8822dc51ff
23 changed files with 298 additions and 236 deletions

View file

@ -1,24 +1,27 @@
<%-- $This file is distributed under the terms of the license in /doc/license.txt$ --%>
<%@ taglib prefix="form" uri="http://vitro.mannlib.cornell.edu/edit/tags" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<tr class="editformcell">
<td valign="top" colspan="3">
<b>Property group name</b> (max 120 characters)<br />
<input type="text" name="Name" value="<form:value name="Name"/>" size="50" maxlength="120" />
<font size="2" color="red"><form:error name="Name"/></font>
<c:set var="NameError"><form:error name="Name"/></c:set>
<c:if test="${!empty NameError}">
<span class="notice"><c:out value="${NameError}"/></span>
</c:if>
</td>
</tr>
<tr class="editformcell">
<td valign="top" colspan="3">
<b>Public description</b> (short explanation for dashboard)<br />
<input type="text" name="PublicDescription" value="<form:value name="PublicDescription"/>" size="80" maxlength="255" />
<font size="2" color="red"><form:error name="PublicDescription"/></font>
</td>
</tr>
<tr class="editformcell">
<td valign="top" colspan="3">
<b>Display rank </b> (lower number displays higher)<br />
<input type="text" name="DisplayRank" value="<form:value name="DisplayRank"/>" size="3" maxlength="11" />
<font size="2" color="red"><form:error name="DisplayRank"/></font>
</td>
</tr>