{% extends 'base/layout.html' %} {% load i18n %} {% block title %} {% if object %}{% trans "Edit Field" %}{% else %}{% trans "Add Field" %}{% endif %} {% endblock %} {% block content %}

{% if object %}{% trans "Edit Field" %}{% else %}{% trans "Add Field" %}{% endif %}

{% trans "Back" %}
{% trans "Rulebook" %}
{% trans "Rulebook" %}
{{ rulebook }}
{% trans "Feld-Konfiguration" %}
{% csrf_token %} {% if form.non_field_errors %}
{{ form.non_field_errors }}
{% endif %} {% if form.errors %}
{% trans "Please correct the errors below." %}
    {% for field, error_list in form.errors.items %} {% if field != "__all__" %} {% for error in error_list %}
  • {{ field }}: {{ error }}
  • {% endfor %} {% endif %} {% endfor %}
{% endif %}
{{ form.name }} {% if form.name.errors %}
{{ form.name.errors }}
{% endif %} {% if not object %}
{% trans "The slug is generated automatically from the name (lowercase, letters and numbers only)." %}
{% endif %}
{% if form.slug %}
{{ form.slug }} {% if form.slug.errors %}
{{ form.slug.errors }}
{% endif %}
{% if object and object.is_system_field %} {% trans "Fixed internal identifier for this standard field." %} {% else %} {% trans "Set automatically when the field was created. Cannot be changed." %} {% endif %}
{% endif %}
{{ form.sort_order }} {% if form.sort_order.errors %}
{{ form.sort_order.errors }}
{% endif %}
{% trans "Order of this column in the policy table (lower = further left)." %}
{{ form.visible }} {% if form.visible.errors %}
{{ form.visible.errors }}
{% endif %}
{% if object and object.is_system_field %}
{{ form.placement }}
{% trans "Fixed for standard policy table columns." %}
{% trans "Standard fields can be renamed, reordered and hidden. Slug and placement are fixed." %}
{% else %}
{{ form.placement }} {% if form.placement.errors %}
{{ form.placement.errors }}
{% endif %}
{{ form.placement.help_text }}
{% endif %} {% if not object or not object.is_system_field %} {% if form.facet_mode %}
{{ form.facet_mode }} {% if form.facet_mode.errors %}
{{ form.facet_mode.errors }}
{% endif %}
{% trans "Only for fields without sub-types. After adding a type, configure facets on each type row." %}
{% elif object and object.has_subfield_types %}
{% trans "Facet filters are configured on each sub-type (type row), not on this parent field." %}
{% endif %}
{{ form.max_visible_pills }} {% if form.max_visible_pills.errors %}
{{ form.max_visible_pills.errors }}
{% endif %}
{% if object and object.is_container_field %} {% trans "Applies to each sub-type column; shown on the type rows in the fields table." %} {% else %} {% trans "How many object pills to show per cell in the policy table. Further values are hidden behind +X until clicked." %} {% endif %}
{% endif %}
{% trans "Cancel" %}
{% endblock %} {% block javascript %} {{ block.super }} {% if not object %} {% endif %} {% endblock %}