Mon, 30 Oct 2023 10:06:22 +0100
replace Enum.values() with Enum.entries
86
0a658e53177c
improves issue overview and adds progress information
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
1 | <%-- |
271 | 2 | Page attribute: |
3 | sortPriority: String | |
4 | currentSort: IssueSorter.Criteria | |
86
0a658e53177c
improves issue overview and adds progress information
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
5 | --%> |
271 | 6 | <div style="display: inline-block"> |
7 | <label class="caption" style="display:block;" for="sort_${sortPriority}"><fmt:message key="issue.filter.sort.${sortPriority}"/></label> | |
8 | <select id="sort_${sortPriority}" name="sort_${sortPriority}"> | |
9 | <c:forEach var="criteria" items="${viewmodel.filter.sortCriteria}"> | |
10 | <option value="${criteria}" <c:if test="${currentSort eq criteria}">selected</c:if> > | |
11 | <fmt:message key="${criteria.field.resourceKey}"/> | |
12 | <c:if test="${criteria.asc}">↑</c:if> | |
13 | <c:if test="${not criteria.asc}">↓</c:if> | |
14 | </option> | |
15 | </c:forEach> | |
16 | </select> | |
17 | </div> |