{% extends "_base.html" %} {% load i18n %} {% load widget_tweaks %} {% block content %} {% with request.region.default_language as current_language %}
{% csrf_token %}

{% if contact_form.instance.id %} {% translate "Edit contact" %} {% else %} {% translate "Create new contact" %} {% endif %}

{% if contact_form.instance.archived %} {% translate "Cancel" %} {% else %} {% translate "Cancel" %} {% endif %} {% if perms.cms.change_contact and not contact_form.instance.archived %}
{% endif %}
{% include "ajax_poi_form/poi_box.html" with form=contact_form box_id="contact-location" title=_("Connect a location") %}

{% translate "Manage contact data" %}

{% translate "Enter the data you wish to store for the contact here." %}
{% render_field contact_form.area_of_responsibility|add_error_class:"border-red-500" %} {% render_field contact_form.name|add_error_class:"border-red-500" %} {% render_field contact_form.email|add_error_class:"border-red-500" %} {% render_field contact_form.phone_number|add_error_class:"border-red-500" %}

{% translate "Currently, the mobile phone number is not displayed in the Integreat App. You can find more information in the" %} Wiki.

{% render_field contact_form.mobile_phone_number|add_error_class:"border-red-500" %} {% render_field contact_form.website|add_error_class:"border-red-500" %}
{% if contact_form.instance.id %}

{% translate "Contact information" %}

{% trans "This contact is referred to in those contents." %}
{% include "../_related_contents_table.html" with contents=referring_pages table_title=_("Pages") no_content_message=_("This contact is not currently referred to on any page.") %} {% include "../_related_contents_table.html" with contents=referring_locations table_title=_("Locations") no_content_message=_("This contact is not currently referred to in any location.") %} {% include "../_related_contents_table.html" with contents=referring_events table_title=_("Events") no_content_message=_("This contact is not currently referred to in any event.") %}
{% endif %}
{% if contact_form.instance.id %}
{% if perms.cms.change_contact and not contact_form.instance.archived %} {% endif %} {% if perms.cms.change_contact and contact_form.instance.archived %} {% endif %} {% if perms.cms.delete_contact %}
{% endif %}
{% endif %}
{% include "generic_confirmation_dialog.html" %} {% endwith %} {% endblock content %}