{% extends "wagtailadmin/generic/edit.html" %} {% load i18n wagtailadmin_tags %} {% block bodyclass %}page-editor{% endblock %} {% block titletag %}{% blocktrans with instance=translation.source.as_instance locale=translation.target_locale %}Translation of {{ instance }} into {{ locale }}{% endblocktrans %}{% endblock %} {% block content %} {% if is_page %}
{% include 'wagtailadmin/shared/headers/page_edit_header.html' with page=instance page_for_status=instance page_perms=page_perms content_type=instance.content_type %} {% include "wagtailadmin/shared/side_panels.html" with page=instance page_for_status=instance page_perms=page_perms content_type=instance.content_type in_explorer=True %}
{% else %}
{% include 'wagtail_localize/admin/includes/generic_header.html' %}
{% include "wagtailadmin/shared/header.html" with title=instance icon="snippet" merged=1 only %} {% endif %}
{% if source_translation.editUrl %} {{ source_translation.locale.displayName }} {% else %} {{ source_translation.locale.displayName }} {% endif %} {{ target_locale.get_display_name }} {% if translations %} {% dropdown toggle_icon="dots-horizontal" toggle_aria_label=_("Translations") %} {% for label, url in translations %} {{ label }} {% endfor %} {% enddropdown %} {% endif %}
{# Generates the CSRF token hidden input. This is read by the JavaScript. #} {% csrf_token %}
{% endblock %} {% block extra_js %} {% include "wagtailadmin/pages/_editor_js.html" %} {% endblock %} {% block extra_css_ %} {% endblock %}