mirror of
https://github.com/Doctorado-ML/beflask.git
synced 2025-08-16 23:55:52 +00:00
Fix Excel files
This commit is contained in:
12
app/results/templates/macros.html
Normal file
12
app/results/templates/macros.html
Normal 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 %}
|
Reference in New Issue
Block a user