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

Mon, 30 Oct 2023 14:44:36 +0100

author
Mike Becker <universe@uap-core.de>
date
Mon, 30 Oct 2023 14:44:36 +0100
changeset 292
703591e739f4
parent 225
87328572e36f
permissions
-rw-r--r--

add possibility to show issues w/o version or component - fixes #335

universe@51 1 <%--
universe@51 2 DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
universe@51 3
universe@180 4 Copyright 2021 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 <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
universe@51 29 <%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
universe@51 30
universe@86 31 <jsp:useBean id="viewmodel" type="de.uapcore.lightpit.viewmodel.VersionEditView" scope="request" />
universe@86 32 <c:set var="version" scope="page" value="${viewmodel.version}"/>
universe@128 33 <c:set var="project" scope="page" value="${viewmodel.projectInfo.project}"/>
universe@80 34
universe@184 35 <form action="./projects/${project.node}/versions/-/commit" method="post">
universe@51 36 <table class="formtable" style="width: 35ch">
universe@51 37 <colgroup>
universe@51 38 <col>
universe@51 39 <col style="width: 100%">
universe@51 40 </colgroup>
universe@51 41 <tbody>
universe@51 42 <tr>
universe@181 43 <th><fmt:message key="project"/></th>
universe@76 44 <td>
universe@128 45 <c:out value="${project.name}" />
universe@184 46 <input type="hidden" name="projectid" value="${project.id}" />
universe@76 47 </td>
universe@76 48 </tr>
universe@76 49 <tr>
universe@225 50 <th><label for="version-name"><fmt:message key="version"/></label></th>
universe@225 51 <td><input id="version-name" name="name" type="text" maxlength="20" required value="<c:out value="${version.name}"/>" /></td>
universe@51 52 </tr>
universe@138 53 <tr title="<fmt:message key="node.tooltip"/>">
universe@225 54 <th><label for="version-node"><fmt:message key="node"/></label></th>
universe@225 55 <td><input id="version-node" name="node" type="text" maxlength="20" value="<c:out value="${version.node}"/>" /></td>
universe@138 56 </tr>
universe@51 57 <tr>
universe@225 58 <th><label for="version-status"><fmt:message key="version.status"/></label></th>
universe@59 59 <td>
universe@225 60 <select id="version-status" name="status" required>
universe@86 61 <c:forEach var="elem" items="${viewmodel.versionStatus}">
universe@72 62 <option
universe@72 63 <c:if test="${elem eq version.status}">selected</c:if> value="${elem}"><fmt:message
universe@72 64 key="version.status.${elem}"/></option>
universe@59 65 </c:forEach>
universe@59 66 </select>
universe@59 67 </td>
universe@51 68 </tr>
universe@181 69 <tr title="<fmt:message key="ordinal.tooltip" />">
universe@225 70 <th><label for="version-ordinal"><fmt:message key="ordinal"/></label></th>
universe@59 71 <td>
universe@225 72 <input id="version-ordinal" name="ordinal" type="number" value="${version.ordinal}"/>
universe@225 73 </td>
universe@225 74 </tr>
universe@225 75 <tr>
universe@225 76 <th><label for="version-release"><fmt:message key="version.release"/></label></th>
universe@225 77 <td>
universe@225 78 <input id="version-release" name="release" type="date" value="<fmt:formatDate value="${version.release}" pattern="YYYY-MM-dd" />"/>
universe@225 79 </td>
universe@225 80 </tr>
universe@225 81 <tr>
universe@225 82 <th><label for="version-eol"><fmt:message key="version.eol"/></label></th>
universe@225 83 <td>
universe@225 84 <input id="version-eol" name="eol" type="date" value="<fmt:formatDate value="${version.eol}" pattern="YYYY-MM-dd" />"/>
universe@59 85 </td>
universe@51 86 </tr>
universe@51 87 </tbody>
universe@51 88 <tfoot>
universe@51 89 <tr>
universe@51 90 <td colspan="2">
universe@72 91 <input type="hidden" name="id" value="${version.id}"/>
universe@134 92 <a href="./projects/${project.node}/versions/" class="button">
universe@180 93 <fmt:message key="button.cancel"/>
universe@75 94 </a>
universe@180 95 <button type="submit"><fmt:message key="button.okay"/></button>
universe@51 96 </td>
universe@51 97 </tr>
universe@51 98 </tfoot>
universe@51 99 </table>
universe@51 100 </form>

mercurial