12345678910111213 |
- {% macro get_report(all_reports) %}
- {% import 'table.html' as t %}
- {% import 'chart.html' as c %}
- {% for report in all_reports %}
- {% set _report = report|str_to_obj %}
- {% if _report.is_table %}
- {{t.get_table(_report.headers,_report.rows,_report.table_height,_report.table_width,_report.lock_column_count,_report.column_width)}}
- {% else %}
- {{c.get_chart(_report.chart,_report.chart_id,_report.table_height,_report.table_width)}}
- {% endif %}
- {% endfor %}
- {% endmacro %}
|