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

changeset 184
e8eecee6aadf
parent 181
502a10e24b85
child 209
c9c6abf167c7
equal deleted inserted replaced
183:61669abf277f 184:e8eecee6aadf
26 --%> 26 --%>
27 <%@page pageEncoding="UTF-8" %> 27 <%@page pageEncoding="UTF-8" %>
28 <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> 28 <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
29 <%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> 29 <%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
30 30
31 <jsp:useBean id="viewmodel" type="de.uapcore.lightpit.viewmodel.UsersEditView" scope="request"/> 31 <jsp:useBean id="viewmodel" type="de.uapcore.lightpit.viewmodel.UserEditView" scope="request"/>
32 <c:set var="user" scope="page" value="${viewmodel.user}" /> 32 <c:set var="user" scope="page" value="${viewmodel.user}" />
33 33
34 <form action="./teams/commit" method="post"> 34 <form action="./users/-/commit" method="post">
35 <table class="formtable"> 35 <table class="formtable">
36 <colgroup> 36 <colgroup>
37 <col> 37 <col>
38 <col style="width: 50ch"> 38 <col style="width: 50ch">
39 </colgroup> 39 </colgroup>
55 <th><fmt:message key="user.mail"/></th> 55 <th><fmt:message key="user.mail"/></th>
56 <td><input name="mail" type="email" maxlength="50" value="<c:out value="${user.mail}"/>" /></td> 56 <td><input name="mail" type="email" maxlength="50" value="<c:out value="${user.mail}"/>" /></td>
57 </tr> 57 </tr>
58 </tbody> 58 </tbody>
59 <tfoot> 59 <tfoot>
60 <c:if test="${not empty viewmodel.errorText}">
61 <tr>
62 <td colspan="2">
63 <div class="error-box">
64 <fmt:message key="${viewmodel.errorText}"/>
65 </div>
66 </td>
67 </tr>
68 </c:if>
60 <tr> 69 <tr>
61 <td colspan="2"> 70 <td colspan="2">
62 <input type="hidden" name="userid" value="${user.id}"/> 71 <input type="hidden" name="userid" value="${user.id}"/>
63 <a href="./teams/" class="button"> 72 <a href="./users/" class="button">
64 <fmt:message key="button.cancel"/> 73 <fmt:message key="button.cancel"/>
65 </a> 74 </a>
66 <button type="submit"><fmt:message key="button.okay"/></button> 75 <button type="submit"><fmt:message key="button.okay"/></button>
67 </td> 76 </td>
68 </tr> 77 </tr>

mercurial