{% 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 %}
{% 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 %}{% translate "No shifts" %}
{% endfor %}