{% extends "base.html" %} {% load guardian_tags %} {% load i18n %} {% load bootstrap4 %} {% block title %} {{ event.title }} {% endblock %} {% block content %} {% get_obj_perms request.user for event as "event_perms" %} {% if not event.active %} {% if event.shifts.exists %} {% trans "This event has not been saved! If you are done editing the event, you can save it." as not_active_error %} {% trans "Save" as save_trans %}
{% csrf_token %} {% bootstrap_alert not_active_error|add:""|safe "warning" %}
{% else %} {% trans "This event has not been saved! Please add a shift to save this event." as no_shift_error %} {% bootstrap_alert no_shift_error "danger" %} {% endif %} {% endif %}

{{ event.description }}

{% for shift in event.shifts.all %} {% include "event_management/fragments/shift_box_big.html" with shift=shift %} {% endfor %}
{% endblock %}