{% extends "structure/base.html" %} {% block content %} {% set is_advanced_filter = request.args.get('advanced_filter') %} {% set return_here = request.full_path.rstrip('?') %}

{{ construct.t(view.name) }}

{{ icon("add", style="font-size: 14px;") }} {{ construct.t("crud-create-rec", {'recname': construct.t(view.name, {'count': 1}) }) }}
{% for fld, type in fields %} {% endfor %} {% for fld, type in fields %} {% endfor %} {% for row in data %} {% for field, type in fields %} {% endfor %} {% endfor %}
{{ construct.t(type.name).capitalize() }}{{ construct.t("crud-action-title") }}
{% if not type.skipfilter %} {% if type.field_type == 'enum' %} {% else %} {% endif %} {% endif %}
{{ icon("search", style="font-size: 16px;") }}
{% if type.field_type == 'bool' %} {% if row[field] %} {{ icon("check", style="color: var(--fcu-success); font-size: 20px; font-variation-settings: 'FILL' 1") }} {% else %} {{ icon("cancel", style="color: var(--fcu-danger); font-size: 20px; font-variation-settings: 'FILL' 1") }} {% endif %} {% elif type.field_type == 'set' %} {% if row[field] %}
{% for item in row[field] %} {% if item in type.sets %} {{ construct.t(type.sets[item]) }} {% endif %} {% endfor %}
{% endif %} {% elif type.field_type == 'manyrelated' %} {% set items = type.format_value(field, row) %} {% if items %}
{% for item in items %} {{ item }} {% endfor %}
{% endif %} {% else %} {{ type.format_value(field,row) }} {% endif %}
{{ icon("edit") }} {% if list_actions %} {% for action in list_actions %} {{ icon(action.icon) }} {% endfor %} {% endif %} {# nosemgrep: django-no-csrf-token — Flask app; CSRF is handled by {{ csrf_field() }} below, not Django's {% csrf_token %}. #}
{{ csrf_field() }}
{% if pagination and pagination.pages > 1 %} {% endif %}
{% endblock content %}