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

Sat, 30 May 2020 18:12:38 +0200

author
Mike Becker <universe@uap-core.de>
date
Sat, 30 May 2020 18:12:38 +0200
changeset 85
3d16ad54b3dc
parent 83
24a3596b8f98
child 86
0a658e53177c
permissions
-rw-r--r--

significantly increases length of subject field

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@83 32 <jsp:useBean id="versions" type="java.util.List<de.uapcore.lightpit.entities.Version>" scope="request" />
universe@75 33 <jsp:useBean id="issue" type="de.uapcore.lightpit.entities.Issue" scope="request"/>
universe@75 34 <jsp:useBean id="issueStatusEnum" type="de.uapcore.lightpit.entities.IssueStatus[]" scope="request"/>
universe@75 35 <jsp:useBean id="issueCategoryEnum" type="de.uapcore.lightpit.entities.IssueCategory[]" scope="request"/>
universe@75 36 <jsp:useBean id="users" type="java.util.List<de.uapcore.lightpit.entities.User>" scope="request"/>
universe@75 37
universe@78 38 <form action="./projects/issues/commit" method="post">
universe@75 39 <table class="formtable">
universe@75 40 <colgroup>
universe@75 41 <col>
universe@75 42 <col style="width: 75ch">
universe@75 43 </colgroup>
universe@75 44 <tbody>
universe@75 45 <tr>
universe@82 46 <th><fmt:message key="issue.project"/></th>
universe@76 47 <td>
universe@83 48 <c:if test="${issue.project.id ge 0}">
universe@83 49 <c:out value="${issue.project.name}" />
universe@83 50 <input type="hidden" name="pid" value="${issue.project.id}" />
universe@83 51 </c:if>
universe@83 52 <c:if test="${empty issue.project or issue.project.id lt 0}">
universe@76 53 <select name="pid" required>
universe@76 54 <c:forEach var="project" items="${projects}">
universe@83 55 <option value="${project.id}">
universe@76 56 <c:out value="${project.name}" />
universe@76 57 </option>
universe@76 58 </c:forEach>
universe@76 59 </select>
universe@83 60 </c:if>
universe@76 61 </td>
universe@76 62 </tr>
universe@76 63 <tr>
universe@82 64 <th><fmt:message key="issue.category"/></th>
universe@75 65 <td>
universe@75 66 <select name="category">
universe@75 67 <c:forEach var="category" items="${issueCategoryEnum}">
universe@75 68 <option
universe@75 69 <c:if test="${category eq issue.category}">selected</c:if>
universe@75 70 value="${category}">
universe@75 71 <fmt:message key="issue.category.${category}" />
universe@75 72 </option>
universe@75 73 </c:forEach>
universe@75 74 </select>
universe@75 75 </td>
universe@75 76 </tr>
universe@75 77 <tr>
universe@82 78 <th><fmt:message key="issue.status"/></th>
universe@75 79 <td>
universe@75 80 <select name="status">
universe@75 81 <c:forEach var="status" items="${issueStatusEnum}">
universe@75 82 <option
universe@75 83 <c:if test="${status eq issue.status}">selected</c:if>
universe@75 84 value="${status}">
universe@75 85 <fmt:message key="issue.status.${status}" />
universe@75 86 </option>
universe@75 87 </c:forEach>
universe@75 88 </select>
universe@75 89 </td>
universe@75 90 </tr>
universe@75 91 <tr>
universe@82 92 <th><fmt:message key="issue.subject"/></th>
universe@85 93 <td><input name="subject" type="text" maxlength="200" required value="<c:out value="${issue.subject}"/>" /></td>
universe@75 94 </tr>
universe@75 95 <tr>
universe@82 96 <th class="vtop"><fmt:message key="issue.description"/></th>
universe@75 97 <td>
universe@75 98 <textarea name="description"><c:out value="${issue.description}"/></textarea>
universe@75 99 </td>
universe@75 100 </tr>
universe@75 101 <tr>
universe@82 102 <th><fmt:message key="issue.assignee"/></th>
universe@75 103 <td>
universe@75 104 <select name="assignee">
universe@75 105 <option value="-1"><fmt:message key="placeholder.null-assignee"/></option>
universe@75 106 <c:forEach var="user" items="${users}">
universe@75 107 <option
universe@75 108 <c:if test="${not empty issue.assignee and user eq issue.assignee}">selected</c:if>
universe@75 109 value="${user.id}"><c:out value="${user.displayname}"/></option>
universe@75 110 </c:forEach>
universe@75 111 </select>
universe@75 112 </td>
universe@75 113 </tr>
universe@83 114 <c:if test="${issue.project.id ge 0}">
universe@75 115 <tr>
universe@83 116 <th class="vtop"><fmt:message key="issue.affected-versions"/></th>
universe@83 117 <td>
universe@83 118 <c:set var="fieldname" value="affected"/>
universe@83 119 <c:set var="data" value="${issue.affectedVersions}" />
universe@83 120 <%@include file="../jspf/version-list.jsp"%>
universe@83 121 </td>
universe@75 122 </tr>
universe@75 123 <tr>
universe@83 124 <th class="vtop"><fmt:message key="issue.scheduled-versions"/></th>
universe@83 125 <td>
universe@83 126 <c:set var="fieldname" value="scheduled"/>
universe@83 127 <c:set var="data" value="${issue.scheduledVersions}" />
universe@83 128 <%@include file="../jspf/version-list.jsp"%>
universe@83 129 </td>
universe@75 130 </tr>
universe@75 131 <tr>
universe@83 132 <th class="vtop"><fmt:message key="issue.resolved-versions"/></th>
universe@83 133 <td>
universe@83 134 <c:set var="fieldname" value="resolved"/>
universe@83 135 <c:set var="data" value="${issue.resolvedVersions}" />
universe@83 136 <%@include file="../jspf/version-list.jsp"%>
universe@83 137 </td>
universe@75 138 </tr>
universe@83 139 </c:if>
universe@75 140 <tr>
universe@82 141 <th><fmt:message key="issue.eta"/></th>
universe@75 142 <td><input name="eta" type="date" value="<fmt:formatDate value="${issue.eta}" pattern="YYYY-MM-dd" />" /> </td>
universe@75 143 </tr>
universe@75 144 <tr>
universe@82 145 <th><fmt:message key="issue.created"/></th>
universe@75 146 <td><fmt:formatDate value="${issue.created}" /></td>
universe@75 147 </tr>
universe@75 148 <tr>
universe@82 149 <th><fmt:message key="issue.updated"/></th>
universe@75 150 <td><fmt:formatDate value="${issue.updated}" /></td>
universe@75 151 </tr>
universe@75 152 </tbody>
universe@75 153 <tfoot>
universe@75 154 <tr>
universe@75 155 <td colspan="2">
universe@75 156 <input type="hidden" name="id" value="${issue.id}"/>
universe@76 157 <c:choose>
universe@76 158 <c:when test="${not empty issue.project and issue.project.id ge 0}">
universe@81 159 <c:set var="cancelUrl">./projects/issues/?pid=${issue.project.id}</c:set>
universe@76 160 </c:when>
universe@76 161 <c:otherwise>
universe@78 162 <c:set var="cancelUrl">./projects/</c:set>
universe@76 163 </c:otherwise>
universe@76 164 </c:choose>
universe@76 165 <a href="${cancelUrl}" class="button">
universe@75 166 <fmt:message bundle="${lightpit_bundle}" key="button.cancel"/>
universe@75 167 </a>
universe@75 168 <button type="submit"><fmt:message bundle="${lightpit_bundle}" key="button.okay"/></button>
universe@75 169 </td>
universe@75 170 </tr>
universe@75 171 </tfoot>
universe@75 172 </table>
universe@75 173 </form>

mercurial