Skip to content
Snippets Groups Projects
Commit 95ee00c2 authored by Nadja Geisler's avatar Nadja Geisler :sunny:
Browse files

add background color acc. to category to scheduling interface

parent 7f8352e0
No related branches found
No related tags found
1 merge request!62Improve graphical scheduling
......@@ -175,11 +175,14 @@
<div class="row" style="margin-bottom: 50px;">
<div class="col-md-10 col-lg-11">
<div id="planCalendar" ></div>
<div id="planCalendar"></div>
</div>
<div class="col-md-2 col-lg-1" id="unscheduled-slots">
{% for slot in slots_unscheduled %}
<div class="unscheduled-slot badge badge-primary" data-event='{ "title": "{{ slot.ak.short_name }}", "duration": {"hours": "{{ slot.duration|unlocalize }}"}, "description": "{{ slot.ak.name }}", "slotID": "{{ slot.pk }}"}'>{{ slot.ak.short_name }} ({{ slot.duration }} h)</div>
<div class="unscheduled-slot badge badge-primary" style='background-color: {{ slot.ak.category.color }}'
data-event='{ "title": "{{ slot.ak.short_name }}", "duration": {"hours": "{{ slot.duration|unlocalize }}"}, "description": "{{ slot.ak.name }}", "slotID": "{{ slot.pk }}"}'>{{ slot.ak.short_name }}
({{ slot.duration }} h)
</div>
{% endfor %}
</div>
</div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment