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

Sun, 04 Apr 2021 11:52:30 +0200

author
Mike Becker <universe@uap-core.de>
date
Sun, 04 Apr 2021 11:52:30 +0200
changeset 185
5ec9fcfbdf9c
parent 184
e8eecee6aadf
child 186
05eec764facd
permissions
-rw-r--r--

re-enables the "create another" feature

75
33b6843fdf8a adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff changeset
1 <%--
33b6843fdf8a adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff changeset
2 DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
33b6843fdf8a adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff changeset
3
180
009700915269 merge resource bundles
Mike Becker <universe@uap-core.de>
parents: 178
diff changeset
4 Copyright 2021 Mike Becker. All rights reserved.
75
33b6843fdf8a adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff changeset
5
33b6843fdf8a adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff changeset
6 Redistribution and use in source and binary forms, with or without
33b6843fdf8a adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff changeset
7 modification, are permitted provided that the following conditions are met:
33b6843fdf8a adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff changeset
8
33b6843fdf8a adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff changeset
9 1. Redistributions of source code must retain the above copyright
33b6843fdf8a adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff changeset
10 notice, this list of conditions and the following disclaimer.
33b6843fdf8a adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff changeset
11
33b6843fdf8a adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff changeset
12 2. Redistributions in binary form must reproduce the above copyright
33b6843fdf8a adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff changeset
13 notice, this list of conditions and the following disclaimer in the
33b6843fdf8a adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff changeset
14 documentation and/or other materials provided with the distribution.
33b6843fdf8a adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff changeset
15
33b6843fdf8a adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff changeset
16 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
33b6843fdf8a adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff changeset
17 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
33b6843fdf8a adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff changeset
18 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
33b6843fdf8a adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff changeset
19 DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
33b6843fdf8a adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff changeset
20 FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
33b6843fdf8a adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff changeset
21 DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
33b6843fdf8a adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff changeset
22 SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
33b6843fdf8a adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff changeset
23 CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
33b6843fdf8a adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff changeset
24 OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
33b6843fdf8a adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff changeset
25 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33b6843fdf8a adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff changeset
26 --%>
33b6843fdf8a adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff changeset
27 <%@page pageEncoding="UTF-8" %>
33b6843fdf8a adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff changeset
28 <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
33b6843fdf8a adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff changeset
29 <%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
33b6843fdf8a adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff changeset
30
86
0a658e53177c improves issue overview and adds progress information
Mike Becker <universe@uap-core.de>
parents: 85
diff changeset
31 <jsp:useBean id="viewmodel" type="de.uapcore.lightpit.viewmodel.IssueEditView" scope="request"/>
75
33b6843fdf8a adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff changeset
32
184
e8eecee6aadf completes kotlin migration
Mike Becker <universe@uap-core.de>
parents: 181
diff changeset
33 <c:set var="issue" scope="page" value="${viewmodel.issue}" />
e8eecee6aadf completes kotlin migration
Mike Becker <universe@uap-core.de>
parents: 181
diff changeset
34 <c:set var="project" scope="page" value="${viewmodel.project}"/>
e8eecee6aadf completes kotlin migration
Mike Becker <universe@uap-core.de>
parents: 181
diff changeset
35 <c:set var="component" scope="page" value="${viewmodel.component}"/>
e8eecee6aadf completes kotlin migration
Mike Becker <universe@uap-core.de>
parents: 181
diff changeset
36 <c:set var="version" scope="page" value="${viewmodel.version}"/>
e8eecee6aadf completes kotlin migration
Mike Becker <universe@uap-core.de>
parents: 181
diff changeset
37
e8eecee6aadf completes kotlin migration
Mike Becker <universe@uap-core.de>
parents: 181
diff changeset
38 <c:set var="issuesHref" value="./projects/${project.node}/issues/${empty version ? '-' : version.node }/${empty component ? '-' : component.node}/"/>
e8eecee6aadf completes kotlin migration
Mike Becker <universe@uap-core.de>
parents: 181
diff changeset
39
e8eecee6aadf completes kotlin migration
Mike Becker <universe@uap-core.de>
parents: 181
diff changeset
40 <form action="${issuesHref}-/commit-issue" method="post">
124
ed2e7aef2a3e adds issue comments
Mike Becker <universe@uap-core.de>
parents: 115
diff changeset
41 <table class="formtable fullwidth">
75
33b6843fdf8a adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff changeset
42 <colgroup>
33b6843fdf8a adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff changeset
43 <col>
124
ed2e7aef2a3e adds issue comments
Mike Becker <universe@uap-core.de>
parents: 115
diff changeset
44 <col style="width: 100%">
75
33b6843fdf8a adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff changeset
45 </colgroup>
33b6843fdf8a adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff changeset
46 <tbody>
113
eba08a3a7eb2 fixes #18 : Remove "Issue ID" from "New Issue" form
Mike Becker <universe@uap-core.de>
parents: 108
diff changeset
47 <c:if test="${viewmodel.issue.id ge 0}">
75
33b6843fdf8a adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff changeset
48 <tr>
108
6657dad897ea adds issue ID to the displayed information
Mike Becker <universe@uap-core.de>
parents: 103
diff changeset
49 <th><fmt:message key="issue.id"/></th>
6657dad897ea adds issue ID to the displayed information
Mike Becker <universe@uap-core.de>
parents: 103
diff changeset
50 <td>${issue.id}</td>
6657dad897ea adds issue ID to the displayed information
Mike Becker <universe@uap-core.de>
parents: 103
diff changeset
51 </tr>
113
eba08a3a7eb2 fixes #18 : Remove "Issue ID" from "New Issue" form
Mike Becker <universe@uap-core.de>
parents: 108
diff changeset
52 </c:if>
108
6657dad897ea adds issue ID to the displayed information
Mike Becker <universe@uap-core.de>
parents: 103
diff changeset
53 <tr>
181
502a10e24b85 renames several resource keys
Mike Becker <universe@uap-core.de>
parents: 180
diff changeset
54 <th><fmt:message key="project"/></th>
76
82f71fb1758a issue and version form now also work if no project is selected in the session
Mike Becker <universe@uap-core.de>
parents: 75
diff changeset
55 <td>
86
0a658e53177c improves issue overview and adds progress information
Mike Becker <universe@uap-core.de>
parents: 85
diff changeset
56 <c:choose>
184
e8eecee6aadf completes kotlin migration
Mike Becker <universe@uap-core.de>
parents: 181
diff changeset
57 <c:when test="${issue.project.id ge 0}">
86
0a658e53177c improves issue overview and adds progress information
Mike Becker <universe@uap-core.de>
parents: 85
diff changeset
58 <c:out value="${issue.project.name}" />
184
e8eecee6aadf completes kotlin migration
Mike Becker <universe@uap-core.de>
parents: 181
diff changeset
59 <input type="hidden" name="project" value="${issue.project.id}" />
86
0a658e53177c improves issue overview and adds progress information
Mike Becker <universe@uap-core.de>
parents: 85
diff changeset
60 </c:when>
0a658e53177c improves issue overview and adds progress information
Mike Becker <universe@uap-core.de>
parents: 85
diff changeset
61 <c:otherwise>
184
e8eecee6aadf completes kotlin migration
Mike Becker <universe@uap-core.de>
parents: 181
diff changeset
62 <select name="project" required>
86
0a658e53177c improves issue overview and adds progress information
Mike Becker <universe@uap-core.de>
parents: 85
diff changeset
63 <c:forEach var="project" items="${viewmodel.projects}">
0a658e53177c improves issue overview and adds progress information
Mike Becker <universe@uap-core.de>
parents: 85
diff changeset
64 <option value="${project.id}">
0a658e53177c improves issue overview and adds progress information
Mike Becker <universe@uap-core.de>
parents: 85
diff changeset
65 <c:out value="${project.name}" />
0a658e53177c improves issue overview and adds progress information
Mike Becker <universe@uap-core.de>
parents: 85
diff changeset
66 </option>
0a658e53177c improves issue overview and adds progress information
Mike Becker <universe@uap-core.de>
parents: 85
diff changeset
67 </c:forEach>
0a658e53177c improves issue overview and adds progress information
Mike Becker <universe@uap-core.de>
parents: 85
diff changeset
68 </select>
0a658e53177c improves issue overview and adds progress information
Mike Becker <universe@uap-core.de>
parents: 85
diff changeset
69 </c:otherwise>
0a658e53177c improves issue overview and adds progress information
Mike Becker <universe@uap-core.de>
parents: 85
diff changeset
70 </c:choose>
76
82f71fb1758a issue and version form now also work if no project is selected in the session
Mike Becker <universe@uap-core.de>
parents: 75
diff changeset
71 </td>
82f71fb1758a issue and version form now also work if no project is selected in the session
Mike Becker <universe@uap-core.de>
parents: 75
diff changeset
72 </tr>
82f71fb1758a issue and version form now also work if no project is selected in the session
Mike Becker <universe@uap-core.de>
parents: 75
diff changeset
73 <tr>
103
3d0d030dffa7 improves styling and readability of issue list
Mike Becker <universe@uap-core.de>
parents: 99
diff changeset
74 <th><fmt:message key="issue.created"/></th>
156
c5d6820d884e fixes #33 - display time tooltip for created/update dates
Mike Becker <universe@uap-core.de>
parents: 146
diff changeset
75 <td>
c5d6820d884e fixes #33 - display time tooltip for created/update dates
Mike Becker <universe@uap-core.de>
parents: 146
diff changeset
76 <c:set var="dateValue" value="${issue.created}"/>
c5d6820d884e fixes #33 - display time tooltip for created/update dates
Mike Becker <universe@uap-core.de>
parents: 146
diff changeset
77 <%@include file="../jspf/date-with-tooltip.jspf"%>
c5d6820d884e fixes #33 - display time tooltip for created/update dates
Mike Becker <universe@uap-core.de>
parents: 146
diff changeset
78 </td>
103
3d0d030dffa7 improves styling and readability of issue list
Mike Becker <universe@uap-core.de>
parents: 99
diff changeset
79 </tr>
3d0d030dffa7 improves styling and readability of issue list
Mike Becker <universe@uap-core.de>
parents: 99
diff changeset
80 <tr>
3d0d030dffa7 improves styling and readability of issue list
Mike Becker <universe@uap-core.de>
parents: 99
diff changeset
81 <th><fmt:message key="issue.updated"/></th>
156
c5d6820d884e fixes #33 - display time tooltip for created/update dates
Mike Becker <universe@uap-core.de>
parents: 146
diff changeset
82 <td>
c5d6820d884e fixes #33 - display time tooltip for created/update dates
Mike Becker <universe@uap-core.de>
parents: 146
diff changeset
83 <c:set var="dateValue" value="${issue.updated}"/>
c5d6820d884e fixes #33 - display time tooltip for created/update dates
Mike Becker <universe@uap-core.de>
parents: 146
diff changeset
84 <%@include file="../jspf/date-with-tooltip.jspf"%>
c5d6820d884e fixes #33 - display time tooltip for created/update dates
Mike Becker <universe@uap-core.de>
parents: 146
diff changeset
85 </td>
103
3d0d030dffa7 improves styling and readability of issue list
Mike Becker <universe@uap-core.de>
parents: 99
diff changeset
86 </tr>
3d0d030dffa7 improves styling and readability of issue list
Mike Becker <universe@uap-core.de>
parents: 99
diff changeset
87 <tr>
181
502a10e24b85 renames several resource keys
Mike Becker <universe@uap-core.de>
parents: 180
diff changeset
88 <th><fmt:message key="component"/></th>
134
f47e82cd6077 completes feature: project components
Mike Becker <universe@uap-core.de>
parents: 131
diff changeset
89 <td>
f47e82cd6077 completes feature: project components
Mike Becker <universe@uap-core.de>
parents: 131
diff changeset
90 <select name="component">
f47e82cd6077 completes feature: project components
Mike Becker <universe@uap-core.de>
parents: 131
diff changeset
91 <option value="-1"><fmt:message key="placeholder.null-component"/></option>
f47e82cd6077 completes feature: project components
Mike Becker <universe@uap-core.de>
parents: 131
diff changeset
92 <c:forEach var="component" items="${viewmodel.components}">
f47e82cd6077 completes feature: project components
Mike Becker <universe@uap-core.de>
parents: 131
diff changeset
93 <option
f47e82cd6077 completes feature: project components
Mike Becker <universe@uap-core.de>
parents: 131
diff changeset
94 <c:if test="${not empty issue.component and component eq issue.component}">selected</c:if>
178
88207b860cba automatically select version/component when creating new issues under active filters
Mike Becker <universe@uap-core.de>
parents: 168
diff changeset
95 <c:if test="${empty issue.component and component.id eq cid}">selected</c:if>
134
f47e82cd6077 completes feature: project components
Mike Becker <universe@uap-core.de>
parents: 131
diff changeset
96 value="${component.id}"><c:out value="${component.name}"/></option>
f47e82cd6077 completes feature: project components
Mike Becker <universe@uap-core.de>
parents: 131
diff changeset
97 </c:forEach>
f47e82cd6077 completes feature: project components
Mike Becker <universe@uap-core.de>
parents: 131
diff changeset
98 </select>
f47e82cd6077 completes feature: project components
Mike Becker <universe@uap-core.de>
parents: 131
diff changeset
99 </td>
f47e82cd6077 completes feature: project components
Mike Becker <universe@uap-core.de>
parents: 131
diff changeset
100 </tr>
f47e82cd6077 completes feature: project components
Mike Becker <universe@uap-core.de>
parents: 131
diff changeset
101 <tr>
82
4ec7f2600c83 removes stupid thead prefix from every resource file
Mike Becker <universe@uap-core.de>
parents: 81
diff changeset
102 <th><fmt:message key="issue.category"/></th>
75
33b6843fdf8a adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff changeset
103 <td>
33b6843fdf8a adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff changeset
104 <select name="category">
86
0a658e53177c improves issue overview and adds progress information
Mike Becker <universe@uap-core.de>
parents: 85
diff changeset
105 <c:forEach var="category" items="${viewmodel.issueCategory}">
75
33b6843fdf8a adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff changeset
106 <option
33b6843fdf8a adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff changeset
107 <c:if test="${category eq issue.category}">selected</c:if>
33b6843fdf8a adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff changeset
108 value="${category}">
33b6843fdf8a adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff changeset
109 <fmt:message key="issue.category.${category}" />
33b6843fdf8a adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff changeset
110 </option>
33b6843fdf8a adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff changeset
111 </c:forEach>
33b6843fdf8a adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff changeset
112 </select>
33b6843fdf8a adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff changeset
113 </td>
33b6843fdf8a adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff changeset
114 </tr>
33b6843fdf8a adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff changeset
115 <tr>
82
4ec7f2600c83 removes stupid thead prefix from every resource file
Mike Becker <universe@uap-core.de>
parents: 81
diff changeset
116 <th><fmt:message key="issue.status"/></th>
75
33b6843fdf8a adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff changeset
117 <td>
33b6843fdf8a adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff changeset
118 <select name="status">
86
0a658e53177c improves issue overview and adds progress information
Mike Becker <universe@uap-core.de>
parents: 85
diff changeset
119 <c:forEach var="status" items="${viewmodel.issueStatus}">
75
33b6843fdf8a adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff changeset
120 <option
33b6843fdf8a adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff changeset
121 <c:if test="${status eq issue.status}">selected</c:if>
33b6843fdf8a adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff changeset
122 value="${status}">
33b6843fdf8a adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff changeset
123 <fmt:message key="issue.status.${status}" />
33b6843fdf8a adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff changeset
124 </option>
33b6843fdf8a adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff changeset
125 </c:forEach>
33b6843fdf8a adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff changeset
126 </select>
33b6843fdf8a adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff changeset
127 </td>
33b6843fdf8a adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff changeset
128 </tr>
33b6843fdf8a adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff changeset
129 <tr>
82
4ec7f2600c83 removes stupid thead prefix from every resource file
Mike Becker <universe@uap-core.de>
parents: 81
diff changeset
130 <th><fmt:message key="issue.subject"/></th>
85
3d16ad54b3dc significantly increases length of subject field
Mike Becker <universe@uap-core.de>
parents: 83
diff changeset
131 <td><input name="subject" type="text" maxlength="200" required value="<c:out value="${issue.subject}"/>" /></td>
75
33b6843fdf8a adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff changeset
132 </tr>
33b6843fdf8a adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff changeset
133 <tr>
82
4ec7f2600c83 removes stupid thead prefix from every resource file
Mike Becker <universe@uap-core.de>
parents: 81
diff changeset
134 <th class="vtop"><fmt:message key="issue.description"/></th>
75
33b6843fdf8a adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff changeset
135 <td>
86
0a658e53177c improves issue overview and adds progress information
Mike Becker <universe@uap-core.de>
parents: 85
diff changeset
136 <textarea name="description" rows="10"><c:out value="${issue.description}"/></textarea>
75
33b6843fdf8a adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff changeset
137 </td>
33b6843fdf8a adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff changeset
138 </tr>
33b6843fdf8a adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff changeset
139 <tr>
82
4ec7f2600c83 removes stupid thead prefix from every resource file
Mike Becker <universe@uap-core.de>
parents: 81
diff changeset
140 <th><fmt:message key="issue.assignee"/></th>
75
33b6843fdf8a adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff changeset
141 <td>
33b6843fdf8a adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff changeset
142 <select name="assignee">
136
7281bdf43c60 automatic assignment of component lead (if available) - fixes #28
Mike Becker <universe@uap-core.de>
parents: 134
diff changeset
143 <option value="-2" title="<fmt:message key="placeholder.auto-assignee.tooltip"/>"><fmt:message key="placeholder.auto-assignee"/></option>
7281bdf43c60 automatic assignment of component lead (if available) - fixes #28
Mike Becker <universe@uap-core.de>
parents: 134
diff changeset
144 <option value="-1"
7281bdf43c60 automatic assignment of component lead (if available) - fixes #28
Mike Becker <universe@uap-core.de>
parents: 134
diff changeset
145 <c:if test="${issue.id ge 0 and empty issue.assignee}">selected</c:if>
7281bdf43c60 automatic assignment of component lead (if available) - fixes #28
Mike Becker <universe@uap-core.de>
parents: 134
diff changeset
146 ><fmt:message key="placeholder.null-assignee"/></option>
86
0a658e53177c improves issue overview and adds progress information
Mike Becker <universe@uap-core.de>
parents: 85
diff changeset
147 <c:forEach var="user" items="${viewmodel.users}">
75
33b6843fdf8a adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff changeset
148 <option
33b6843fdf8a adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff changeset
149 <c:if test="${not empty issue.assignee and user eq issue.assignee}">selected</c:if>
33b6843fdf8a adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff changeset
150 value="${user.id}"><c:out value="${user.displayname}"/></option>
33b6843fdf8a adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff changeset
151 </c:forEach>
33b6843fdf8a adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff changeset
152 </select>
33b6843fdf8a adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff changeset
153 </td>
33b6843fdf8a adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff changeset
154 </tr>
83
24a3596b8f98 adds version selection in issue editor
Mike Becker <universe@uap-core.de>
parents: 82
diff changeset
155 <c:if test="${issue.project.id ge 0}">
75
33b6843fdf8a adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff changeset
156 <tr>
83
24a3596b8f98 adds version selection in issue editor
Mike Becker <universe@uap-core.de>
parents: 82
diff changeset
157 <th class="vtop"><fmt:message key="issue.affected-versions"/></th>
24a3596b8f98 adds version selection in issue editor
Mike Becker <universe@uap-core.de>
parents: 82
diff changeset
158 <td>
24a3596b8f98 adds version selection in issue editor
Mike Becker <universe@uap-core.de>
parents: 82
diff changeset
159 <c:set var="fieldname" value="affected"/>
90
2c74e36752f9 only show relevant versions in issue editor
Mike Becker <universe@uap-core.de>
parents: 88
diff changeset
160 <c:set var="selectionList" value="${viewmodel.versionsRecent}"/>
83
24a3596b8f98 adds version selection in issue editor
Mike Becker <universe@uap-core.de>
parents: 82
diff changeset
161 <c:set var="data" value="${issue.affectedVersions}" />
115
c27638a50c92 proper file extensions for JSP fragments
Mike Becker <universe@uap-core.de>
parents: 113
diff changeset
162 <%@include file="../jspf/version-list.jspf"%>
83
24a3596b8f98 adds version selection in issue editor
Mike Becker <universe@uap-core.de>
parents: 82
diff changeset
163 </td>
75
33b6843fdf8a adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff changeset
164 </tr>
33b6843fdf8a adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff changeset
165 <tr>
83
24a3596b8f98 adds version selection in issue editor
Mike Becker <universe@uap-core.de>
parents: 82
diff changeset
166 <th class="vtop"><fmt:message key="issue.resolved-versions"/></th>
24a3596b8f98 adds version selection in issue editor
Mike Becker <universe@uap-core.de>
parents: 82
diff changeset
167 <td>
24a3596b8f98 adds version selection in issue editor
Mike Becker <universe@uap-core.de>
parents: 82
diff changeset
168 <c:set var="fieldname" value="resolved"/>
90
2c74e36752f9 only show relevant versions in issue editor
Mike Becker <universe@uap-core.de>
parents: 88
diff changeset
169 <c:set var="selectionList" value="${viewmodel.versionsUpcoming}"/>
83
24a3596b8f98 adds version selection in issue editor
Mike Becker <universe@uap-core.de>
parents: 82
diff changeset
170 <c:set var="data" value="${issue.resolvedVersions}" />
115
c27638a50c92 proper file extensions for JSP fragments
Mike Becker <universe@uap-core.de>
parents: 113
diff changeset
171 <%@include file="../jspf/version-list.jspf"%>
83
24a3596b8f98 adds version selection in issue editor
Mike Becker <universe@uap-core.de>
parents: 82
diff changeset
172 </td>
75
33b6843fdf8a adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff changeset
173 </tr>
83
24a3596b8f98 adds version selection in issue editor
Mike Becker <universe@uap-core.de>
parents: 82
diff changeset
174 </c:if>
75
33b6843fdf8a adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff changeset
175 <tr>
82
4ec7f2600c83 removes stupid thead prefix from every resource file
Mike Becker <universe@uap-core.de>
parents: 81
diff changeset
176 <th><fmt:message key="issue.eta"/></th>
75
33b6843fdf8a adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff changeset
177 <td><input name="eta" type="date" value="<fmt:formatDate value="${issue.eta}" pattern="YYYY-MM-dd" />" /> </td>
33b6843fdf8a adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff changeset
178 </tr>
33b6843fdf8a adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff changeset
179 </tbody>
33b6843fdf8a adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff changeset
180 <tfoot>
33b6843fdf8a adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff changeset
181 <tr>
33b6843fdf8a adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff changeset
182 <td colspan="2">
185
5ec9fcfbdf9c re-enables the "create another" feature
Mike Becker <universe@uap-core.de>
parents: 184
diff changeset
183 <input type="checkbox" id="more" name="more" <c:if test="${more}">checked</c:if> />
5ec9fcfbdf9c re-enables the "create another" feature
Mike Becker <universe@uap-core.de>
parents: 184
diff changeset
184 <label for="more"><fmt:message key="button.issue.create.another"/> </label>
75
33b6843fdf8a adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff changeset
185 <input type="hidden" name="id" value="${issue.id}"/>
146
b0e83cab0bde adds issue detail view - fixes #24
Mike Becker <universe@uap-core.de>
parents: 142
diff changeset
186 <c:if test="${issue.id ge 0}">
184
e8eecee6aadf completes kotlin migration
Mike Becker <universe@uap-core.de>
parents: 181
diff changeset
187 <a href="${issuesHref}${issue.id}" class="button">
180
009700915269 merge resource bundles
Mike Becker <universe@uap-core.de>
parents: 178
diff changeset
188 <fmt:message key="button.cancel"/>
75
33b6843fdf8a adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff changeset
189 </a>
146
b0e83cab0bde adds issue detail view - fixes #24
Mike Becker <universe@uap-core.de>
parents: 142
diff changeset
190 </c:if>
b0e83cab0bde adds issue detail view - fixes #24
Mike Becker <universe@uap-core.de>
parents: 142
diff changeset
191 <c:if test="${issue.id lt 0}">
184
e8eecee6aadf completes kotlin migration
Mike Becker <universe@uap-core.de>
parents: 181
diff changeset
192 <a href="${issuesHref}" class="button">
180
009700915269 merge resource bundles
Mike Becker <universe@uap-core.de>
parents: 178
diff changeset
193 <fmt:message key="button.cancel"/>
146
b0e83cab0bde adds issue detail view - fixes #24
Mike Becker <universe@uap-core.de>
parents: 142
diff changeset
194 </a>
b0e83cab0bde adds issue detail view - fixes #24
Mike Becker <universe@uap-core.de>
parents: 142
diff changeset
195 </c:if>
180
009700915269 merge resource bundles
Mike Becker <universe@uap-core.de>
parents: 178
diff changeset
196 <button type="submit"><fmt:message key="button.okay"/></button>
75
33b6843fdf8a adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff changeset
197 </td>
33b6843fdf8a adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff changeset
198 </tr>
33b6843fdf8a adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff changeset
199 </tfoot>
33b6843fdf8a adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff changeset
200 </table>
33b6843fdf8a adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff changeset
201 </form>

mercurial