{% extends "base.html" %} {% load ephios_crispy %} {% load crispy_forms_filters %} {% load i18n %} {% load static %} {% block title %} {% if object %} {% translate "Edit shift" %} {% else %} {% translate "Create new shift for event" %} {% endif %} {% endblock %} {% block content %}
{% csrf_token %}
{% crispy_field form.date wrapper_class="col-12 col-lg-6" %} {% crispy_field form.meeting_time wrapper_class="col-12 col-lg-6" %} {% crispy_field form.start_time wrapper_class="col-12 col-lg-6" %} {% crispy_field form.end_time wrapper_class="col-12 col-lg-6" %}
{% crispy_field form.label %}

{% translate "Signup mode" %}

{% crispy_field form.signup_flow_slug show_labels=False %}
{% include 'core/fragments/shift_signup_config_form.html' with form=flow_configuration_form %}

{% translate "Structure" %}

{% crispy_field form.structure_slug show_labels=False %}
{% include 'core/fragments/shift_signup_config_form.html' with form=structure_configuration_form %}

{% for plugin_form in plugin_forms %} {{ plugin_form }} {% endfor %}
{% if object or event.active %} {% translate "Back to event" %} {% if object and object.event.shifts.count > 1 %} {% translate "Delete" %} {% endif %} {% else %} {% translate "Discard event" %} {% endif %}
{{ event.title }} {% translate "Edit" %}

{% translate "Event type" %}: {{ event.type }}
{% translate "Location" %}: {{ event.location }}

{% for shift in event.shifts.all %} {% include "core/fragments/shift_box_small.html" with shift=shift editing_shift=object can_change=perms.core.change_event %} {% endfor %} {% if not object %}
{% translate "Shift" %}

{% translate "You are currently adding this shift" %}

{% endif %}
{% endblock %}