src/main/webapp/WEB-INF/jspf/sort-box.jspf

Sun, 06 Oct 2024 15:35:46 +0200

author
Mike Becker <universe@uap-core.de>
date
Sun, 06 Oct 2024 15:35:46 +0200
changeset 326
d5f6331d4adb
parent 271
f8f5e82944fa
permissions
-rw-r--r--

fix critical loss of data - fixes #449

86
0a658e53177c improves issue overview and adds progress information
Mike Becker <universe@uap-core.de>
parents:
diff changeset
1 <%--
271
f8f5e82944fa #15 add sort options
Mike Becker <universe@uap-core.de>
parents: 270
diff changeset
2 Page attribute:
f8f5e82944fa #15 add sort options
Mike Becker <universe@uap-core.de>
parents: 270
diff changeset
3 sortPriority: String
f8f5e82944fa #15 add sort options
Mike Becker <universe@uap-core.de>
parents: 270
diff changeset
4 currentSort: IssueSorter.Criteria
86
0a658e53177c improves issue overview and adds progress information
Mike Becker <universe@uap-core.de>
parents:
diff changeset
5 --%>
271
f8f5e82944fa #15 add sort options
Mike Becker <universe@uap-core.de>
parents: 270
diff changeset
6 <div style="display: inline-block">
f8f5e82944fa #15 add sort options
Mike Becker <universe@uap-core.de>
parents: 270
diff changeset
7 <label class="caption" style="display:block;" for="sort_${sortPriority}"><fmt:message key="issue.filter.sort.${sortPriority}"/></label>
f8f5e82944fa #15 add sort options
Mike Becker <universe@uap-core.de>
parents: 270
diff changeset
8 <select id="sort_${sortPriority}" name="sort_${sortPriority}">
f8f5e82944fa #15 add sort options
Mike Becker <universe@uap-core.de>
parents: 270
diff changeset
9 <c:forEach var="criteria" items="${viewmodel.filter.sortCriteria}">
f8f5e82944fa #15 add sort options
Mike Becker <universe@uap-core.de>
parents: 270
diff changeset
10 <option value="${criteria}" <c:if test="${currentSort eq criteria}">selected</c:if> >
f8f5e82944fa #15 add sort options
Mike Becker <universe@uap-core.de>
parents: 270
diff changeset
11 <fmt:message key="${criteria.field.resourceKey}"/>
f8f5e82944fa #15 add sort options
Mike Becker <universe@uap-core.de>
parents: 270
diff changeset
12 <c:if test="${criteria.asc}">&uarr;</c:if>
f8f5e82944fa #15 add sort options
Mike Becker <universe@uap-core.de>
parents: 270
diff changeset
13 <c:if test="${not criteria.asc}">&darr;</c:if>
f8f5e82944fa #15 add sort options
Mike Becker <universe@uap-core.de>
parents: 270
diff changeset
14 </option>
f8f5e82944fa #15 add sort options
Mike Becker <universe@uap-core.de>
parents: 270
diff changeset
15 </c:forEach>
f8f5e82944fa #15 add sort options
Mike Becker <universe@uap-core.de>
parents: 270
diff changeset
16 </select>
f8f5e82944fa #15 add sort options
Mike Becker <universe@uap-core.de>
parents: 270
diff changeset
17 </div>

mercurial