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

changeset 134
f47e82cd6077
parent 131
67df332e3146
child 136
7281bdf43c60
     1.1 --- a/src/main/webapp/WEB-INF/jsp/issue-form.jsp	Sat Oct 17 15:21:56 2020 +0200
     1.2 +++ b/src/main/webapp/WEB-INF/jsp/issue-form.jsp	Sat Oct 17 19:56:50 2020 +0200
     1.3 @@ -74,6 +74,19 @@
     1.4              <td><fmt:formatDate value="${issue.updated}" /></td>
     1.5          </tr>
     1.6          <tr>
     1.7 +            <th><fmt:message key="issue.component"/></th>
     1.8 +            <td>
     1.9 +                <select name="component">
    1.10 +                    <option value="-1"><fmt:message key="placeholder.null-component"/></option>
    1.11 +                    <c:forEach var="component" items="${viewmodel.components}">
    1.12 +                        <option
    1.13 +                                <c:if test="${not empty issue.component and component eq issue.component}">selected</c:if>
    1.14 +                                value="${component.id}"><c:out value="${component.name}"/></option>
    1.15 +                    </c:forEach>
    1.16 +                </select>
    1.17 +            </td>
    1.18 +        </tr>
    1.19 +        <tr>
    1.20              <th><fmt:message key="issue.category"/></th>
    1.21              <td>
    1.22                  <select name="category">
    1.23 @@ -154,7 +167,7 @@
    1.24              <td colspan="2">
    1.25                  <input type="hidden" name="id" value="${issue.id}"/>
    1.26                  <%-- TODO: fix #14 --%>
    1.27 -                <a href="./projects/${issue.project.id}/versions/" class="button">
    1.28 +                <a href="./projects/${issue.project.node}/versions/" class="button">
    1.29                      <fmt:message bundle="${lightpit_bundle}" key="button.cancel"/>
    1.30                  </a>
    1.31                  <button type="submit"><fmt:message bundle="${lightpit_bundle}" key="button.okay"/></button>

mercurial