From 1e532cb2730ab9ed4ac0d55e9cc0ec6c53f80bb1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20H=C3=A4ttasch?= <benjamin.haettasch@fachschaft.informatik.tu-darmstadt.de> Date: Wed, 29 Jul 2020 00:14:13 +0200 Subject: [PATCH] Show room availabilities in plan detail view --- AKPlan/templates/AKPlan/plan_room.html | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/AKPlan/templates/AKPlan/plan_room.html b/AKPlan/templates/AKPlan/plan_room.html index ab56ba1e..7a7e62ed 100644 --- a/AKPlan/templates/AKPlan/plan_room.html +++ b/AKPlan/templates/AKPlan/plan_room.html @@ -27,6 +27,17 @@ }, {% endif %} {% endfor %} + {% for a in room.availabilities.all %} + { + title: '', + start: '{{ a.start | timezone:event.timezone | date:"Y-m-d H:i:s" }}', + end: '{{ a.end | timezone:event.timezone | date:"Y-m-d H:i:s" }}', + 'resourceId': '{{ a.room.title }}', + backgroundColor: '#28B62C', + display: 'background', + groupId: 'roomAvailable', + }, + {% endfor %} ] {% endblock %} -- GitLab