{% extends "paxalia/base.html" %} {% load static i18n %} {% block title %}{{ page_title }} · {% trans "Paxalia Admin" %}{% endblock %} {% block page_title %}{{ page_title }}{% endblock %} {% block page_subtitle %}{{ page_subtitle }}{% endblock %} {% block extra_css %}{% endblock %} {% block dashboard_content %}
{% trans "Paxalia Admin" %}/{{ definition.verbose_name_plural }}/{{ page_title }}
{{ definition.label }}

{{ page_title }}

{{ page_subtitle }}

{% csrf_token %} {{ form.media }} {% if translation_form_enabled %}{% endif %} {% if form.non_field_errors %}
{{ form.non_field_errors }}
{% endif %} {% for hidden in form.hidden_fields %}{{ hidden }}{% endfor %} {% if translation_form_enabled %}
{% trans "Localization" %}

{% trans "Translation" %}

{% if object %}{% blocktrans with language=translation_language_name %}Editing the {{ language }} translation for this record.{% endblocktrans %}{% else %}{% blocktrans with language=translation_language_name %}Enter the {{ language }} translation while creating this record.{% endblocktrans %}{% endif %}

{% if object %} {% endif %}
{% trans "Active language" %} {{ translation_language_name }}
{{ translation_language }}
{% for field in translation_form_fields %}
{% if field.help_text %}{{ field.help_text }}{% endif %} {{ field }} {% for error in field.errors %}
{{ error }}
{% endfor %}
{% empty %}

{% trans "No editable translation fields are available for this language." %}

{% endfor %}
{% if object %} {% trans "Choose another language above to edit its translation. Your changes are saved with this record." %} {% else %} {% trans "This language is saved with the new record. After creation, use Localization to add or update the other languages." %} {% endif %}
{% endif %} {% for section in form_sections %}
{{ definition.label }}

{{ section.title }}

{% for field in section.fields %}
{% if field.help_text %}{{ field.help_text }}{% endif %} {{ field }} {% for error in field.errors %}
{{ error }}
{% endfor %}
{% endfor %}
{% endfor %} {% if readonly_rows %}
{% trans "Read only" %}

{% trans "Protected fields" %}

{% for row in readonly_rows %}
{{ row.label }}
{{ row.display }}
{% endfor %}
{% endif %} {% for inline in formsets %}
{% trans "Related records" %}

{{ inline.inline.opts.verbose_name_plural|capfirst }}

{% if inline.can_add %}{% trans "Add" %}{% endif %} {% if inline.can_change %}{% trans "Change" %}{% endif %} {% if inline.can_delete %}{% trans "Delete" %}{% endif %}
{{ inline.formset.management_form }} {% if inline.formset.non_form_errors %}
{{ inline.formset.non_form_errors }}
{% endif %}
{% for inline_form in inline.forms %}
{% for hidden in inline_form.hidden_fields %}{{ hidden }}{% endfor %} {% for field in inline_form.visible_fields %}
{{ field }}{% for error in field.errors %}
{{ error }}
{% endfor %}
{% endfor %}
{% empty %}

{% trans "No related forms are available." %}

{% endfor %}
{% endfor %}
{% if not object %}{% endif %} {% trans "Cancel" %}
{% endblock %}