src/main/webapp/WEB-INF/jsp/project-details.jsp

Fri, 22 May 2020 21:23:57 +0200

author
Mike Becker <universe@uap-core.de>
date
Fri, 22 May 2020 21:23:57 +0200
changeset 75
33b6843fdf8a
parent 74
91d1fc2a3a14
child 78
bb4c52bf3439
permissions
-rw-r--r--

adds the ability to create and edit issues

universe@47 1 <%--
universe@47 2 DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
universe@47 3
universe@47 4 Copyright 2018 Mike Becker. All rights reserved.
universe@47 5
universe@47 6 Redistribution and use in source and binary forms, with or without
universe@47 7 modification, are permitted provided that the following conditions are met:
universe@47 8
universe@47 9 1. Redistributions of source code must retain the above copyright
universe@47 10 notice, this list of conditions and the following disclaimer.
universe@47 11
universe@47 12 2. Redistributions in binary form must reproduce the above copyright
universe@47 13 notice, this list of conditions and the following disclaimer in the
universe@47 14 documentation and/or other materials provided with the distribution.
universe@47 15
universe@47 16 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
universe@47 17 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
universe@47 18 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
universe@47 19 DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
universe@47 20 FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
universe@47 21 DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
universe@47 22 SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
universe@47 23 CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
universe@47 24 OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
universe@47 25 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
universe@47 26 --%>
universe@47 27 <%@page pageEncoding="UTF-8" %>
universe@47 28 <%@page import="de.uapcore.lightpit.Constants" %>
universe@52 29 <%@page import="de.uapcore.lightpit.modules.ProjectsModule" %>
universe@47 30 <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
universe@47 31 <%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
universe@47 32
universe@47 33 <c:set scope="page" var="moduleInfo" value="${requestScope[Constants.REQ_ATTR_MODULE_INFO]}"/>
universe@52 34 <c:set scope="page" var="selectedProject" value="${sessionScope[ProjectsModule.SESSION_ATTR_SELECTED_PROJECT]}"/>
universe@47 35
universe@59 36 <jsp:useBean id="versions" type="java.util.List<de.uapcore.lightpit.entities.Version>" scope="request"/>
universe@70 37 <jsp:useBean id="issues" type="java.util.List<de.uapcore.lightpit.entities.Issue>" scope="request"/>
universe@47 38
universe@47 39 <div id="tool-area">
universe@72 40 <a href="./${moduleInfo.modulePath}/versions/edit" class="button"><fmt:message key="button.version.create"/></a>
universe@72 41 <a href="./${moduleInfo.modulePath}/issues/edit" class="button"><fmt:message key="button.issue.create"/></a>
universe@47 42 </div>
universe@47 43
universe@59 44 <c:if test="${not empty versions}">
universe@72 45 <table id="version-list" class="datatable medskip">
universe@72 46 <thead>
universe@72 47 <tr>
universe@72 48 <th></th>
universe@72 49 <th><fmt:message key="thead.version.name"/></th>
universe@72 50 <th><fmt:message key="thead.version.status"/></th>
universe@47 51 </tr>
universe@72 52 </thead>
universe@72 53 <tbody>
universe@72 54 <c:forEach var="version" items="${versions}">
universe@72 55 <tr class="nowrap">
universe@72 56 <td style="width: 2em;"><a href="./${moduleInfo.modulePath}/versions/edit?id=${version.id}">&#x270e;</a>
universe@72 57 </td>
universe@72 58 <td><c:out value="${version.name}"/></td>
universe@72 59 <td><fmt:message key="version.status.${version.status}"/></td>
universe@72 60 </tr>
universe@72 61 </c:forEach>
universe@72 62 </tbody>
universe@72 63 </table>
universe@47 64 </c:if>
universe@70 65
universe@70 66 <table id="issue-list" class="datatable medskip">
universe@70 67 <thead>
universe@70 68 <tr>
universe@72 69 <th><fmt:message key="thead.issue.subject"/></th>
universe@75 70 <th><fmt:message key="thead.issue.assignee"/></th>
universe@72 71 <th><fmt:message key="thead.issue.category"/></th>
universe@72 72 <th><fmt:message key="thead.issue.status"/></th>
universe@72 73 <th><fmt:message key="thead.issue.created"/></th>
universe@72 74 <th><fmt:message key="thead.issue.updated"/></th>
universe@72 75 <th><fmt:message key="thead.issue.eta"/></th>
universe@70 76 <!-- TODO: add other information -->
universe@70 77 </tr>
universe@70 78 </thead>
universe@75 79 <tbody>
universe@75 80 <c:forEach var="issue" items="${issues}">
universe@75 81 <tr>
universe@75 82 <td>
universe@75 83 <a href="./projects/issues/edit?id=${issue.id}">
universe@75 84 <c:out value="${issue.subject}" />
universe@75 85 </a>
universe@75 86 </td>
universe@75 87 <td>
universe@75 88 <c:if test="${not empty issue.assignee}">
universe@75 89 <c:out value="${issue.assignee.shortDisplayname}" />
universe@75 90 </c:if>
universe@75 91 <c:if test="${empty issue.assignee}">
universe@75 92 <fmt:message key="placeholder.null-assignee" />
universe@75 93 </c:if>
universe@75 94 </td>
universe@75 95 <td>
universe@75 96 <fmt:message key="issue.category.${issue.category}" />
universe@75 97 </td>
universe@75 98 <td>
universe@75 99 <fmt:message key="issue.status.${issue.status}" />
universe@75 100 </td>
universe@75 101 <td>
universe@75 102 <fmt:formatDate value="${issue.created}" type="BOTH"/>
universe@75 103 </td>
universe@75 104 <td>
universe@75 105 <fmt:formatDate value="${issue.updated}" type="BOTH"/>
universe@75 106 </td>
universe@75 107 <td>
universe@75 108 <fmt:formatDate value="${issue.eta}" />
universe@75 109 </td>
universe@75 110 </tr>
universe@75 111 </c:forEach>
universe@75 112 </tbody>
universe@70 113 </table>

mercurial