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

changeset 83
24a3596b8f98
parent 82
4ec7f2600c83
child 85
3d16ad54b3dc
equal deleted inserted replaced
82:4ec7f2600c83 83:24a3596b8f98
27 <%@page pageEncoding="UTF-8" %> 27 <%@page pageEncoding="UTF-8" %>
28 <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> 28 <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
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="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" />
32 <jsp:useBean id="versions" type="java.util.List<de.uapcore.lightpit.entities.Version>" scope="request" />
32 <jsp:useBean id="issue" type="de.uapcore.lightpit.entities.Issue" scope="request"/> 33 <jsp:useBean id="issue" type="de.uapcore.lightpit.entities.Issue" scope="request"/>
33 <jsp:useBean id="issueStatusEnum" type="de.uapcore.lightpit.entities.IssueStatus[]" scope="request"/> 34 <jsp:useBean id="issueStatusEnum" type="de.uapcore.lightpit.entities.IssueStatus[]" scope="request"/>
34 <jsp:useBean id="issueCategoryEnum" type="de.uapcore.lightpit.entities.IssueCategory[]" scope="request"/> 35 <jsp:useBean id="issueCategoryEnum" type="de.uapcore.lightpit.entities.IssueCategory[]" scope="request"/>
35 <jsp:useBean id="users" type="java.util.List<de.uapcore.lightpit.entities.User>" scope="request"/> 36 <jsp:useBean id="users" type="java.util.List<de.uapcore.lightpit.entities.User>" scope="request"/>
36 37
42 </colgroup> 43 </colgroup>
43 <tbody> 44 <tbody>
44 <tr> 45 <tr>
45 <th><fmt:message key="issue.project"/></th> 46 <th><fmt:message key="issue.project"/></th>
46 <td> 47 <td>
48 <c:if test="${issue.project.id ge 0}">
49 <c:out value="${issue.project.name}" />
50 <input type="hidden" name="pid" value="${issue.project.id}" />
51 </c:if>
52 <c:if test="${empty issue.project or issue.project.id lt 0}">
47 <select name="pid" required> 53 <select name="pid" required>
48 <c:forEach var="project" items="${projects}"> 54 <c:forEach var="project" items="${projects}">
49 <option value="${project.id}" <c:if test="${project eq issue.project}">selected</c:if> > 55 <option value="${project.id}">
50 <c:out value="${project.name}" /> 56 <c:out value="${project.name}" />
51 </option> 57 </option>
52 </c:forEach> 58 </c:forEach>
53 </select> 59 </select>
60 </c:if>
54 </td> 61 </td>
55 </tr> 62 </tr>
56 <tr> 63 <tr>
57 <th><fmt:message key="issue.category"/></th> 64 <th><fmt:message key="issue.category"/></th>
58 <td> 65 <td>
102 value="${user.id}"><c:out value="${user.displayname}"/></option> 109 value="${user.id}"><c:out value="${user.displayname}"/></option>
103 </c:forEach> 110 </c:forEach>
104 </select> 111 </select>
105 </td> 112 </td>
106 </tr> 113 </tr>
114 <c:if test="${issue.project.id ge 0}">
107 <tr> 115 <tr>
108 <th> 116 <th class="vtop"><fmt:message key="issue.affected-versions"/></th>
109 <c:choose> 117 <td>
110 <c:when test="${issue.affectedVersions.size() gt 1}"> 118 <c:set var="fieldname" value="affected"/>
111 <fmt:message key="issue.affected-versions"/> 119 <c:set var="data" value="${issue.affectedVersions}" />
112 </c:when> 120 <%@include file="../jspf/version-list.jsp"%>
113 <c:otherwise> 121 </td>
114 <fmt:message key="issue.affected-version"/>
115 </c:otherwise>
116 </c:choose>
117 </th>
118 <td>TODO</td>
119 </tr> 122 </tr>
120 <tr> 123 <tr>
121 <th> 124 <th class="vtop"><fmt:message key="issue.scheduled-versions"/></th>
122 <c:choose> 125 <td>
123 <c:when test="${issue.scheduledVersions.size() gt 1}"> 126 <c:set var="fieldname" value="scheduled"/>
124 <fmt:message key="issue.scheduled-versions"/> 127 <c:set var="data" value="${issue.scheduledVersions}" />
125 </c:when> 128 <%@include file="../jspf/version-list.jsp"%>
126 <c:otherwise> 129 </td>
127 <fmt:message key="issue.scheduled-version"/>
128 </c:otherwise>
129 </c:choose>
130 </th>
131 <td>TODO</td>
132 </tr> 130 </tr>
133 <tr> 131 <tr>
134 <th> 132 <th class="vtop"><fmt:message key="issue.resolved-versions"/></th>
135 <c:choose> 133 <td>
136 <c:when test="${issue.resolvedVersions.size() gt 1}"> 134 <c:set var="fieldname" value="resolved"/>
137 <fmt:message key="issue.resolved-versions"/> 135 <c:set var="data" value="${issue.resolvedVersions}" />
138 </c:when> 136 <%@include file="../jspf/version-list.jsp"%>
139 <c:otherwise> 137 </td>
140 <fmt:message key="issue.resolved-version"/>
141 </c:otherwise>
142 </c:choose>
143 </th>
144 <td>TODO</td>
145 </tr> 138 </tr>
139 </c:if>
146 <tr> 140 <tr>
147 <th><fmt:message key="issue.eta"/></th> 141 <th><fmt:message key="issue.eta"/></th>
148 <td><input name="eta" type="date" value="<fmt:formatDate value="${issue.eta}" pattern="YYYY-MM-dd" />" /> </td> 142 <td><input name="eta" type="date" value="<fmt:formatDate value="${issue.eta}" pattern="YYYY-MM-dd" />" /> </td>
149 </tr> 143 </tr>
150 <tr> 144 <tr>

mercurial