Fix Excel files

This commit is contained in:
2023-06-06 17:25:47 +02:00
parent 8e29948809
commit 8c576f8f2c
19 changed files with 182 additions and 339 deletions

View File

@@ -0,0 +1,12 @@
{% macro excel_button(files, function="excelSend") %}
{% if files %}
{% set call %}
{{ function }}({{ files }})
{% endset %}
{% else %}
{% set call = function + "()" %}
{% endif %}
<button class="btn btn-primary btn-small" onclick="{{ call }}">
<i class="mdi mdi-file-excel"></i> Excel
</button>
{% endmacro %}