{%- 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, bordered, condensed, hover, caption) -%} {%- set class = "table" %} {%- if bordered -%} {%- set class = class ~ " table-bordered" %} {%- endif %} {%- if striped -%} {%- set class = class ~ " table-striped" %} {%- endif %} {%- if condensed -%} {%- set class = class ~ " table-sm" %} {%- endif %} {%- if hover -%} {%- set class = class ~ " table-hover" %} {%- endif -%} {%- if caption -%} {%- endif %} {{ content }}
{{ caption }}
{%- endmacro %}