{% extends "staff/base.html" %}
{% block header_scripts %}
{% endblock %}
{% block content %}
{% htmxfragment "list" as="section" %}
{% endif %} {% for field in fields %} {% if order_by_field is defined %} |
{% if table_style == "simple" %}
{{ field }}
{% else %}
{{ field }}
{% if field == order_by_field %}
{% if order_by_direction == "-" %}
▲
{% else %}
▼
{% endif %}
{% endif %}
{% endif %}
|
{% else %}
{{ field }} | {% endif %} {% endfor %} {# A th that spans any links columns that will be added #}|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
{% endif %} {% for field in fields %} {# Make every column clickable if it doesn't contain a link already #} |
{% set value = get_field_value(object, field) %}
{% include get_field_value_template(object, field, value) with context %}
|
{% endfor %}
{% set object_links = get_object_links(object) %}
{% if object_links %}
{% endif %} |