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

changeset 227
f0ede8046b59
parent 214
69647ddb57f2
child 231
dcb1d5a7ea3a
equal deleted inserted replaced
226:c8e1b5282f69 227:f0ede8046b59
55 <th><label for="issue-component"><fmt:message key="component"/></label></th> 55 <th><label for="issue-component"><fmt:message key="component"/></label></th>
56 <td> 56 <td>
57 <select id="issue-component" name="component"> 57 <select id="issue-component" name="component">
58 <option value="-1"><fmt:message key="placeholder.null-component"/></option> 58 <option value="-1"><fmt:message key="placeholder.null-component"/></option>
59 <c:forEach var="comp" items="${viewmodel.components}"> 59 <c:forEach var="comp" items="${viewmodel.components}">
60 <c:set var="isSelectedComponent" value="${not empty issue.component and comp eq issue.component}" scope="page"/>
61 <c:if test="${isSelectedComponent or comp.active}">
60 <option 62 <option
61 <c:if test="${not empty issue.component and comp eq issue.component}">selected</c:if> 63 <c:if test="${isSelectedComponent}">selected</c:if>
62 value="${comp.id}"><c:out value="${comp.name}"/></option> 64 value="${comp.id}"><c:out value="${comp.name}"/></option>
65 </c:if>
63 </c:forEach> 66 </c:forEach>
64 </select> 67 </select>
65 </td> 68 </td>
66 </tr> 69 </tr>
67 <tr> 70 <tr>

mercurial