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

{% trans "Overview over helpers" %}

{% if not event.job_set.exists %}

{% trans "There are no jobs and shifts." %}

{% else %} {# export of all jobs #} {% if admin and not event.archived %}

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

{% trans "All days" %}
{% if days %}
{% for day in days %} {% with day_str=day|date:"Y-m-d" %} {% endwith %} {% endfor %}
{{ day }}

{% trans "Export single days" %}

{% endif %} {% endif %} {% for job in event.job_set.all %} {% is_job_admin job as job_admin %}

{{ job.name }} {% if job.public %} {% icon "eye" %} {% trans "Public" %} {% endif %}

{% if job_admin and not event.archived%}

{% icon "info-circle" %} {% trans "Show" %}

{% endif %}

{% blocktrans trimmed with number=job.num_coordinators %} Number of coordinators: {{ number }} {% endblocktrans %}

{% for day, shifts in job.shifts_by_day.items %} {% endfor %} {% for day, shifts in job.shifts_by_day.items %} {% endfor %}
{{ day }}
{% for shift in shifts %} {% if shift.hidden %} {% icon "eye-slash" %} {% elif shift.blocked %} {% icon "lock" %} {% endif %} {{ shift.time_hours }} {{ shift.num_helpers_archived }}/{{ shift.number }} {% if shift.name %}
{{ shift.name }} {% endif %}
{% if shift.helpers_percent == 100 %}
{% endfor %}
{% endfor %} {% endif %} {% endblock %}