Skip to content
Snippets Groups Projects
Commit e443b5c6 authored by Otto Visser's avatar Otto Visser
Browse files

Merge branch 'development' into 'master'

Deploy request history and request filter fix

See merge request !650
parents 7ba0bfa9 2253131e
No related branches found
No related tags found
3 merge requests!828Draft: UI component for allowed requests for students with multiple roles,!650Deploy request history and request filter fix,!581Draft: Resolve "Add report button to feedback page"
...@@ -137,6 +137,8 @@ public class RequestController { ...@@ -137,6 +137,8 @@ public class RequestController {
public String getRequestTableView(Model model, public String getRequestTableView(Model model,
@AuthenticatedPerson Person assistant, @AuthenticatedPerson Person assistant,
@PageableDefault(sort = "createdAt", direction = Sort.Direction.DESC, size = 25) Pageable pageable) { @PageableDefault(sort = "createdAt", direction = Sort.Direction.DESC, size = 25) Pageable pageable) {
model.addAttribute("showName", false);
model.addAttribute("showOnlyRelevant", true);
setRequestTableAttributes(model, pageable, assistant, setRequestTableAttributes(model, pageable, assistant,
"/requests", r -> r.getEventInfo().getStatus().isPending(), false, true); "/requests", r -> r.getEventInfo().getStatus().isPending(), false, true);
return "request/list"; return "request/list";
...@@ -155,6 +157,8 @@ public class RequestController { ...@@ -155,6 +157,8 @@ public class RequestController {
public String getRequestTableHistoryView(Model model, public String getRequestTableHistoryView(Model model,
@AuthenticatedPerson Person assistant, @AuthenticatedPerson Person assistant,
@PageableDefault(sort = "createdAt", direction = Sort.Direction.DESC, size = 25) Pageable pageable) { @PageableDefault(sort = "createdAt", direction = Sort.Direction.DESC, size = 25) Pageable pageable) {
model.addAttribute("showName", true);
model.addAttribute("showOnlyRelevant", false);
setRequestTableAttributes(model, pageable, assistant, setRequestTableAttributes(model, pageable, assistant,
"/requests/history", r -> !r.getEventInfo().getStatus().isPending(), true, false); "/requests/history", r -> !r.getEventInfo().getStatus().isPending(), true, false);
return "request/list"; return "request/list";
......
...@@ -101,7 +101,7 @@ ...@@ -101,7 +101,7 @@
</div> </div>
<div class="row col-12"> <div class="row col-12">
<th:block th:replace="request/list/request-table :: request-table(showName=${false}, showOnlyRelevant=${true})"> <th:block th:replace="request/list/request-table :: request-table(showName=${showName}, showOnlyRelevant=${showOnlyRelevant})">
</th:block> </th:block>
</div> </div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment