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

{% trans "Jobs and shifts" %}

{% if not event.archived %}

{% icon "plus" %} {% trans "New job" %}   {% icon "sort" %} {% trans "Sort jobs" %}

{% endif %} {% for job in event.job_set.all %}

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

{% if not event.archived %}

{% icon "pencil-alt" %} {% trans "Edit" %}   {% icon "copy" %} {% trans "Duplicate" %}   {% icon "copy" %} {% trans "Duplicate one day" %}   {% icon "trash-alt" %} {% trans "Delete" %}   {% icon "plus" %} {% trans "New shift" %}

{% endif %} {% if job.shift_set.count == 0 %}

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

{% else %} {% if event.gifts %} {% endif %} {% if not event.archived %} {% endif %} {% for shift in job.shift_set.all %} {% if event.gifts %} {% endif %} {% if not event.archived %} {% endif %} {% endfor %}
{% trans "Begin" %} {% trans "End" %} {% trans "Name" %} {% trans "Number of helpers" %}{% trans "Gifts" %}
{% if shift.hidden %} {% icon "eye-slash" %} {% elif shift.blocked %} {% icon "lock" %} {% endif %} {{ shift.begin }} {{ shift.end }} {{ shift.name }} {{ shift.number }} {% for gift in shift.gifts.all %} {{ gift.name }}
{% endfor %}
{% icon "pencil-alt" %} {% trans "Edit" %}
{% icon "trash-alt" %} {% trans "Delete" %}
{% endif %} {% endfor %} {% endblock %}