{% extends 'workflows/base_shell.html' %} {% load static i18n %} {% get_current_language as CURRENT_LANGUAGE %} {% block title %}{% trans "Form Builder" %}{% endblock %} {% block extra_css %} {% endblock %} {% block shell_body %} {% include 'workflows/includes/app_header.html' with header_show_home=1 header_inside_shell=1 %}
{% trans "Deployment Configuration" %}

{% trans "Form Builder" %}

{% csrf_token %}
{% for key, label in form_types %} {{ label }} {% endfor %}
{% include 'workflows/includes/messages.html' %}

{% trans "Struktur & Reihenfolge" %}

{% trans "Ordnen Sie Abschnitte und Felder in der Reihenfolge, in der sie im Formular erscheinen sollen." %}

{% for column in columns %} {% if active_structure_section == column.key %}

{{ column.title }}

{% blocktrans trimmed with count=column.items|length %}{{ count }} Feld/Felder{% endblocktrans %}
{% trans "Geöffnet" %}
{% for item in column.items %}
{{ item.label }}
{{ item.field_name }}
{% if item.is_custom %}{% trans "Eigen" %}{% endif %} {% if item.locked %}{% trans "Fix" %}{% endif %} {% if not item.is_visible %}{% endif %} {% if item.is_required %}{% trans "Pflicht" %}{% endif %}
{% empty %}
{% trans "Noch keine Felder in diesem Abschnitt." %}
{% endfor %}
{% endif %} {% endfor %}

{% trans "Sichtbarkeit & Regeln" %}

{% trans "Legen Sie fest, welche Teile sichtbar, erforderlich oder regelgesteuert sein sollen." %}

{{ builder_summary.hidden_field_count }} {% trans "ausgeblendet" %} {{ builder_summary.hidden_section_count }} {% trans "versteckte Abschnitte" %}
{% if active_module == 'section-rules' %}

{% trans "Abschnitte steuern" %}

{% trans "Reihenfolge und Sichtbarkeit der Formularabschnitte." %}

{{ section_rule_items|length }} {% trans "Abschnitte" %}
{% csrf_token %}
{% for section in section_rule_items %}
{{ forloop.counter }}
{{ section.display_title }}
{% blocktrans trimmed with count=section.field_count %}{{ count }} Feld/Felder{% endblocktrans %} {% if section.locked %} {% trans "Fixer Abschnitt" %} {% endif %}
{% if section.locked %}{% trans "Fix" %} {% elif section.is_visible %}{% trans "Sichtbar" %} {% else %}{% trans "Ausgeblendet" %}{% endif %}
{% endfor %}
{% elif active_module == 'field-rules' %}

{% trans "Feldregeln verwalten" %}

{% trans "Steuern Sie Sichtbarkeit und Pflichtstatus für einzelne Felder." %}

{{ builder_summary.configurable_field_count }} {% trans "konfigurierbar" %}
{% csrf_token %}
{% for group in field_rule_groups %} {% if active_field_rules_section == group.key %}

{{ group.title }}

{% blocktrans trimmed with count=group.items|length %}{{ count }} Feld/Felder{% endblocktrans %}
{% for item in group.items %}
{{ item.label }}
{{ item.summary }}
{{ item.field_name }}
{% if item.locked %} {% trans "Fix" %} {% elif not item.is_visible %} {% elif item.is_required %} {% trans "Pflicht" %} {% else %} {% trans "Flexibel" %} {% endif %}
{% empty %}
{% trans "Keine Feldregeln verfügbar." %}
{% endfor %}
{% endif %} {% endfor %}
{% elif form_type == 'onboarding' and active_module == 'conditional-rules' %}

{% trans "Bedingte Logik" %}

{% trans "Lassen Sie Felder abhängig von anderen Antworten ein- oder ausblenden." %}

{{ conditional_rule_items|length }} {% trans "Regeln" %}
{% csrf_token %}
{% for item in conditional_rule_items %} {% if active_conditional_target == item.target_key %}
{% trans "Sichtbarkeit" %}

{{ item.title }}

{% trans "Steuert" %}
{% for field_name in item.target_fields %} {{ field_name }} {% empty %} {% trans "Keine Ziel-Felder." %} {% endfor %}
{% trans "Sichtbar, wenn" %}
{{ item.summary }}
{% trans "Status" %} {% if item.is_active %}{% trans "Aktiv" %}{% else %}{% trans "Inaktiv" %}{% endif %} {% if item.description %} {{ item.description }} {% endif %}
{% with first_clause=item.clauses.0 second_clause=item.clauses.1 %}
{% trans "Zeige dieses Element, wenn" %}
{% trans "Zusätzliche Bedingung" %}
{% trans "Und zusätzlich" %}
{% endwith %}
{% endif %} {% endfor %}
{% endif %}

{% trans "Optionen & Texte" %}

{% trans "Pflegen Sie Auswahlwerte, Feldtexte und benutzerdefinierte Erweiterungen." %}

{{ builder_summary.custom_field_count }} {% trans "eigene Felder" %} {% if form_type == 'onboarding' %} {{ builder_summary.custom_section_count }} {% trans "eigene Abschnitte" %} {% endif %}
{% if active_module == 'options' %}
{% csrf_token %}
{% csrf_token %}
{% for item in option_items %}
⋮⋮
{{ item.label }} #{{ forloop.counter }}{% if item.value %} · {{ item.value }}{% endif %}
{% empty %}
{% trans "Keine Optionen in dieser Kategorie." %}
{% endfor %}
{% elif active_module == 'field-texts' %}

{% trans "Feldtexte verwalten" %}

{% trans "Überschreiben Sie Labels und Hilfetexte pro Feld." %}

{% csrf_token %}
{% for group in field_text_groups %} {% if active_field_texts_section == group.key %} {% for item in group.items %}
{{ item.label_override|default:item.field_name }}
{{ item.field_name }}
{% empty %}
{% trans "Keine Feldkonfigurationen verfügbar." %}
{% endfor %} {% endif %} {% endfor %}
{% elif form_type == 'onboarding' and active_module == 'custom-sections' %}

{% trans "Eigene Abschnitte" %}

{% trans "Erweitern Sie den Workflow um eigene inhaltliche Blöcke." %}

{{ builder_summary.custom_section_count }} {% trans "eigene Abschnitte" %}
{% csrf_token %}

{% trans "Abschnitt hinzufügen" %}

{% trans "Erstellen Sie zusätzliche Bereiche für deployment-spezifische Informationen." %}

{% csrf_token %}
{% for item in custom_section_items %}
{{ item.title }}
{{ item.section_key }}
{{ item.custom_field_count }} {% trans "Feld/Felder" %}
{% empty %}
{% trans "Keine eigenen Abschnitte vorhanden." %}
{% endfor %}
{% elif active_module == 'custom-fields' %}

{% trans "Eigene Felder" %}

{% trans "Erstellen Sie zusätzliche Eingaben innerhalb bestehender oder eigener Abschnitte." %}

{{ builder_summary.custom_field_count }} {% trans "eigene Felder" %}
{% csrf_token %}

{% trans "Feld hinzufügen" %}

{% trans "Erstellen Sie zusätzliche Eingaben innerhalb eines bestehenden oder eigenen Abschnitts." %}

{% csrf_token %}
{% for group in custom_field_groups %} {% if active_custom_fields_section == group.key %}

{{ group.title }}

{% blocktrans trimmed with count=group.items|length %}{{ count }} Feld/Felder{% endblocktrans %}
{% for item in group.items %}
{{ item.label }}
{{ item.field_key }}
{{ group.title }} {{ item.get_field_type_display }} {% trans "Sortierung" %}: {{ item.sort_order }}
{% empty %}
{% trans "Keine eigenen Felder vorhanden." %}
{% endfor %}
{% endif %} {% endfor %}
{% elif active_module == 'preview' %}

{% trans "Live-Vorschau" %}

{% trans "So wirkt die aktuelle Struktur für das aktive Formular." %}

{% for section in preview_sections %}

{{ section.title }}

{% blocktrans trimmed with count=section.items|length %}{{ count }} Feld/Felder{% endblocktrans %}
{% for item in section.items %} {{ item.label }} {% empty %} {% trans "Keine sichtbaren Felder." %} {% endfor %}
{% endfor %}
{% endif %}
{% endblock %} {% block extra_scripts %} {% endblock %}