{% extends 'dav_events/base.html' %} {% load bootstrap3 %} {% load i18n %} {% load dav_events %} {% block head-title %}{% trans 'Anmeldungen' %} - {{ event }} - {{ block.super }}{% endblock head-title %} {% block modals %} {% endblock modals %} {% block page-container-fluid %}
{% if not event.registration_required %} {% endif %}
{% render_event_status event %}

{{ event }}

{% trans 'Teilnehmerzahl' %}: {{ event.min_participants }} - {% if event.max_participants > 0 %} {{ event.max_participants }} {% else %} ∞ {% endif %}
{% trans 'Anmeldeschluss' %}: {% if event.deadline %} {{ event.deadline|date:'l, d. F Y' }} {% else %} - {% endif %}
{% trans 'Anmeldestatus' %}: {% if not event.registration_required %} {% trans 'Anmeldung nicht erforderlich' %} {% elif is_canceled %} {% trans 'Veranstaltung abgesagt' %} {% elif is_realized or is_expired %} {% trans 'Veranstaltung beendet' %} {% elif event.registration_closed %} {% trans 'Anmeldung geschlossen' %} {% elif event.is_deadline_expired %} {% trans 'Anmeldeschluss abgelaufen' %} {% elif is_published_any %} {% trans 'Anmeldung geöffnet' %} {% else %} {% trans 'Veranstaltung noch nicht veröffentlicht' %} {% endif %}
{% if has_permission_update_registration %} {% endif %}

{% bootstrap_icon 'question-sign' %}

{% trans 'Teilnehmer' %}

{% if registrations_support %}
{% for registration in registrations_pending %}
{% csrf_token %} {% if has_permission_update_participants %} {% if registration.apply_reduced_fee %} {% bootstrap_icon 'plus-sign' %} {% else %} {% endif %}     {% endif %} {{ registration.get_full_name }} ({{ registration.email_address }}, {{ registration.phone_number }})   {% bootstrap_icon 'time' %} {{ registration.created_at|date:'d. F Y, G:i' }}   {% bootstrap_icon 'info-sign' %} {% if registration.apply_reduced_fee %}   %{% bootstrap_icon 'piggy-bank' %} (reduzierte Gebühr) {% endif %}
{% empty %} {% trans 'Keine unbearbeiteten Anmeldungen vorhanden' %} {% endfor %}
{% endif %} {% if has_permission_update_participants %}
{% bootstrap_form_errors create_participant_form %}
{% csrf_token %} {% include './includes/participant_form.html' with form=create_participant_form %}
{% endif %} {% if participants %} {% for form in participant_formset %} {% with participant=form.instance %} {% with position=participant.position %}
{% bootstrap_form_errors form %}
{% csrf_token %} {% include './includes/participant_form.html' %} {% if has_permission_update_participants %} {% endif %}
{% endwith %} {% endwith %} {% endfor %} {% else %}
{% bootstrap_icon 'question-sign' %}
{% trans 'Es wurden noch keine Teilnehmer hinzugefügt.' %}
{% endif %} {% if participant_emails %}
{% trans 'E-Mail-Adressen' %} ({% trans 'für Copy-Paste' %})
{{ participant_emails }}
{% endif %}

{% bootstrap_icon 'question-sign' %}

{% trans 'Papierkorb' %}

{% if registrations_support and registrations_answered %}
{% for registration in registrations_answered %}
    {{ registration.get_full_name }} ({{ registration.email_address }}, {{ registration.phone_number }})   {% bootstrap_icon 'time' %} {{ registration.created_at|date:'d. F Y, G:i' }}   {% bootstrap_icon 'info-sign' %} {% if has_permission_update_registration %}
{% csrf_token %}
{% endif %}
{% endfor %}
{% endif %} {% if participants_trash %}
{% for participant in participants_trash %}
  {{ participant.get_full_name }} ({{ participant.email_address }}, {{ participant.phone_number }})   {% bootstrap_icon 'info-sign' %} {% if event.charge and participant.paid %}   %{% bootstrap_icon 'piggy-bank' %} {% elif event.charge %}   %{% bootstrap_icon 'piggy-bank' %} {% endif %} {% if has_permission_update_participants %}
{% csrf_token %}
{% endif %}
{% endfor %}
{% endif %} {% if not registrations_answered and not participants_trash %} {% trans 'Der Papierkorb ist leer.' %} {% endif %}
{% endblock page-container-fluid %}