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

changeset 186
05eec764facd
parent 185
5ec9fcfbdf9c
child 194
2b3b7d0a885e
equal deleted inserted replaced
185:5ec9fcfbdf9c 186:05eec764facd
35 <c:set var="component" scope="page" value="${viewmodel.component}"/> 35 <c:set var="component" scope="page" value="${viewmodel.component}"/>
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-issue" method="post"> 40 <form action="${issuesHref}-/commit" method="post">
41 <table class="formtable fullwidth"> 41 <table class="formtable fullwidth">
42 <colgroup> 42 <colgroup>
43 <col> 43 <col>
44 <col style="width: 100%"> 44 <col style="width: 100%">
45 </colgroup> 45 </colgroup>
87 <tr> 87 <tr>
88 <th><fmt:message key="component"/></th> 88 <th><fmt:message key="component"/></th>
89 <td> 89 <td>
90 <select name="component"> 90 <select name="component">
91 <option value="-1"><fmt:message key="placeholder.null-component"/></option> 91 <option value="-1"><fmt:message key="placeholder.null-component"/></option>
92 <c:forEach var="component" items="${viewmodel.components}"> 92 <c:forEach var="comp" items="${viewmodel.components}">
93 <option 93 <option
94 <c:if test="${not empty issue.component and component eq issue.component}">selected</c:if> 94 <c:if test="${not empty issue.component and comp eq issue.component}">selected</c:if>
95 <c:if test="${empty issue.component and component.id eq cid}">selected</c:if> 95 <c:if test="${empty issue.component and comp eq comp}">selected</c:if>
96 value="${component.id}"><c:out value="${component.name}"/></option> 96 value="${comp.id}"><c:out value="${comp.name}"/></option>
97 </c:forEach> 97 </c:forEach>
98 </select> 98 </select>
99 </td> 99 </td>
100 </tr> 100 </tr>
101 <tr> 101 <tr>

mercurial