{% load wise_icons i18n %} {% comment %} Switches a list page between a card-list and a data-table rendering of the exact same queryset, via a `?view=` query param - see the Patterns section of the docs (Card list vs. Data table) and the Categories/Products demo pages for two call sites. Every list page defaults to the card list; the including template always writes that default as `{% with view_mode=request.GET.view|default:"cards" %}` and branches its own `list_body` block on it, so `?view=table` is the opt-in. This component only renders the two buttons that link between the states. {% endcomment %}
{% lucide "layout-dashboard" size=16 %} {% lucide "menu" size=16 %}