{% extends "_base.html" %} {% load i18n %} {% load static %} {% load widget_tweaks %} {% load content_filters %} {% load poi_filters %} {% load rules %} {% load render_bundle from webpack_loader %} {% block content %}
{% csrf_token %} {% get_current_language as LANGUAGE_CODE %} {% get_language LANGUAGE_CODE as current_language %}

{% if event_form.instance.id %} {% if event_translation_form.instance.id %} {% with event_translation_form.instance.title as event_title %} {% blocktrans %}Edit event "{{ event_title }}"{% endblocktrans %} {% endwith %} {% if LANGUAGE_CODE != language.slug %} {% if event_form.instance.backend_translation %} ({% trans 'Title in' %} {% translated_language_name LANGUAGE_CODE %}: "{{ event_form.instance.backend_translation.title }}") {% endif %} {% endif %} {% else %} {% trans 'Create new event translation' %} {% endif %} {% else %} {% trans 'Create new event' %} {% endif %}

{% if perms.cms.change_event %} {% if not event_form.instance.id or not event_form.instance.archived %}
{% if perms.cms.publish_event %} {% else %} {% endif %}
{% endif %} {% endif %}
{% include "_form_language_tabs.html" with target='edit_event' instance=event_form.instance content_field="event_id" %}
{% if event_translation_form.instance.id %}
{% trans 'Version' %}:
{{ event_translation_form.instance.version }}
{% trans 'Status' %}:
{% if event.archived %} {% trans 'Archived' %} {% else %} {{ event_translation_form.instance.get_status_display }} {% endif %}
{% endif %}
{% render_field event_translation_form.title|add_error_class:"border-red-500" class+="mb-2" %} {% render_field event_translation_form.content|add_error_class:"border-red-500" class+="tinymce_textarea flex-auto" %}
{% if event_form.instance.id and perms.cms.change_event %}

{% trans "Minor edit" %}

{% render_field event_translation_form.minor_edit %}
{% minor_edit_help_text request.region language event_translation_form %}
{% endif %}

{% trans 'Date and time' %}

{% render_field event_form.start_date|add_error_class:"border-red-500" %}
{% render_field event_form.end_date|add_error_class:"border-red-500" %}
{% render_field event_form.start_time|add_error_class:"border-red-500" %}
{% render_field event_form.end_time|add_error_class:"border-red-500" %}
{% render_field event_form.is_all_day %}
{% render_field event_form.is_recurring id="recurrence-rule-checkbox" %}
{{ event_form.is_recurring.help_text }}

{% trans 'Venue' %}

{% render_field event_form.has_not_location class+='inline-block' %}
{% trans 'Name of event location' as poi_title_placeholder %}

{% trans 'Create an event location or start typing the name of an existing location' %}.

{% include 'events/_poi_query_result.html' %}
{% if poi %} {{ poi.address }} {{ poi.postcode }} {{ poi.city }} {{ poi.country }} {% endif %}
{% trans 'Open on Google Maps' %}

{{ event_form.icon.label }}

{% render_field event_form.icon label=event_form.icon.label %}
{% if event_form.instance.id and perms.cms.change_event %}

{% trans 'Actions' %}

{% if event_form.instance.archived %} {% else %} {% endif %}
{% if perms.cms.delete_event %}
{% endif %}
{% endif %}
{{ media_config_data|json_script:"media_config_data" }} {% if not perms.cms.change_event or event_form.instance.id and event_form.instance.archived %} {% include '../_tinymce_config.html' with readonly=1 %} {% else %} {% include '../_tinymce_config.html' %} {% if event_form.instance.id %} {% include '../_content_edit_lock.html' with lock_key=event_form.instance.edit_lock_key %} {% endif %} {% endif %} {% if event_form.instance.id %} {% include '../generic_confirmation_dialog.html' %} {% endif %} {% endblock content %} {% block javascript %} {% render_bundle 'editor' 'js' %} {% endblock javascript %}