src/main/webapp/WEB-INF/jsp/user-form.jsp

changeset 209
c9c6abf167c7
parent 184
e8eecee6aadf
--- a/src/main/webapp/WEB-INF/jsp/user-form.jsp	Tue Aug 03 12:22:10 2021 +0200
+++ b/src/main/webapp/WEB-INF/jsp/user-form.jsp	Tue Aug 03 13:41:32 2021 +0200
@@ -38,34 +38,30 @@
             <col style="width: 50ch">
         </colgroup>
         <tbody>
+        <c:if test="${not empty viewmodel.errorMessages}">
+        <tr>
+            <td colspan="2"><%@include file="../jspf/error-messages.jspf" %></td>
+        </tr>
+        </c:if>
         <tr>
             <th><fmt:message key="username"/></th>
-            <td><input name="username" type="text" maxlength="50" required value="<c:out value="${user.username}"/>"
+            <td><input name="username" type="text" maxlength="200" required value="<c:out value="${user.username}"/>"
                        <c:if test="${user.id ge 0}">readonly</c:if> /></td>
         </tr>
         <tr>
             <th><fmt:message key="user.givenname"/></th>
-            <td><input name="givenname" type="text" maxlength="50" value="<c:out value="${user.givenname}"/>" /></td>
+            <td><input name="givenname" type="text" maxlength="200" value="<c:out value="${user.givenname}"/>" /></td>
         </tr>
         <tr>
             <th><fmt:message key="user.lastname"/></th>
-            <td><input name="lastname" type="text" maxlength="50" value="<c:out value="${user.lastname}"/>" /></td>
+            <td><input name="lastname" type="text" maxlength="200" value="<c:out value="${user.lastname}"/>" /></td>
         </tr>
         <tr>
             <th><fmt:message key="user.mail"/></th>
-            <td><input name="mail" type="email" maxlength="50" value="<c:out value="${user.mail}"/>" /></td>
+            <td><input name="mail" type="email" maxlength="200" value="<c:out value="${user.mail}"/>" /></td>
         </tr>
         </tbody>
         <tfoot>
-        <c:if test="${not empty viewmodel.errorText}">
-        <tr>
-            <td colspan="2">
-                <div class="error-box">
-                    <fmt:message key="${viewmodel.errorText}"/>
-                </div>
-            </td>
-        </tr>
-        </c:if>
         <tr>
             <td colspan="2">
                 <input type="hidden" name="userid" value="${user.id}"/>

mercurial