23 CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
23 CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
24 OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
24 OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
25 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
25 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
26 --%> |
26 --%> |
27 <%@page pageEncoding="UTF-8" %> |
27 <%@page pageEncoding="UTF-8" %> |
28 <%@page import="de.uapcore.lightpit.Constants" %> |
|
29 <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> |
28 <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> |
30 <%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> |
29 <%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> |
31 |
|
32 <c:set scope="page" var="moduleInfo" value="${requestScope[Constants.REQ_ATTR_MODULE_INFO]}"/> |
|
33 |
30 |
34 <jsp:useBean id="projects" type="java.util.List<de.uapcore.lightpit.entities.Project>" scope="request" /> |
31 <jsp:useBean id="projects" type="java.util.List<de.uapcore.lightpit.entities.Project>" scope="request" /> |
35 <jsp:useBean id="issue" type="de.uapcore.lightpit.entities.Issue" scope="request"/> |
32 <jsp:useBean id="issue" type="de.uapcore.lightpit.entities.Issue" scope="request"/> |
36 <jsp:useBean id="issueStatusEnum" type="de.uapcore.lightpit.entities.IssueStatus[]" scope="request"/> |
33 <jsp:useBean id="issueStatusEnum" type="de.uapcore.lightpit.entities.IssueStatus[]" scope="request"/> |
37 <jsp:useBean id="issueCategoryEnum" type="de.uapcore.lightpit.entities.IssueCategory[]" scope="request"/> |
34 <jsp:useBean id="issueCategoryEnum" type="de.uapcore.lightpit.entities.IssueCategory[]" scope="request"/> |
38 <jsp:useBean id="users" type="java.util.List<de.uapcore.lightpit.entities.User>" scope="request"/> |
35 <jsp:useBean id="users" type="java.util.List<de.uapcore.lightpit.entities.User>" scope="request"/> |
39 |
36 |
40 <form action="./${moduleInfo.modulePath}/issues/commit" method="post"> |
37 <form action="./projects/issues/commit" method="post"> |
41 <table class="formtable"> |
38 <table class="formtable"> |
42 <colgroup> |
39 <colgroup> |
43 <col> |
40 <col> |
44 <col style="width: 75ch"> |
41 <col style="width: 75ch"> |
45 </colgroup> |
42 </colgroup> |
163 <tr> |
160 <tr> |
164 <td colspan="2"> |
161 <td colspan="2"> |
165 <input type="hidden" name="id" value="${issue.id}"/> |
162 <input type="hidden" name="id" value="${issue.id}"/> |
166 <c:choose> |
163 <c:choose> |
167 <c:when test="${not empty issue.project and issue.project.id ge 0}"> |
164 <c:when test="${not empty issue.project and issue.project.id ge 0}"> |
168 <c:set var="cancelUrl">./${moduleInfo.modulePath}/view?pid=${issue.project.id}</c:set> |
165 <c:set var="cancelUrl">./projects/view?pid=${issue.project.id}</c:set> |
169 </c:when> |
166 </c:when> |
170 <c:otherwise> |
167 <c:otherwise> |
171 <c:set var="cancelUrl">./${moduleInfo.modulePath}/</c:set> |
168 <c:set var="cancelUrl">./projects/</c:set> |
172 </c:otherwise> |
169 </c:otherwise> |
173 </c:choose> |
170 </c:choose> |
174 <a href="${cancelUrl}" class="button"> |
171 <a href="${cancelUrl}" class="button"> |
175 <fmt:message bundle="${lightpit_bundle}" key="button.cancel"/> |
172 <fmt:message bundle="${lightpit_bundle}" key="button.cancel"/> |
176 </a> |
173 </a> |