{# Query builder filter. Rules in a group are ANDed; groups are ORed. Buttons re-render the table with a `_qb` action. #} {% macro qb(action) -%} hx-get="{{ ctx.url('_tw', 'table') }}" hx-include="closest form" hx-vals='{{ {"_qb": action} | tojson }}' hx-target="#{{ table.id }}" hx-swap="outerHTML" {%- endmacro %} {% macro picker(label, where, icon_name='plus') %}
{{ builder.get_label() }}
{% for g in groups %} {% if not loop.first %}{{ __('and') }}
{% endif %}{{ __('No options') }}
{% endfor %}