Wed, 06 Jan 2021 16:20:32 +0100
renames several resource keys
universe@75 | 1 | <%-- |
universe@75 | 2 | DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. |
universe@75 | 3 | |
universe@180 | 4 | Copyright 2021 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@86 | 31 | <jsp:useBean id="viewmodel" type="de.uapcore.lightpit.viewmodel.IssueEditView" scope="request"/> |
universe@86 | 32 | <c:set var="issue" scope="page" value="${viewmodel.issue}" /> |
universe@75 | 33 | |
universe@131 | 34 | <%-- TODO: change to ./issues/commit --%> |
universe@131 | 35 | <form action="./projects/commit-issue" method="post"> |
universe@124 | 36 | <table class="formtable fullwidth"> |
universe@75 | 37 | <colgroup> |
universe@75 | 38 | <col> |
universe@124 | 39 | <col style="width: 100%"> |
universe@75 | 40 | </colgroup> |
universe@75 | 41 | <tbody> |
universe@113 | 42 | <c:if test="${viewmodel.issue.id ge 0}"> |
universe@75 | 43 | <tr> |
universe@108 | 44 | <th><fmt:message key="issue.id"/></th> |
universe@108 | 45 | <td>${issue.id}</td> |
universe@108 | 46 | </tr> |
universe@113 | 47 | </c:if> |
universe@108 | 48 | <tr> |
universe@181 | 49 | <th><fmt:message key="project"/></th> |
universe@76 | 50 | <td> |
universe@86 | 51 | <c:choose> |
universe@86 | 52 | <c:when test="${not empty issue.project}"> |
universe@86 | 53 | <c:out value="${issue.project.name}" /> |
universe@86 | 54 | <input type="hidden" name="pid" value="${issue.project.id}" /> |
universe@86 | 55 | </c:when> |
universe@86 | 56 | <c:otherwise> |
universe@86 | 57 | <select name="pid" required> |
universe@86 | 58 | <c:forEach var="project" items="${viewmodel.projects}"> |
universe@86 | 59 | <option value="${project.id}"> |
universe@86 | 60 | <c:out value="${project.name}" /> |
universe@86 | 61 | </option> |
universe@86 | 62 | </c:forEach> |
universe@86 | 63 | </select> |
universe@86 | 64 | </c:otherwise> |
universe@86 | 65 | </c:choose> |
universe@76 | 66 | </td> |
universe@76 | 67 | </tr> |
universe@76 | 68 | <tr> |
universe@103 | 69 | <th><fmt:message key="issue.created"/></th> |
universe@156 | 70 | <td> |
universe@156 | 71 | <c:set var="dateValue" value="${issue.created}"/> |
universe@156 | 72 | <%@include file="../jspf/date-with-tooltip.jspf"%> |
universe@156 | 73 | </td> |
universe@103 | 74 | </tr> |
universe@103 | 75 | <tr> |
universe@103 | 76 | <th><fmt:message key="issue.updated"/></th> |
universe@156 | 77 | <td> |
universe@156 | 78 | <c:set var="dateValue" value="${issue.updated}"/> |
universe@156 | 79 | <%@include file="../jspf/date-with-tooltip.jspf"%> |
universe@156 | 80 | </td> |
universe@103 | 81 | </tr> |
universe@103 | 82 | <tr> |
universe@181 | 83 | <th><fmt:message key="component"/></th> |
universe@134 | 84 | <td> |
universe@134 | 85 | <select name="component"> |
universe@134 | 86 | <option value="-1"><fmt:message key="placeholder.null-component"/></option> |
universe@134 | 87 | <c:forEach var="component" items="${viewmodel.components}"> |
universe@134 | 88 | <option |
universe@134 | 89 | <c:if test="${not empty issue.component and component eq issue.component}">selected</c:if> |
universe@178 | 90 | <c:if test="${empty issue.component and component.id eq cid}">selected</c:if> |
universe@134 | 91 | value="${component.id}"><c:out value="${component.name}"/></option> |
universe@134 | 92 | </c:forEach> |
universe@134 | 93 | </select> |
universe@134 | 94 | </td> |
universe@134 | 95 | </tr> |
universe@134 | 96 | <tr> |
universe@82 | 97 | <th><fmt:message key="issue.category"/></th> |
universe@75 | 98 | <td> |
universe@75 | 99 | <select name="category"> |
universe@86 | 100 | <c:forEach var="category" items="${viewmodel.issueCategory}"> |
universe@75 | 101 | <option |
universe@75 | 102 | <c:if test="${category eq issue.category}">selected</c:if> |
universe@75 | 103 | value="${category}"> |
universe@75 | 104 | <fmt:message key="issue.category.${category}" /> |
universe@75 | 105 | </option> |
universe@75 | 106 | </c:forEach> |
universe@75 | 107 | </select> |
universe@75 | 108 | </td> |
universe@75 | 109 | </tr> |
universe@75 | 110 | <tr> |
universe@82 | 111 | <th><fmt:message key="issue.status"/></th> |
universe@75 | 112 | <td> |
universe@75 | 113 | <select name="status"> |
universe@86 | 114 | <c:forEach var="status" items="${viewmodel.issueStatus}"> |
universe@75 | 115 | <option |
universe@75 | 116 | <c:if test="${status eq issue.status}">selected</c:if> |
universe@75 | 117 | value="${status}"> |
universe@75 | 118 | <fmt:message key="issue.status.${status}" /> |
universe@75 | 119 | </option> |
universe@75 | 120 | </c:forEach> |
universe@75 | 121 | </select> |
universe@75 | 122 | </td> |
universe@75 | 123 | </tr> |
universe@75 | 124 | <tr> |
universe@82 | 125 | <th><fmt:message key="issue.subject"/></th> |
universe@85 | 126 | <td><input name="subject" type="text" maxlength="200" required value="<c:out value="${issue.subject}"/>" /></td> |
universe@75 | 127 | </tr> |
universe@75 | 128 | <tr> |
universe@82 | 129 | <th class="vtop"><fmt:message key="issue.description"/></th> |
universe@75 | 130 | <td> |
universe@86 | 131 | <textarea name="description" rows="10"><c:out value="${issue.description}"/></textarea> |
universe@75 | 132 | </td> |
universe@75 | 133 | </tr> |
universe@75 | 134 | <tr> |
universe@82 | 135 | <th><fmt:message key="issue.assignee"/></th> |
universe@75 | 136 | <td> |
universe@75 | 137 | <select name="assignee"> |
universe@136 | 138 | <option value="-2" title="<fmt:message key="placeholder.auto-assignee.tooltip"/>"><fmt:message key="placeholder.auto-assignee"/></option> |
universe@136 | 139 | <option value="-1" |
universe@136 | 140 | <c:if test="${issue.id ge 0 and empty issue.assignee}">selected</c:if> |
universe@136 | 141 | ><fmt:message key="placeholder.null-assignee"/></option> |
universe@86 | 142 | <c:forEach var="user" items="${viewmodel.users}"> |
universe@75 | 143 | <option |
universe@75 | 144 | <c:if test="${not empty issue.assignee and user eq issue.assignee}">selected</c:if> |
universe@75 | 145 | value="${user.id}"><c:out value="${user.displayname}"/></option> |
universe@75 | 146 | </c:forEach> |
universe@75 | 147 | </select> |
universe@75 | 148 | </td> |
universe@75 | 149 | </tr> |
universe@83 | 150 | <c:if test="${issue.project.id ge 0}"> |
universe@75 | 151 | <tr> |
universe@83 | 152 | <th class="vtop"><fmt:message key="issue.affected-versions"/></th> |
universe@83 | 153 | <td> |
universe@83 | 154 | <c:set var="fieldname" value="affected"/> |
universe@90 | 155 | <c:set var="selectionList" value="${viewmodel.versionsRecent}"/> |
universe@83 | 156 | <c:set var="data" value="${issue.affectedVersions}" /> |
universe@115 | 157 | <%@include file="../jspf/version-list.jspf"%> |
universe@83 | 158 | </td> |
universe@75 | 159 | </tr> |
universe@75 | 160 | <tr> |
universe@83 | 161 | <th class="vtop"><fmt:message key="issue.resolved-versions"/></th> |
universe@83 | 162 | <td> |
universe@83 | 163 | <c:set var="fieldname" value="resolved"/> |
universe@90 | 164 | <c:set var="selectionList" value="${viewmodel.versionsUpcoming}"/> |
universe@83 | 165 | <c:set var="data" value="${issue.resolvedVersions}" /> |
universe@115 | 166 | <%@include file="../jspf/version-list.jspf"%> |
universe@83 | 167 | </td> |
universe@75 | 168 | </tr> |
universe@83 | 169 | </c:if> |
universe@75 | 170 | <tr> |
universe@82 | 171 | <th><fmt:message key="issue.eta"/></th> |
universe@75 | 172 | <td><input name="eta" type="date" value="<fmt:formatDate value="${issue.eta}" pattern="YYYY-MM-dd" />" /> </td> |
universe@75 | 173 | </tr> |
universe@75 | 174 | </tbody> |
universe@75 | 175 | <tfoot> |
universe@75 | 176 | <tr> |
universe@75 | 177 | <td colspan="2"> |
universe@168 | 178 | <input type="checkbox" id="create-another" name="create-another" <c:if test="${more}">checked</c:if> /> |
universe@168 | 179 | <label for="create-another"><fmt:message key="button.issue.create.another"/> </label> |
universe@75 | 180 | <input type="hidden" name="id" value="${issue.id}"/> |
universe@146 | 181 | <c:if test="${issue.id ge 0}"> |
universe@146 | 182 | <a href="./projects/${issue.project.node}/issues/${issue.id}/view" class="button"> |
universe@180 | 183 | <fmt:message key="button.cancel"/> |
universe@75 | 184 | </a> |
universe@146 | 185 | </c:if> |
universe@146 | 186 | <c:if test="${issue.id lt 0}"> |
universe@146 | 187 | <%-- TODO: fix #14 --%> |
universe@146 | 188 | <a href="./projects/${issue.project.node}/all-components/all-versions/issues/" class="button"> |
universe@180 | 189 | <fmt:message key="button.cancel"/> |
universe@146 | 190 | </a> |
universe@146 | 191 | </c:if> |
universe@180 | 192 | <button type="submit"><fmt:message key="button.okay"/></button> |
universe@75 | 193 | </td> |
universe@75 | 194 | </tr> |
universe@75 | 195 | </tfoot> |
universe@75 | 196 | </table> |
universe@75 | 197 | </form> |