{%- macro chart(content, type, data, labels) -%} {# Documentation: https://chartist.dev/ #} {%- if data -%} {%- set id = ui.util.id() -%} {%- set payload = {"series": data or [], "labels": labels or []} -%}
{{ content }}
{%- else -%}
{{ _("No data provided") }}
{%- endif %} {%- endmacro %} {%- macro table(content, striped=false, bordered=false, condensed=false, hover=false, caption=none) -%} {%- if caption -%}{%- endif -%} {{ content }}
{{ caption }}
{%- endmacro %}