{# Macros for rendering table paginated with HTMX. #} {% macro search(form, target) %} {% endmacro %} {% macro button(form, id, page) %} {% if page is none %} {{ caller() }} {% else %} {% endif %} {% endmacro %} {% macro pagination(form) %}
{% trans nb_items=form.nb_items, nb_items_formatted=form.nb_items|numberformat %} {{ nb_items_formatted }} item {% pluralize %} {{ nb_items_formatted }} items {% endtrans %}
{% endmacro %}