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

@ -7,12 +7,11 @@
<td valign="bottom" colspan="3">
<b>Ontology name</b><br/>
<input type="text" name="Name" value="<form:value name="Name"/>" size="40" maxlength="120" />
<font size="2" color="red"><form:error name="Name"/></font>
</td>
</tr>
<tr class="editformcell">
<td valign="bottom" colspan="3">
<b>Namespace URI</b><br/>
<b>Namespace URI*</b><br/>
<c:choose>
<c:when test="${_action eq 'update'}">
<i>Change via the "change URI" button on previous screen</i><br/>
@ -21,14 +20,21 @@
<c:otherwise>
<input type="text" name="URI" value="<form:value name="URI"/>" size="50" maxlength="240" />
</c:otherwise>
</c:choose>
</c:choose>
<c:set var="URIError"><form:error name="URI"/></c:set>
<c:if test="${!empty URIError}">
<span class="notice"><c:out value="${URIError}"/></span>
</c:if>
</td>
</tr>
<tr class="editformcell">
<td valign="bottom" colspan="3">
<b>Namespace prefix</b><br/>
<input type="text" name="Prefix" value="<form:value name="Prefix"/>" size="8" maxlength="25" />
<font size="2" color="red"><form:error name="Prefix"/></font>
<c:set var="PrefixError"><form:error name="Prefix"/></c:set>
<c:if test="${!empty PrefixError}">
<span class="notice"><c:out value="${PrefixError}"/></span>
</c:if>
</td>
</tr>