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

changeset 212
c50da26a6d31
parent 194
2b3b7d0a885e
child 214
69647ddb57f2
equal deleted inserted replaced
211:8066895cc57e 212:c50da26a6d31
36 <c:set var="version" scope="page" value="${viewmodel.version}"/> 36 <c:set var="version" scope="page" value="${viewmodel.version}"/>
37 37
38 <c:set var="issuesHref" value="./projects/${project.node}/issues/${empty version ? '-' : version.node }/${empty component ? '-' : component.node}/"/> 38 <c:set var="issuesHref" value="./projects/${project.node}/issues/${empty version ? '-' : version.node }/${empty component ? '-' : component.node}/"/>
39 39
40 <form action="${issuesHref}-/commit" method="post"> 40 <form action="${issuesHref}-/commit" method="post">
41 <input type="hidden" name="project" value="${issue.project.id}" />
41 <table class="formtable fullwidth"> 42 <table class="formtable fullwidth">
42 <colgroup> 43 <colgroup>
43 <col> 44 <col>
44 <col style="width: 100%"> 45 <col style="width: 100%">
45 </colgroup> 46 </colgroup>
48 <tr> 49 <tr>
49 <th><fmt:message key="issue.id"/></th> 50 <th><fmt:message key="issue.id"/></th>
50 <td>${issue.id}</td> 51 <td>${issue.id}</td>
51 </tr> 52 </tr>
52 </c:if> 53 </c:if>
53 <tr>
54 <th><fmt:message key="project"/></th>
55 <td>
56 <c:choose>
57 <c:when test="${issue.project.id ge 0}">
58 <c:out value="${issue.project.name}" />
59 <input type="hidden" name="project" value="${issue.project.id}" />
60 </c:when>
61 <c:otherwise>
62 <select name="project" required>
63 <c:forEach var="project" items="${viewmodel.projects}">
64 <option value="${project.id}">
65 <c:out value="${project.name}" />
66 </option>
67 </c:forEach>
68 </select>
69 </c:otherwise>
70 </c:choose>
71 </td>
72 </tr>
73 <tr>
74 <th><fmt:message key="issue.created"/></th>
75 <td>
76 <c:set var="dateValue" value="${issue.created}"/>
77 <%@include file="../jspf/date-with-tooltip.jspf"%>
78 </td>
79 </tr>
80 <tr>
81 <th><fmt:message key="issue.updated"/></th>
82 <td>
83 <c:set var="dateValue" value="${issue.updated}"/>
84 <%@include file="../jspf/date-with-tooltip.jspf"%>
85 </td>
86 </tr>
87 <tr> 54 <tr>
88 <th><fmt:message key="component"/></th> 55 <th><fmt:message key="component"/></th>
89 <td> 56 <td>
90 <select name="component"> 57 <select name="component">
91 <option value="-1"><fmt:message key="placeholder.null-component"/></option> 58 <option value="-1"><fmt:message key="placeholder.null-component"/></option>

mercurial