Switch to snippet-based reports
This commit is contained in:
parent
da330a6058
commit
ab2af1015a
6 changed files with 97 additions and 106 deletions
8
templates/report_snippet.html
Normal file
8
templates/report_snippet.html
Normal file
|
@ -0,0 +1,8 @@
|
|||
<div class="box">
|
||||
<h2 class="subtitle">{{ report.label }}</h2>
|
||||
{% if report.chart == 'table' %}
|
||||
<table id="table-{{ report.name }}" class="table is-striped"></table>
|
||||
{% else %}
|
||||
<canvas id="chart-{{ report.name }}"></canvas>
|
||||
{% endif %}
|
||||
</div>
|
Loading…
Add table
Add a link
Reference in a new issue