{% extends "helfertool/admin.html" %} {% load i18n bootstrap4 icons staticfiles %} {% block admincontent %}

{% blocktrans trimmed with jobname=job.name%} Helpers for {{ jobname }} {% endblocktrans %}

{# export #}

{% icon "file-download" %} {% trans "Export" %}:

{# jump labels #} {% if shifts_by_day %}

{% for day, shifts in shifts_by_day %} {{ day }}  {% endfor %}

{% endif %} {# coordinators #}

{% trans "Coordinators" %}

{% if job.coordinators.count == 0 %}

{% trans "There are no coordinators for this job." %}

{% else %} {% include "registration/admin/helpers_table.html" with event=event job=job helpers=job.coordinators.all %} {% endif %}

{% icon "plus" %} {% trans "Add coordinator" %}

{# iterate over days #} {% for day, shifts in shifts_by_day %}

{{ day }}

{% with day_str=day|date:"Y-m-d" %} {% icon "file-download" %} {% blocktrans with day=day %}Export for {{ day }}{% endblocktrans %}: {% endwith %}

{# iterate over shifts on this day #} {% for shift in shifts %}

{{ shift.time_hours }} {% blocktrans trimmed with current=shift.num_helpers total=shift.number %} ({{ current }} of {{ total }}) {% endblocktrans %} {% if shift.name %}
{{ shift.name }} {% endif %}

{% if event.gifts and is_admin %}

{% icon "check-square" %} {% trans "Set attendance for complete shift" %}

{% endif %} {% if shift.helper_set.count == 0 %}

{% trans "Nobody is registered for this shift." %}

{% else %} {% include "registration/admin/helpers_table.html" with event=event job=job shift=shift helpers=shift.helper_set.all %} {% endif %} {% if not shift.is_full %}

{% icon "plus" %} {% trans "Add helper" %}

{% endif %} {% endfor %} {% endfor %} {% endblock %}