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

{% with page_title=source_page_translation.title source_language=source_page_translation.language.translated_name target_language_name=target_language.translated_name %} {% blocktrans %}Translate "{{ page_title }}" from {{ source_language }} to {{ target_language_name }}{% endblocktrans %} {% endwith %}

{% trans 'Go Back to Page Editor' %} {% has_perm 'cms.change_page_object' request.user source_page_translation.page as can_change_page_object %} {% if not source_page_translation.page.archived %} {% if can_change_page_object %} {% endif %} {% has_perm 'cms.publish_page_object' request.user source_page_translation.page as can_publish_page %} {% if can_publish_page %} {% else %} {% endif %} {% endif %}
{% if source_page_translation.is_outdated %} {% elif source_page_translation.currently_in_translation %} {% else %} {% endif %} {{ source_page_translation.language.translated_name }}
{{ source_page_translation.version }}
{{ source_page_translation.get_status_display }}
{% if page_translation_form.instance.id %} {% if page_translation_form.instance.is_outdated %} {% elif page_translation_form.instance.currently_in_translation %} {% else %} {% endif %} {% else %} {% endif %} {{ target_language.translated_name }}
{% csrf_token %} {% if page_translation_form.instance.id %} {{ page_translation_form.instance.version }}
{{ page_translation_form.instance.get_status_display }} {% else %} {% trans 'New' %}
{% trans 'Not saved yet' %} {% endif %}
{% trans ' Leave blank to generate unique permalink from title' as slug_placeholder %} {% render_field page_translation_form.slug placeholder=slug_placeholder %}
{% render_field page_translation_form.title|add_error_class:"border-red-500" id="target_translation_title" %} {% render_field page_translation_form.content|add_error_class:"border-red-500" class="tinymce_textarea" id="target_translation_tinymce" %} {% render_field page_translation_form.minor_edit id="minor_edit" %}
{{ page_translation_form.minor_edit.help_text }}
{% if not can_change_page_object or page_translation_form.instance.id and page_translation_form.instance.page.archived %} {% include '../_tinymce_config.html' with readonly=1 language=target_language %} {% else %} {% include '../_tinymce_config.html' with language=target_language %} {% endif %} {% endblock %} {% block javascript %} {% render_bundle 'editor' 'js' %} {% endblock %}