Added new information to the dashboard
This commit is contained in:
parent
52d9e6488c
commit
b74cfbac9e
@ -57,6 +57,7 @@
|
||||
<strong>{{ selected_year }}</strong>
|
||||
{% if selected_month %}/<strong>{{ selected_month }}</strong>{% endif %}
|
||||
</p>
|
||||
<p>Comparado con el periodo inmediatamente anterior</p>
|
||||
|
||||
<hr>
|
||||
|
||||
@ -87,15 +88,22 @@
|
||||
<section class="kpi compare">
|
||||
<h3>Comparación con periodo anterior</h3>
|
||||
|
||||
<p>
|
||||
Total anterior: <strong>{{ kpi_previous_total|floatformat:2 }}</strong>
|
||||
</p>
|
||||
{% if kpi_previous_total == 0 %}
|
||||
<p><em>No hay datos en el periodo anterior</em></p>
|
||||
{% else %}
|
||||
<p>
|
||||
Total anterior: <strong>{{ kpi_previous_total|floatformat:2 }}</strong>
|
||||
</p>
|
||||
{% endif %}
|
||||
|
||||
<p>
|
||||
Diferencia:
|
||||
{% if kpi_difference > 0 %}
|
||||
<span>▲</span>
|
||||
{% elif kpi_difference < 0 %}
|
||||
<span>▼</span>
|
||||
{% else %}
|
||||
<span>=</span>
|
||||
{% endif %}
|
||||
<strong>{{ kpi_difference|floatformat:2 }}</strong>
|
||||
</p>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user