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

Thu, 14 May 2020 22:48:01 +0200

author
Mike Becker <universe@uap-core.de>
date
Thu, 14 May 2020 22:48:01 +0200
changeset 47
57cfb94ab99f
child 51
dd0a45ae25d7
permissions
-rw-r--r--

projects can now be added and updated

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

mercurial