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

Sat, 30 May 2020 15:28:27 +0200

author
Mike Becker <universe@uap-core.de>
date
Sat, 30 May 2020 15:28:27 +0200
changeset 82
4ec7f2600c83
parent 81
1a2e7b5d48f7
child 83
24a3596b8f98
permissions
-rw-r--r--

removes stupid thead prefix from every resource file

universe@75 1 <%--
universe@75 2 DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
universe@75 3
universe@75 4 Copyright 2018 Mike Becker. All rights reserved.
universe@75 5
universe@75 6 Redistribution and use in source and binary forms, with or without
universe@75 7 modification, are permitted provided that the following conditions are met:
universe@75 8
universe@75 9 1. Redistributions of source code must retain the above copyright
universe@75 10 notice, this list of conditions and the following disclaimer.
universe@75 11
universe@75 12 2. Redistributions in binary form must reproduce the above copyright
universe@75 13 notice, this list of conditions and the following disclaimer in the
universe@75 14 documentation and/or other materials provided with the distribution.
universe@75 15
universe@75 16 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
universe@75 17 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
universe@75 18 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
universe@75 19 DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
universe@75 20 FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
universe@75 21 DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
universe@75 22 SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
universe@75 23 CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
universe@75 24 OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
universe@75 25 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
universe@75 26 --%>
universe@75 27 <%@page pageEncoding="UTF-8" %>
universe@75 28 <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
universe@75 29 <%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
universe@75 30
universe@76 31 <jsp:useBean id="projects" type="java.util.List<de.uapcore.lightpit.entities.Project>" scope="request" />
universe@75 32 <jsp:useBean id="issue" type="de.uapcore.lightpit.entities.Issue" scope="request"/>
universe@75 33 <jsp:useBean id="issueStatusEnum" type="de.uapcore.lightpit.entities.IssueStatus[]" scope="request"/>
universe@75 34 <jsp:useBean id="issueCategoryEnum" type="de.uapcore.lightpit.entities.IssueCategory[]" scope="request"/>
universe@75 35 <jsp:useBean id="users" type="java.util.List<de.uapcore.lightpit.entities.User>" scope="request"/>
universe@75 36
universe@78 37 <form action="./projects/issues/commit" method="post">
universe@75 38 <table class="formtable">
universe@75 39 <colgroup>
universe@75 40 <col>
universe@75 41 <col style="width: 75ch">
universe@75 42 </colgroup>
universe@75 43 <tbody>
universe@75 44 <tr>
universe@82 45 <th><fmt:message key="issue.project"/></th>
universe@76 46 <td>
universe@76 47 <select name="pid" required>
universe@76 48 <c:forEach var="project" items="${projects}">
universe@76 49 <option value="${project.id}" <c:if test="${project eq issue.project}">selected</c:if> >
universe@76 50 <c:out value="${project.name}" />
universe@76 51 </option>
universe@76 52 </c:forEach>
universe@76 53 </select>
universe@76 54 </td>
universe@76 55 </tr>
universe@76 56 <tr>
universe@82 57 <th><fmt:message key="issue.category"/></th>
universe@75 58 <td>
universe@75 59 <select name="category">
universe@75 60 <c:forEach var="category" items="${issueCategoryEnum}">
universe@75 61 <option
universe@75 62 <c:if test="${category eq issue.category}">selected</c:if>
universe@75 63 value="${category}">
universe@75 64 <fmt:message key="issue.category.${category}" />
universe@75 65 </option>
universe@75 66 </c:forEach>
universe@75 67 </select>
universe@75 68 </td>
universe@75 69 </tr>
universe@75 70 <tr>
universe@82 71 <th><fmt:message key="issue.status"/></th>
universe@75 72 <td>
universe@75 73 <select name="status">
universe@75 74 <c:forEach var="status" items="${issueStatusEnum}">
universe@75 75 <option
universe@75 76 <c:if test="${status eq issue.status}">selected</c:if>
universe@75 77 value="${status}">
universe@75 78 <fmt:message key="issue.status.${status}" />
universe@75 79 </option>
universe@75 80 </c:forEach>
universe@75 81 </select>
universe@75 82 </td>
universe@75 83 </tr>
universe@75 84 <tr>
universe@82 85 <th><fmt:message key="issue.subject"/></th>
universe@75 86 <td><input name="subject" type="text" maxlength="20" required value="<c:out value="${issue.subject}"/>" /></td>
universe@75 87 </tr>
universe@75 88 <tr>
universe@82 89 <th class="vtop"><fmt:message key="issue.description"/></th>
universe@75 90 <td>
universe@75 91 <textarea name="description"><c:out value="${issue.description}"/></textarea>
universe@75 92 </td>
universe@75 93 </tr>
universe@75 94 <tr>
universe@82 95 <th><fmt:message key="issue.assignee"/></th>
universe@75 96 <td>
universe@75 97 <select name="assignee">
universe@75 98 <option value="-1"><fmt:message key="placeholder.null-assignee"/></option>
universe@75 99 <c:forEach var="user" items="${users}">
universe@75 100 <option
universe@75 101 <c:if test="${not empty issue.assignee and user eq issue.assignee}">selected</c:if>
universe@75 102 value="${user.id}"><c:out value="${user.displayname}"/></option>
universe@75 103 </c:forEach>
universe@75 104 </select>
universe@75 105 </td>
universe@75 106 </tr>
universe@75 107 <tr>
universe@75 108 <th>
universe@75 109 <c:choose>
universe@75 110 <c:when test="${issue.affectedVersions.size() gt 1}">
universe@82 111 <fmt:message key="issue.affected-versions"/>
universe@75 112 </c:when>
universe@75 113 <c:otherwise>
universe@82 114 <fmt:message key="issue.affected-version"/>
universe@75 115 </c:otherwise>
universe@75 116 </c:choose>
universe@75 117 </th>
universe@75 118 <td>TODO</td>
universe@75 119 </tr>
universe@75 120 <tr>
universe@75 121 <th>
universe@75 122 <c:choose>
universe@75 123 <c:when test="${issue.scheduledVersions.size() gt 1}">
universe@82 124 <fmt:message key="issue.scheduled-versions"/>
universe@75 125 </c:when>
universe@75 126 <c:otherwise>
universe@82 127 <fmt:message key="issue.scheduled-version"/>
universe@75 128 </c:otherwise>
universe@75 129 </c:choose>
universe@75 130 </th>
universe@75 131 <td>TODO</td>
universe@75 132 </tr>
universe@75 133 <tr>
universe@75 134 <th>
universe@75 135 <c:choose>
universe@75 136 <c:when test="${issue.resolvedVersions.size() gt 1}">
universe@82 137 <fmt:message key="issue.resolved-versions"/>
universe@75 138 </c:when>
universe@75 139 <c:otherwise>
universe@82 140 <fmt:message key="issue.resolved-version"/>
universe@75 141 </c:otherwise>
universe@75 142 </c:choose>
universe@75 143 </th>
universe@75 144 <td>TODO</td>
universe@75 145 </tr>
universe@75 146 <tr>
universe@82 147 <th><fmt:message key="issue.eta"/></th>
universe@75 148 <td><input name="eta" type="date" value="<fmt:formatDate value="${issue.eta}" pattern="YYYY-MM-dd" />" /> </td>
universe@75 149 </tr>
universe@75 150 <tr>
universe@82 151 <th><fmt:message key="issue.created"/></th>
universe@75 152 <td><fmt:formatDate value="${issue.created}" /></td>
universe@75 153 </tr>
universe@75 154 <tr>
universe@82 155 <th><fmt:message key="issue.updated"/></th>
universe@75 156 <td><fmt:formatDate value="${issue.updated}" /></td>
universe@75 157 </tr>
universe@75 158 </tbody>
universe@75 159 <tfoot>
universe@75 160 <tr>
universe@75 161 <td colspan="2">
universe@75 162 <input type="hidden" name="id" value="${issue.id}"/>
universe@76 163 <c:choose>
universe@76 164 <c:when test="${not empty issue.project and issue.project.id ge 0}">
universe@81 165 <c:set var="cancelUrl">./projects/issues/?pid=${issue.project.id}</c:set>
universe@76 166 </c:when>
universe@76 167 <c:otherwise>
universe@78 168 <c:set var="cancelUrl">./projects/</c:set>
universe@76 169 </c:otherwise>
universe@76 170 </c:choose>
universe@76 171 <a href="${cancelUrl}" class="button">
universe@75 172 <fmt:message bundle="${lightpit_bundle}" key="button.cancel"/>
universe@75 173 </a>
universe@75 174 <button type="submit"><fmt:message bundle="${lightpit_bundle}" key="button.okay"/></button>
universe@75 175 </td>
universe@75 176 </tr>
universe@75 177 </tfoot>
universe@75 178 </table>
universe@75 179 </form>

mercurial