bornhack-website/src/backoffice/templates/autoschedule_debug_slots.html

31 lines
1.6 KiB
HTML

{% extends 'base.html' %}
{% load bornhack %}
{% block body %}
<p class="lead">The following availability matrix has been generated for the Event/Slot combinations in the AutoScheduler</p>
<p><a class="btn btn-default" href="{% url 'backoffice:autoschedule_manage' camp_slug=camp.slug %}"><i class="fas fa-undo"></i> Back</a></p>
<table class="table table-condensed table-bordered">
<thead>
<th>fedt nok</th>
{% for slot in scheduler.autoslots %}
<th>{{ slot.starts_at }} (venue {{ slot.venue }}, cap {{ slot.capacity }})</th>
{% endfor %}
</thead>
<tbody>
{% for autoevent, event in scheduler.autoevents|zip:scheduler.events.all %}
<tr>
<th><a href="{% url 'backoffice:event_detail' camp_slug=camp.slug slug=event.slug %}">{{ event.title }}</a> (demand {{ autoevent.demand }})</th>
{% for slot in scheduler.autoslots %}
{% if slot in autoevent.unavailability %}
<td class="text-center danger"><i class="fas fa-times" data-toggle='tooltip' data-html=true data-placement='right' title='Event "{{ event.title }}" will not be scheduled in the slot {{ slot.starts_at }}'></i></td>
{% else %}
<td class="text-center success"><i class="fas fa-check" data-toggle='tooltip' data-html=true data-placement='right' title='Event "{{ event.title }}" might be scheduled in the slot {{ slot.starts_at }}'></i></td>
{% endif %}
{% endfor %}
</tr>
{% endfor %}
</tbody>
</table>
<p><a class="btn btn-default" href="{% url 'backoffice:autoschedule_manage' camp_slug=camp.slug %}"><i class="fas fa-undo"></i> Back</a></p>
{% endblock body %}