Thu, 22 Oct 2020 13:03:26 +0200
adds custom node names - fixes #27
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 | |
33b6843fdf8a
adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
4 | Copyright 2018 Mike Becker. All rights reserved. |
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"/> |
0a658e53177c
improves issue overview and adds progress information
Mike Becker <universe@uap-core.de>
parents:
85
diff
changeset
|
32 | <c:set var="issue" scope="page" value="${viewmodel.issue}" /> |
75
33b6843fdf8a
adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
33 | |
131
67df332e3146
changes request mapping to contain project and version ID as path parameters (this removes the session storage)
Mike Becker <universe@uap-core.de>
parents:
125
diff
changeset
|
34 | <%-- TODO: change to ./issues/commit --%> |
67df332e3146
changes request mapping to contain project and version ID as path parameters (this removes the session storage)
Mike Becker <universe@uap-core.de>
parents:
125
diff
changeset
|
35 | <form action="./projects/commit-issue" method="post"> |
124 | 36 | <table class="formtable fullwidth"> |
75
33b6843fdf8a
adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
37 | <colgroup> |
33b6843fdf8a
adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
38 | <col> |
124 | 39 | <col style="width: 100%"> |
75
33b6843fdf8a
adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
40 | </colgroup> |
33b6843fdf8a
adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
41 | <tbody> |
113
eba08a3a7eb2
fixes #18 : Remove "Issue ID" from "New Issue" form
Mike Becker <universe@uap-core.de>
parents:
108
diff
changeset
|
42 | <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
|
43 | <tr> |
108
6657dad897ea
adds issue ID to the displayed information
Mike Becker <universe@uap-core.de>
parents:
103
diff
changeset
|
44 | <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
|
45 | <td>${issue.id}</td> |
6657dad897ea
adds issue ID to the displayed information
Mike Becker <universe@uap-core.de>
parents:
103
diff
changeset
|
46 | </tr> |
113
eba08a3a7eb2
fixes #18 : Remove "Issue ID" from "New Issue" form
Mike Becker <universe@uap-core.de>
parents:
108
diff
changeset
|
47 | </c:if> |
108
6657dad897ea
adds issue ID to the displayed information
Mike Becker <universe@uap-core.de>
parents:
103
diff
changeset
|
48 | <tr> |
82
4ec7f2600c83
removes stupid thead prefix from every resource file
Mike Becker <universe@uap-core.de>
parents:
81
diff
changeset
|
49 | <th><fmt:message key="issue.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
|
50 | <td> |
86
0a658e53177c
improves issue overview and adds progress information
Mike Becker <universe@uap-core.de>
parents:
85
diff
changeset
|
51 | <c:choose> |
0a658e53177c
improves issue overview and adds progress information
Mike Becker <universe@uap-core.de>
parents:
85
diff
changeset
|
52 | <c:when test="${not empty issue.project}"> |
0a658e53177c
improves issue overview and adds progress information
Mike Becker <universe@uap-core.de>
parents:
85
diff
changeset
|
53 | <c:out value="${issue.project.name}" /> |
0a658e53177c
improves issue overview and adds progress information
Mike Becker <universe@uap-core.de>
parents:
85
diff
changeset
|
54 | <input type="hidden" name="pid" value="${issue.project.id}" /> |
0a658e53177c
improves issue overview and adds progress information
Mike Becker <universe@uap-core.de>
parents:
85
diff
changeset
|
55 | </c:when> |
0a658e53177c
improves issue overview and adds progress information
Mike Becker <universe@uap-core.de>
parents:
85
diff
changeset
|
56 | <c:otherwise> |
0a658e53177c
improves issue overview and adds progress information
Mike Becker <universe@uap-core.de>
parents:
85
diff
changeset
|
57 | <select name="pid" required> |
0a658e53177c
improves issue overview and adds progress information
Mike Becker <universe@uap-core.de>
parents:
85
diff
changeset
|
58 | <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
|
59 | <option value="${project.id}"> |
0a658e53177c
improves issue overview and adds progress information
Mike Becker <universe@uap-core.de>
parents:
85
diff
changeset
|
60 | <c:out value="${project.name}" /> |
0a658e53177c
improves issue overview and adds progress information
Mike Becker <universe@uap-core.de>
parents:
85
diff
changeset
|
61 | </option> |
0a658e53177c
improves issue overview and adds progress information
Mike Becker <universe@uap-core.de>
parents:
85
diff
changeset
|
62 | </c:forEach> |
0a658e53177c
improves issue overview and adds progress information
Mike Becker <universe@uap-core.de>
parents:
85
diff
changeset
|
63 | </select> |
0a658e53177c
improves issue overview and adds progress information
Mike Becker <universe@uap-core.de>
parents:
85
diff
changeset
|
64 | </c:otherwise> |
0a658e53177c
improves issue overview and adds progress information
Mike Becker <universe@uap-core.de>
parents:
85
diff
changeset
|
65 | </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
|
66 | </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
|
67 | </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
|
68 | <tr> |
103
3d0d030dffa7
improves styling and readability of issue list
Mike Becker <universe@uap-core.de>
parents:
99
diff
changeset
|
69 | <th><fmt:message key="issue.created"/></th> |
3d0d030dffa7
improves styling and readability of issue list
Mike Becker <universe@uap-core.de>
parents:
99
diff
changeset
|
70 | <td><fmt:formatDate value="${issue.created}" /></td> |
3d0d030dffa7
improves styling and readability of issue list
Mike Becker <universe@uap-core.de>
parents:
99
diff
changeset
|
71 | </tr> |
3d0d030dffa7
improves styling and readability of issue list
Mike Becker <universe@uap-core.de>
parents:
99
diff
changeset
|
72 | <tr> |
3d0d030dffa7
improves styling and readability of issue list
Mike Becker <universe@uap-core.de>
parents:
99
diff
changeset
|
73 | <th><fmt:message key="issue.updated"/></th> |
3d0d030dffa7
improves styling and readability of issue list
Mike Becker <universe@uap-core.de>
parents:
99
diff
changeset
|
74 | <td><fmt:formatDate value="${issue.updated}" /></td> |
3d0d030dffa7
improves styling and readability of issue list
Mike Becker <universe@uap-core.de>
parents:
99
diff
changeset
|
75 | </tr> |
3d0d030dffa7
improves styling and readability of issue list
Mike Becker <universe@uap-core.de>
parents:
99
diff
changeset
|
76 | <tr> |
134
f47e82cd6077
completes feature: project components
Mike Becker <universe@uap-core.de>
parents:
131
diff
changeset
|
77 | <th><fmt:message key="issue.component"/></th> |
f47e82cd6077
completes feature: project components
Mike Becker <universe@uap-core.de>
parents:
131
diff
changeset
|
78 | <td> |
f47e82cd6077
completes feature: project components
Mike Becker <universe@uap-core.de>
parents:
131
diff
changeset
|
79 | <select name="component"> |
f47e82cd6077
completes feature: project components
Mike Becker <universe@uap-core.de>
parents:
131
diff
changeset
|
80 | <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
|
81 | <c:forEach var="component" items="${viewmodel.components}"> |
f47e82cd6077
completes feature: project components
Mike Becker <universe@uap-core.de>
parents:
131
diff
changeset
|
82 | <option |
f47e82cd6077
completes feature: project components
Mike Becker <universe@uap-core.de>
parents:
131
diff
changeset
|
83 | <c:if test="${not empty issue.component and component eq issue.component}">selected</c:if> |
f47e82cd6077
completes feature: project components
Mike Becker <universe@uap-core.de>
parents:
131
diff
changeset
|
84 | value="${component.id}"><c:out value="${component.name}"/></option> |
f47e82cd6077
completes feature: project components
Mike Becker <universe@uap-core.de>
parents:
131
diff
changeset
|
85 | </c:forEach> |
f47e82cd6077
completes feature: project components
Mike Becker <universe@uap-core.de>
parents:
131
diff
changeset
|
86 | </select> |
f47e82cd6077
completes feature: project components
Mike Becker <universe@uap-core.de>
parents:
131
diff
changeset
|
87 | </td> |
f47e82cd6077
completes feature: project components
Mike Becker <universe@uap-core.de>
parents:
131
diff
changeset
|
88 | </tr> |
f47e82cd6077
completes feature: project components
Mike Becker <universe@uap-core.de>
parents:
131
diff
changeset
|
89 | <tr> |
82
4ec7f2600c83
removes stupid thead prefix from every resource file
Mike Becker <universe@uap-core.de>
parents:
81
diff
changeset
|
90 | <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
|
91 | <td> |
33b6843fdf8a
adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
92 | <select name="category"> |
86
0a658e53177c
improves issue overview and adds progress information
Mike Becker <universe@uap-core.de>
parents:
85
diff
changeset
|
93 | <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
|
94 | <option |
33b6843fdf8a
adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
95 | <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
|
96 | value="${category}"> |
33b6843fdf8a
adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
97 | <fmt:message key="issue.category.${category}" /> |
33b6843fdf8a
adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
98 | </option> |
33b6843fdf8a
adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
99 | </c:forEach> |
33b6843fdf8a
adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
100 | </select> |
33b6843fdf8a
adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
101 | </td> |
33b6843fdf8a
adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
102 | </tr> |
33b6843fdf8a
adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
103 | <tr> |
82
4ec7f2600c83
removes stupid thead prefix from every resource file
Mike Becker <universe@uap-core.de>
parents:
81
diff
changeset
|
104 | <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
|
105 | <td> |
33b6843fdf8a
adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
106 | <select name="status"> |
86
0a658e53177c
improves issue overview and adds progress information
Mike Becker <universe@uap-core.de>
parents:
85
diff
changeset
|
107 | <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
|
108 | <option |
33b6843fdf8a
adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
109 | <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
|
110 | value="${status}"> |
33b6843fdf8a
adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
111 | <fmt:message key="issue.status.${status}" /> |
33b6843fdf8a
adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
112 | </option> |
33b6843fdf8a
adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
113 | </c:forEach> |
33b6843fdf8a
adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
114 | </select> |
33b6843fdf8a
adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
115 | </td> |
33b6843fdf8a
adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
116 | </tr> |
33b6843fdf8a
adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
117 | <tr> |
82
4ec7f2600c83
removes stupid thead prefix from every resource file
Mike Becker <universe@uap-core.de>
parents:
81
diff
changeset
|
118 | <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
|
119 | <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
|
120 | </tr> |
33b6843fdf8a
adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
121 | <tr> |
82
4ec7f2600c83
removes stupid thead prefix from every resource file
Mike Becker <universe@uap-core.de>
parents:
81
diff
changeset
|
122 | <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
|
123 | <td> |
86
0a658e53177c
improves issue overview and adds progress information
Mike Becker <universe@uap-core.de>
parents:
85
diff
changeset
|
124 | <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
|
125 | </td> |
33b6843fdf8a
adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
126 | </tr> |
33b6843fdf8a
adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
127 | <tr> |
82
4ec7f2600c83
removes stupid thead prefix from every resource file
Mike Becker <universe@uap-core.de>
parents:
81
diff
changeset
|
128 | <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
|
129 | <td> |
33b6843fdf8a
adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
130 | <select name="assignee"> |
136
7281bdf43c60
automatic assignment of component lead (if available) - fixes #28
Mike Becker <universe@uap-core.de>
parents:
134
diff
changeset
|
131 | <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
|
132 | <option value="-1" |
7281bdf43c60
automatic assignment of component lead (if available) - fixes #28
Mike Becker <universe@uap-core.de>
parents:
134
diff
changeset
|
133 | <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
|
134 | ><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
|
135 | <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
|
136 | <option |
33b6843fdf8a
adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
137 | <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
|
138 | 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
|
139 | </c:forEach> |
33b6843fdf8a
adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
140 | </select> |
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 | </tr> |
83
24a3596b8f98
adds version selection in issue editor
Mike Becker <universe@uap-core.de>
parents:
82
diff
changeset
|
143 | <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
|
144 | <tr> |
83
24a3596b8f98
adds version selection in issue editor
Mike Becker <universe@uap-core.de>
parents:
82
diff
changeset
|
145 | <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
|
146 | <td> |
24a3596b8f98
adds version selection in issue editor
Mike Becker <universe@uap-core.de>
parents:
82
diff
changeset
|
147 | <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
|
148 | <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
|
149 | <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
|
150 | <%@include file="../jspf/version-list.jspf"%> |
83
24a3596b8f98
adds version selection in issue editor
Mike Becker <universe@uap-core.de>
parents:
82
diff
changeset
|
151 | </td> |
75
33b6843fdf8a
adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
152 | </tr> |
33b6843fdf8a
adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
153 | <tr> |
83
24a3596b8f98
adds version selection in issue editor
Mike Becker <universe@uap-core.de>
parents:
82
diff
changeset
|
154 | <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
|
155 | <td> |
24a3596b8f98
adds version selection in issue editor
Mike Becker <universe@uap-core.de>
parents:
82
diff
changeset
|
156 | <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
|
157 | <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
|
158 | <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
|
159 | <%@include file="../jspf/version-list.jspf"%> |
83
24a3596b8f98
adds version selection in issue editor
Mike Becker <universe@uap-core.de>
parents:
82
diff
changeset
|
160 | </td> |
75
33b6843fdf8a
adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
161 | </tr> |
83
24a3596b8f98
adds version selection in issue editor
Mike Becker <universe@uap-core.de>
parents:
82
diff
changeset
|
162 | </c:if> |
75
33b6843fdf8a
adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
163 | <tr> |
82
4ec7f2600c83
removes stupid thead prefix from every resource file
Mike Becker <universe@uap-core.de>
parents:
81
diff
changeset
|
164 | <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
|
165 | <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
|
166 | </tr> |
33b6843fdf8a
adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
167 | </tbody> |
33b6843fdf8a
adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
168 | <tfoot> |
33b6843fdf8a
adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
169 | <tr> |
33b6843fdf8a
adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
170 | <td colspan="2"> |
33b6843fdf8a
adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
171 | <input type="hidden" name="id" value="${issue.id}"/> |
131
67df332e3146
changes request mapping to contain project and version ID as path parameters (this removes the session storage)
Mike Becker <universe@uap-core.de>
parents:
125
diff
changeset
|
172 | <%-- TODO: fix #14 --%> |
134
f47e82cd6077
completes feature: project components
Mike Becker <universe@uap-core.de>
parents:
131
diff
changeset
|
173 | <a href="./projects/${issue.project.node}/versions/" class="button"> |
75
33b6843fdf8a
adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
174 | <fmt:message bundle="${lightpit_bundle}" key="button.cancel"/> |
33b6843fdf8a
adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
175 | </a> |
33b6843fdf8a
adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
176 | <button type="submit"><fmt:message bundle="${lightpit_bundle}" key="button.okay"/></button> |
33b6843fdf8a
adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
177 | </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 | </tfoot> |
33b6843fdf8a
adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
180 | </table> |
33b6843fdf8a
adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
181 | </form> |
124 | 182 | <hr class="comments-separator"/> |
183 | <h2><fmt:message key="issue.comments"/></h2> | |
184 | <c:if test="${viewmodel.issue.id ge 0}"> | |
131
67df332e3146
changes request mapping to contain project and version ID as path parameters (this removes the session storage)
Mike Becker <universe@uap-core.de>
parents:
125
diff
changeset
|
185 | <form id="comment-form" action="./projects/commit-issue-comment" method="post"> |
124 | 186 | <table class="formtable fullwidth"> |
187 | <tbody> | |
188 | <tr> | |
125
decc4c3854a1
adds missing required attribute to comment textfield
Mike Becker <universe@uap-core.de>
parents:
124
diff
changeset
|
189 | <td><textarea rows="5" name="comment" required></textarea></td> |
124 | 190 | </tr> |
191 | </tbody> | |
192 | <tfoot> | |
193 | <tr> | |
194 | <td> | |
195 | <input type="hidden" name="issueid" value="${issue.id}"/> | |
196 | <button type="submit"><fmt:message key="button.comment"/></button> | |
197 | </td> | |
198 | </tr> | |
199 | </tfoot> | |
200 | </table> | |
201 | </form> | |
202 | <c:forEach var="comment" items="${viewmodel.comments}"> | |
203 | <div class="comment"> | |
204 | <div class="caption"> | |
205 | <c:if test="${not empty comment.author}"> | |
206 | <c:out value="${comment.author.displayname}"/> | |
207 | </c:if> | |
208 | <c:if test="${empty comment.author}"> | |
209 | <fmt:message key="issue.comments.anonauthor"/> | |
210 | </c:if> | |
211 | </div> | |
212 | <div class="smalltext"> | |
213 | <fmt:formatDate type="BOTH" value="${comment.created}" /> | |
214 | <c:if test="${comment.updateCount gt 0}"> | |
215 | <!-- TODO: update count --> | |
216 | </c:if> | |
217 | </div> | |
218 | <div class="medskip"> | |
219 | <c:out value="${comment.comment}"/> | |
220 | </div> | |
221 | </div> | |
222 | </c:forEach> | |
223 | </c:if> | |
224 |