{% extends "structure/base.html" %} {% block content %} {% set is_advanced_filter = request.args.get('advanced_filter') %} {% set return_here = request.full_path.rstrip('?') %}
|
{% 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 %}
|
{% endfor %}
{{ 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 %}. #}
|