{% extends 'online_content/online_content_base.html' %} {% load i18n static imagekit online_content_tags %} {% block content %}

{{ template_content }}

{% if localized_template_content and localized_template_content.translation_ready %}
{% trans 'This translation is marked as complete. ' %}
{% else %}
{% trans 'This translation is not yet complete.' %}
{% endif %} {% if tried_translation_ready %} {% if translation_errors %}
    {% for error_text in translation_errors %}
  • {{ error_text }}
  • {% endfor %}
{% endif %} {% endif %}

{% csrf_token %} {% with primary_language=app.primary_language %} {% if source_page.translation_ready %} {% for field in form %} {% if field.is_hidden %} {{ field }} {% else %} {% if field.field.cms_object %}

{{ field.label }}

{% get_localized_microcontent field.field.cms_object.meta_instance primary_language as content %} {{ content|safe }}

{{ field.label }}

{{ field }}

{% else %}

{{ field.label }}

{% get_localized_attribute template_content primary_language field.name %}

{{ field.label }}

{{ field }}

{% endif %} {% endif %} {% endfor %}

{% else %}
{% trans 'This content is still being edited in the primary language. It will be translatable as soon as the editor is finished creating the content in the primary language.' %}
{% endif %} {% endwith %}
{% endblock %} {% block extra_script %} {% include 'online_content/manage_template_content_extra_scripts.html' %} {% endblock %}