Skip to content
Snippets Groups Projects
Commit 4d055d10 authored by Oana Milchi's avatar Oana Milchi
Browse files

Fix room full error in capacity session enqueue page

parent 99fb6fb2
No related branches found
No related tags found
No related merge requests found
......@@ -52,9 +52,8 @@
<div class="invalid-feedback" th:if="${#fields.hasErrors('room')}" th:errors="*{room}">Module error</div>
<p
class="colour-error font-400"
th:if="${!rooms.isEmpty()}"
th:classappend="${countMap.get(rooms[0]) >= rooms[0].capacity ? '' : 'hidden'}">
id="room-warning"
class="colour-error font-400 hidden">
This room is already full and you might not get in. We advise you to pick another room if possible.
</p>
</div>
......@@ -96,6 +95,11 @@
}
}
</script>
<script type="text/javascript">
$(document).ready(function() {
updateRoomWarning();
});
</script>
</th:block>
</th:block>
</body>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment