{% macro bs_list(view, object_list=None, is_paginated=False, page_obj=None) -%} {% from 'bs_panel.htm' import bs_panel with context -%} {% from 'bs_breadcrumbs.htm' import bs_breadcrumbs with context -%} {% from 'bs_filters.htm' import bs_filters with context -%} {% from 'bs_pagination.htm' import bs_pagination with context -%} {% call bs_panel( type='primary', heading=view.get_heading(), ) -%} {% for field in view.allowed_filter_fields -%} {{ bs_breadcrumbs(*view.get_filter_args(field)) }} {% endfor -%} {% if object_list -%}
{% if field in view.allowed_sort_orders -%} {{ view.get_sort_order_link(field) }} {% else -%} {{ field }} {% endif -%} | {% endfor -%}
---|
{{ view.get_display_value(obj, field) }} | {% endfor -%}