{% macro render_table(items, labels, display, actions) %} {% if items %}
{{ label }} | {% endfor %} {% if actions %}Actions | {% endif %}
---|---|
{{ item|getattr(display_item) }} {% endfor %} {% if actions %} | {% for action in actions %} {{ action.label }} {% endfor %} | {% endif %}
There are no items available.
{% endif %} {% endmacro %} {% macro render_create_button(url, label) %} {% endmacro %}