improvements templates

This commit is contained in:
2022-03-02 11:44:10 +01:00
parent 0648154ba1
commit 900adc7105
7 changed files with 74 additions and 57 deletions

View File

@@ -1,6 +1,6 @@
{% from 'ChillBudgetBundle:Budget:_macros.html.twig' import table_elements, table_results %}
<h2 class="subtitle">{{ 'Actual budget'|trans }}</h2>
{# <h2 class="subtitle">{{ 'Actual budget'|trans }}</h2> #}
<div class="flex-table">
<h3 class="family-title">{{ 'Actual resources'|trans }}</h3>
@@ -17,8 +17,6 @@
</div>
<div class="flex-table">
<h3 class="family-title">{{ 'Actual charges'|trans }}</h3>
{% if actualCharges|length > 0 %}
<div class="item-bloc">
{{ table_elements(actualCharges, 'charge') }}
@@ -29,10 +27,12 @@
</div>
{% endif %}
{% if results|length > 0 %}
<h2>{{ 'Budget calculator'|trans }}</h2>
<div class="item-bloc">
{{ table_results(results) }}
{# {% if results|length > 0 %} #}
<div class="flex-table">
<h3 class="family-title">{{ 'Budget calculator'|trans }}</h2>
<div class="item-bloc">
{{ table_results(actualCharges, actualResources) }}
</div>
</div>
{% endif %}
{# {% endif %} #}
</div>