| 29 <%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> |
29 <%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> |
| 30 |
30 |
| 31 <jsp:useBean id="viewmodel" type="de.uapcore.lightpit.viewmodel.IssueEditView" scope="request"/> |
31 <jsp:useBean id="viewmodel" type="de.uapcore.lightpit.viewmodel.IssueEditView" scope="request"/> |
| 32 <c:set var="issue" scope="page" value="${viewmodel.issue}" /> |
32 <c:set var="issue" scope="page" value="${viewmodel.issue}" /> |
| 33 |
33 |
| 34 <form action="./projects/issues/commit" method="post"> |
34 <%-- TODO: change to ./issues/commit --%> |
| |
35 <form action="./projects/commit-issue" method="post"> |
| 35 <table class="formtable fullwidth"> |
36 <table class="formtable fullwidth"> |
| 36 <colgroup> |
37 <colgroup> |
| 37 <col> |
38 <col> |
| 38 <col style="width: 100%"> |
39 <col style="width: 100%"> |
| 39 </colgroup> |
40 </colgroup> |
| 150 </tbody> |
151 </tbody> |
| 151 <tfoot> |
152 <tfoot> |
| 152 <tr> |
153 <tr> |
| 153 <td colspan="2"> |
154 <td colspan="2"> |
| 154 <input type="hidden" name="id" value="${issue.id}"/> |
155 <input type="hidden" name="id" value="${issue.id}"/> |
| 155 <c:choose> |
156 <%-- TODO: fix #14 --%> |
| 156 <c:when test="${not empty issue.project}"> |
157 <a href="./projects/${issue.project.id}/versions/" class="button"> |
| 157 <c:set var="cancelUrl">./projects/view?pid=${issue.project.id}</c:set> |
|
| 158 </c:when> |
|
| 159 <c:otherwise> |
|
| 160 <c:set var="cancelUrl">./projects/</c:set> |
|
| 161 </c:otherwise> |
|
| 162 </c:choose> |
|
| 163 <a href="${cancelUrl}" class="button"> |
|
| 164 <fmt:message bundle="${lightpit_bundle}" key="button.cancel"/> |
158 <fmt:message bundle="${lightpit_bundle}" key="button.cancel"/> |
| 165 </a> |
159 </a> |
| 166 <button type="submit"><fmt:message bundle="${lightpit_bundle}" key="button.okay"/></button> |
160 <button type="submit"><fmt:message bundle="${lightpit_bundle}" key="button.okay"/></button> |
| 167 </td> |
161 </td> |
| 168 </tr> |
162 </tr> |
| 170 </table> |
164 </table> |
| 171 </form> |
165 </form> |
| 172 <hr class="comments-separator"/> |
166 <hr class="comments-separator"/> |
| 173 <h2><fmt:message key="issue.comments"/></h2> |
167 <h2><fmt:message key="issue.comments"/></h2> |
| 174 <c:if test="${viewmodel.issue.id ge 0}"> |
168 <c:if test="${viewmodel.issue.id ge 0}"> |
| 175 <form id="comment-form" action="./projects/issues/comment" method="post"> |
169 <form id="comment-form" action="./projects/commit-issue-comment" method="post"> |
| 176 <table class="formtable fullwidth"> |
170 <table class="formtable fullwidth"> |
| 177 <tbody> |
171 <tbody> |
| 178 <tr> |
172 <tr> |
| 179 <td><textarea rows="5" name="comment" required></textarea></td> |
173 <td><textarea rows="5" name="comment" required></textarea></td> |
| 180 </tr> |
174 </tr> |