{% extends "base.html" %} {% load shift_extras %} {% block title %}Schichtdetails{% endblock %} {% block content %}

{% if shift.deleted %}(gelöscht) {% endif %} {{ shift.room.name }} {{ shift.start_at }} {% with shift.start_at|night_from_to as night %} {% if night %} ({{ night }}) {% endif %} {% endwith %} {% with shift.required_helpers|default:shift.room.required_helpers as required_helpers %} {% if shift.event.calendar.restricted %} ({{ required_helpers }} Teami{{ required_helpers|pluralize }}) {% else %} ({{ shift.registration_count }}/{{ required_helpers }}) {% endif %} {% endwith %}

{% if shift.room.description %}
Beschreibung:

{{ shift.room.description|safe|linebreaksbr }}

{% endif %} {% if shift.description %}
Zusatzinfo:

{{ shift.description|linebreaksbr }}

{% endif %} {% if shift.shiftregistration_set.all %}
Helfis
{% for reg in shift.shiftregistration_set.all %}
{% if reg.is_pending %}
{% csrf_token %}
{% csrf_token %}
{% csrf_token %}
{% elif reg.is_checked_in %} {% endif %}
{% endfor %}
{% endif %} {% if shift.fallbackassignment_set.count > 0 %}
Teammitglieder
{% for fallback in shift.fallbackassignment_set.all %}
{% if fallback.traded_to %} {{ fallback.traded_to.name }} {% else %} {{ fallback.team_member.name }} {% endif %}
{% endfor %}
{% endif %} {% if not shift.event.calendar.restricted %}
Helfi eintragen
{% csrf_token %} {% for field in add_helper_form %}
{% if field.widget_type == 'checkbox' %}
{% else %}
{% if field.widget_type == 'select' %}
{{ field }}
{% else %} {{ field }} {% endif %}
{% endif %} {% if field.help_text %}

{{ field.help_text }}

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