{% extends "base.html" %} {% load logentries %} {% load bootstrap %} {% load crispy_forms_filters %} {% load i18n %} {% load static %} {% block title %} {% if event %} {% translate "Edit event" %} {% else %} {% translate "Create new event" %} {% endif %} {% endblock %} {% block content %} {% if inactive_events %} {% for event in inactive_events %} {% translate "You have an unsaved event" as unsaved_message %} {% translate "View" as view_message %} {% render_alert unsaved_message|add:" ("|add:event.title|add:"). "|add:view_message|add:""|safe %} {% endfor %} {% endif %}
{% csrf_token %} {{ form.title|as_crispy_field }} {% if form.type %} {{ form.type|as_crispy_field }} {% endif %} {{ form.description|as_crispy_field }} {{ form.location|as_crispy_field }}
{{ form.visible_for|as_crispy_field }} {{ form.responsible_groups|as_crispy_field }} {{ form.responsible_users|as_crispy_field }}
{% for plugin_form in plugin_forms %} {{ plugin_form }} {% endfor %}
{% if event %} {% translate "Back" %} {% else %} {% translate "Cancel" %} {% endif %}
{% endblock %}