diff --git a/AKPlan/templates/AKPlan/plan_room.html b/AKPlan/templates/AKPlan/plan_room.html index ab56ba1e672f735f03a93629b5f4b1fa6074b8bc..7a7e62ed4076c3432075e48fad51efdf30831909 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 %}