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

use display method instead of isOpen method to determine whether button

should be visible

Signed-off-by: default avatarOtto Visser <O.W.Visser@tudelft.nl>
parent f43c5f0d
No related branches found
No related tags found
2 merge requests!390Development,!388Resolve "Grace period at the end of lab"
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
<div class="float-right btn-toolbar"> <div class="float-right btn-toolbar">
<form th:each="lab : ${activeLabs}" th:action="@{'/requests/next/' + ${lab.id}}" <form th:each="lab : ${activeLabs}" th:action="@{'/requests/next/' + ${lab.id}}"
class="float-right" style="padding-right:2px;" method="POST"> class="float-right" style="padding-right:2px;" method="POST">
<button type="submit" class="btn btn-sm btn-primary" th:if="${lab.isOpen()}" <button type="submit" class="btn btn-sm btn-primary" th:if="${lab.display()}"
th:classappend="${queued.get(lab.id) == 0} ? disabled : ''">Get next for th:classappend="${queued.get(lab.id) == 0} ? disabled : ''">Get next for
[[${lab.course.code}]] [[${lab.toString()}]] (<span th:id="${'span-' + lab.id}">[[${queued.get(lab.id)}]]</span>) [[${lab.course.code}]] [[${lab.toString()}]] (<span th:id="${'span-' + lab.id}">[[${queued.get(lab.id)}]]</span>)
</button> </button>
... ...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment