{% extends "themes/customize_base.html" %} {% load i18n %} {% load ravix_ui %} {% block tab_content %}
{% csrf_token %} {% if text_language %}

{% blocktrans trimmed with language=language_name %}Texts of the home page in {{ language }}. Leave a field empty to show the text of the default language instead. Section types, links, icons and the order are the same in every language and are edited in the default language tab.{% endblocktrans %}

{{ formset.management_form }} {% for e in formset.non_form_errors %}{% endfor %} {% for row in text_rows %}{% with f=row.form s=row.section %}

{{ forloop.counter }}. {{ row.type_label }}

{% for e in f.non_field_errors %}

{{ e }}

{% endfor %}

{% if s.title %}{{ s.title }}{% endif %}{% if s.subtitle %} — {{ s.subtitle }}{% endif %}

{% include "partials/_field.html" with field=f.title %} {% if s.type == "hero" or s.type == "features" %}{% include "partials/_field.html" with field=f.subtitle %}{% endif %}
{% if s.type == "hero" or s.type == "text" %}{% include "partials/_field.html" with field=f.body %}{% endif %} {% if s.buttons or s.button_url %}
{% include "partials/_field.html" with field=f.button_label %} {% if s.buttons|length > 1 %}{% include "partials/_field.html" with field=f.button2_label %}{% endif %} {% if s.buttons|length > 2 %}{% include "partials/_field.html" with field=f.button3_label %}{% endif %}
{% endif %} {% if s.type == "features" %}{% include "partials/_field.html" with field=f.items %}{% endif %}
{% endwith %}{% endfor %} {% else %}

{% trans ", " as list_sep %}{% blocktrans trimmed with display_name=working_theme.display_name supported_sections=supported_sections|join:list_sep %}Sections supported by the “{{ display_name }}” theme: {{ supported_sections }}. Other sections are saved but not displayed. The order is set by the “Row” number.{% endblocktrans %}

{% trans "Home page sections" %}

{{ formset.management_form }} {% for e in formset.non_form_errors %}{% endfor %} {% for f in formset %}
{% blocktrans trimmed with counter=forloop.counter %}Section {{ counter }}{% endblocktrans %} {% for e in f.non_field_errors %}

{{ e }}

{% endfor %} {{ f.origin }}
{% include "partials/_field.html" with field=f.type %} {% include "partials/_field.html" with field=f.title %} {% include "partials/_field.html" with field=f.subtitle %} {% include "partials/_field.html" with field=f.category %} {% include "partials/_field.html" with field=f.page %} {% include "partials/_field.html" with field=f.count %} {% include "partials/_field.html" with field=f.button_label %} {% include "partials/_field.html" with field=f.button_url %} {% include "partials/_field.html" with field=f.button2_label %} {% include "partials/_field.html" with field=f.button2_url %} {% include "partials/_field.html" with field=f.button3_label %} {% include "partials/_field.html" with field=f.button3_url %} {% include "partials/_field.html" with field=f.ORDER %}
{% include "partials/_field.html" with field=f.body %} {% include "partials/_field.html" with field=f.items %}
{% include "partials/_field.html" with field=f.hidden %} {% include "partials/_field.html" with field=f.DELETE %}
{% endfor %}
{% endif %}
{% include "themes/_preview_frame.html" %} {% endblock %}