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

changeset 184
e8eecee6aadf
parent 181
502a10e24b85
child 209
c9c6abf167c7
--- a/src/main/webapp/WEB-INF/jsp/user-form.jsp	Sat Jan 23 14:47:59 2021 +0100
+++ b/src/main/webapp/WEB-INF/jsp/user-form.jsp	Fri Apr 02 11:59:14 2021 +0200
@@ -28,10 +28,10 @@
 <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
 <%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
 
-<jsp:useBean id="viewmodel" type="de.uapcore.lightpit.viewmodel.UsersEditView" scope="request"/>
+<jsp:useBean id="viewmodel" type="de.uapcore.lightpit.viewmodel.UserEditView" scope="request"/>
 <c:set var="user" scope="page" value="${viewmodel.user}" />
 
-<form action="./teams/commit" method="post">
+<form action="./users/-/commit" method="post">
     <table class="formtable">
         <colgroup>
             <col>
@@ -57,10 +57,19 @@
         </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}"/>
-                <a href="./teams/" class="button">
+                <a href="./users/" class="button">
                     <fmt:message key="button.cancel"/>
                 </a>
                 <button type="submit"><fmt:message key="button.okay"/></button>

mercurial