{% extends "base.html" %} {% load bootstrap %} {% load rich_text %} {% load guardian_tags %} {% load i18n %} {% block title %} {{ event.title }} {% endblock %} {% block content %} {% 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 %} {% render_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 %} {% render_alert no_shift_error "danger" %} {% endif %} {% endif %}
{{ event.description|rich_text:"h1,h2" }}
{% for shift in event.shifts.all %} {% include "core/fragments/shift_box_big.html" with shift=shift %} {% empty %}

{% translate "No shifts" %}

{% endfor %}
{% endblock %}