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

{% if poi_form.instance.id %} {% if poi_translation_form.instance.id %} {% with poi_translation_form.instance.title as poi_title %} {% blocktrans %}Edit location "{{ poi_title }}"{% endblocktrans %} {% endwith %} {% else %} {% trans 'Create new translation of the location' %} {% endif %} {% get_current_language as LANGUAGE_CODE %} {% if poi_form.instance.backend_translation and LANGUAGE_CODE != language.slug %} ({% trans 'Title in' %} {% translated_language_name LANGUAGE_CODE %}: "{{ poi_form.instance.backend_translation.title }}") {% endif %} {% else %} {% trans 'Create new location' %} {% endif %}

{% if not poi_form.instance.archived and perms.cms.change_imprintpage %} {% endif %}
{% if poi_translation_form.instance.id %} {{ poi_translation_form.instance.version }}
{{ poi_translation_form.instance.get_status_display }} {% endif %} {% render_field poi_translation_form.title|add_error_class:"border-red-500" %} {% render_field poi_translation_form.short_description|add_error_class:"border-red-500" %} {% render_field poi_translation_form.description class="tinymce_textarea" %}
  • {% trans 'Settings for all translations' %}
{% render_field poi_form.address|add_error_class:"border-red-500" %} {% render_field poi_form.postcode|add_error_class:"border-red-500" %} {% render_field poi_form.city|add_error_class:"border-red-500" %} {% render_field poi_form.country|add_error_class:"border-red-500" %}
{% render_field poi_form.location_not_on_map %}
{{ poi_form.location_not_on_map.help_text }}
{% render_field poi_form.longitude|add_error_class:"border-red-500" %}
{{ poi_form.longitude.help_text }}
{% render_field poi_form.latitude|add_error_class:"border-red-500" %}
{{ poi_form.latitude.help_text }}
{% render_field poi_form.icon label=poi_form.icon.label %}
{% if poi_form.instance.id %}
{% if poi_form.instance.archived %} {% else %} {% endif %}
{% if perms.cms.delete_poi %}
{% endif %} {% endif %}
{{ media_config_data|json_script:"media_config_data" }} {% if poi_form.instance.id and poi_form.instance.archived %} {% include '../_tinymce_config.html' with readonly=1 %} {% else %} {% include '../_tinymce_config.html' %} {% endif %} {% if poi_form.instance.id %} {% include '../generic_confirmation_dialog.html' %} {% endif %} {% endblock %} {% block javascript %} {% render_bundle 'editor' 'js' %} {% endblock %}