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

Fri, 22 May 2020 16:21:59 +0200

author
Mike Becker <universe@uap-core.de>
date
Fri, 22 May 2020 16:21:59 +0200
changeset 72
0646c14e36fb
parent 69
2223bd79e0c6
permissions
-rw-r--r--

some reformatting

universe@51 1 <%--
universe@51 2 DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
universe@51 3
universe@51 4 Copyright 2018 Mike Becker. All rights reserved.
universe@51 5
universe@51 6 Redistribution and use in source and binary forms, with or without
universe@51 7 modification, are permitted provided that the following conditions are met:
universe@51 8
universe@51 9 1. Redistributions of source code must retain the above copyright
universe@51 10 notice, this list of conditions and the following disclaimer.
universe@51 11
universe@51 12 2. Redistributions in binary form must reproduce the above copyright
universe@51 13 notice, this list of conditions and the following disclaimer in the
universe@51 14 documentation and/or other materials provided with the distribution.
universe@51 15
universe@51 16 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
universe@51 17 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
universe@51 18 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
universe@51 19 DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
universe@51 20 FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
universe@51 21 DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
universe@51 22 SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
universe@51 23 CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
universe@51 24 OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
universe@51 25 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
universe@51 26 --%>
universe@51 27 <%@page pageEncoding="UTF-8" %>
universe@51 28 <%@page import="de.uapcore.lightpit.Constants" %>
universe@51 29 <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
universe@51 30 <%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
universe@51 31
universe@51 32 <c:set scope="page" var="moduleInfo" value="${requestScope[Constants.REQ_ATTR_MODULE_INFO]}"/>
universe@51 33
universe@51 34 <jsp:useBean id="user" type="de.uapcore.lightpit.entities.User" scope="request"/>
universe@51 35
universe@51 36 <form action="./${moduleInfo.modulePath}/commit" method="post">
universe@69 37 <table class="formtable">
universe@51 38 <colgroup>
universe@51 39 <col>
universe@69 40 <col style="width: 50ch">
universe@51 41 </colgroup>
universe@51 42 <tbody>
universe@51 43 <tr>
universe@51 44 <th><fmt:message key="thead.username"/></th>
universe@72 45 <td><input name="username" type="text" maxlength="50" required value="${user.username}"
universe@72 46 <c:if test="${user.id ge 0}">readonly</c:if> /></td>
universe@51 47 </tr>
universe@51 48 <tr>
universe@51 49 <th><fmt:message key="thead.givenname"/></th>
universe@72 50 <td><input name="givenname" type="text" maxlength="50" value="${user.givenname}"/></td>
universe@51 51 </tr>
universe@51 52 <tr>
universe@51 53 <th><fmt:message key="thead.lastname"/></th>
universe@72 54 <td><input name="lastname" type="text" maxlength="50" value="${user.lastname}"/></td>
universe@51 55 </tr>
universe@51 56 <tr>
universe@51 57 <th><fmt:message key="thead.mail"/></th>
universe@72 58 <td><input name="mail" type="email" maxlength="50" value="${user.mail}"/></td>
universe@51 59 </tr>
universe@51 60 </tbody>
universe@51 61 <tfoot>
universe@51 62 <tr>
universe@51 63 <td colspan="2">
universe@72 64 <input type="hidden" name="userid" value="${user.id}"/>
universe@72 65 <a href="./${moduleInfo.modulePath}/" class="button"><fmt:message bundle="${lightpit_bundle}"
universe@72 66 key="button.cancel"/></a>
universe@72 67 <button type="submit"><fmt:message bundle="${lightpit_bundle}" key="button.okay"/></button>
universe@51 68 </td>
universe@51 69 </tr>
universe@51 70 </tfoot>
universe@51 71 </table>
universe@51 72 </form>

mercurial