{# Reusable list-page chrome (header, segments, search + filters + per-page + pagination). Consumed by every dashboard list page. Keeps markup + query-param wiring in ONE place so the look/behaviour stays consistent. Macros: list_header(title, eyebrow, total, total_label, subtitle, actions) segments(base_url, items, active_key, search_value, filters, extra_params) list_controls(base_url, search_value, ..., filters, per_page, ...) list_pagination(base_url, page, per_page, total, ...) `filters` is a list of: {name, label, value, options: [(value, label), ...]} `extra_params` is a flat dict of additional query params to preserve on pagination links (e.g. ?status= on Patterns). #} {% macro list_header(title, eyebrow=None, total=None, total_label='total', subtitle=None, actions=[]) %}
{{ subtitle }}
{% endif %}Showing {{ total }} row(s).
{% endif %} {% endmacro %}