{% extends 'backoffice/base.html' %} {% load django_bootstrap5 %} {% load i18n %} {% load static %} {% block title %} {% if form.create %} {% trans 'Event-new' %} {% else %} {{ event.name }} {% endif %} | {{ assembly.name }} | {{ conference.name }} {% endblock title %} {% block scripts %} {% endblock scripts %} {% block content %} {% include "backoffice/assembly_edit_header.html" %}
{% csrf_token %}
{% if form.create %} {% trans 'Event-new' %} {% else %} {% if event.id or event.slug %} {% if event.id %}ID: {{ event.id }}{% endif %}
{% if event.slug %} {% trans 'Event__slug' %}: {{ event.slug }} {% endif %}
{% endif %} {% trans 'Event' %} "{{ event.name }}" {% endif %}
{% if event.is_public and not form.create %}
{% blocktrans %}Event__recall__introduction{% endblocktrans %}
{% trans 'Event__public_links' %}
{% elif not form.create %}
{% blocktrans %}Event__publish__introduction{% endblocktrans %}
{% if publication_errors %}
{% trans "Event_publication_errors" %}
    {% for field, error in publication_errors.items %} {% with "Event__"|add:field as field_name %}
  • {% trans field_name %}: {{ error.0 }}
  • {% endwith %} {% endfor %}
{% endif %} {% endif %} {% if not form.create and form.instance.is_imported %}
{% trans "Event_is_imported_introduction" %}
{% endif %}
{% bootstrap_form form %}
{% if can_manage and not form.create %}
{% trans 'Event__delete' %}

{% trans 'Event__delete__introduction' %}

{% csrf_token %}
{% endif %} {% endblock content %}