{% extends "base.html" %} {% load cache %} {% load event_extras %} {% load bootstrap %} {% load rich_text %} {% load guardian_tags %} {% load i18n %} {% block title %} {{ event.title }} {% endblock %} {% block html_head %} {% endblock %} {% block content %} {% if request.user.is_authenticated %} {% get_obj_perms request.user for event as "event_perms" %} {% endif %} {% if not event.active %} {% if event.shifts.exists %} {% translate "This event has not been saved! If you are done editing the event, you can save it." as not_active_error %} {% translate "Save" as save_trans %}
{% csrf_token %} {% render_alert not_active_error|add:""|safe "warning" %}
{% else %} {% translate "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 %}

{% if "change_event" in event_perms %} {% endif %} {{ event.title }}

{{ event.type }} {{ event.location }} {% with start_time=event.get_start_time end_time=event.get_end_time %} {% if start_time %} {{ start_time|date:"D" }}, {% if not event.is_multi_day %} {{ start_time|date:"SHORT_DATE_FORMAT" }} {{ start_time|date:"TIME_FORMAT" }} – {{ end_time|date:"TIME_FORMAT" }} {% else %} {{ start_time|date:"SHORT_DATE_FORMAT" }} {% translate "to" %} {{ end_time|date:"SHORT_DATE_FORMAT" }} {% endif %} {% endif %} {% endwith %}
{{ event.description|rich_text:"h1,h2" }}
{% event_plugin_content event request as plugin_content %} {% for item in plugin_content %}
{{ item }}
{% endfor %}
{% for shift in event.shifts.all %}
{% include "core/fragments/shift_box_big.html" with shift=shift %}
{% empty %}

{% translate "No shifts" %}

{% endfor %}
{% endblock %}