- {% endif %}
-
-
{{ 'Past charges'|trans }}
-
- {% if pastCharges|length > 0 %}
-
- {{ m.table_elements(pastCharges, 'charge') }}
-
- {% else %}
-
- {{ 'No past charges registered'|trans }}
-
- {% endif %}
-{% endif %}
-
-{% if futureCharges|length > 0 or futureResources|length > 0 %}
-
{{ 'Future budget'|trans }}
-
-
{{ 'Future resources'|trans }}
-
- {% if futureResources|length > 0 %}
-
- {{ m.table_elements(futureResources, 'resource') }}
-
- {% else %}
-
- {{ 'No future resources registered'|trans }}
-
- {% endif %}
-
-
{{ 'Future charges'|trans }}
-
- {% if futureCharges|length > 0 %}
-
- {{ m.table_elements(futureCharges, 'charge') }}
-
- {% else %}
-
- {{ 'No future charges registered'|trans }}
-
- {% endif %}
+ {% endfor %}
{% endif %}
{% if (resources|length + charges|length) == 0 or futureCharges|length > 0 or futureResources|length > 0 or pastCharges|length > 0 or pastResources|length > 0 %}
diff --git a/src/Bundle/ChillBudgetBundle/Resources/views/Person/index.html.twig b/src/Bundle/ChillBudgetBundle/Resources/views/Person/index.html.twig
index 377f4383d..621aa9f83 100644
--- a/src/Bundle/ChillBudgetBundle/Resources/views/Person/index.html.twig
+++ b/src/Bundle/ChillBudgetBundle/Resources/views/Person/index.html.twig
@@ -214,7 +214,7 @@
{% endif %}
- {% if is_granted('CHILL_BUDGET_ELEMENT_CREATE', person) %}
+ {# {% if is_granted('CHILL_BUDGET_ELEMENT_CREATE', person) %}
- {% endif %}
+ {% endif %} #}
{% endif %}
{% if pastCharges|length > 0 or pastResources|length > 0 %}
+
{{ 'Past resources'|trans }}
-
{{ 'Past resources'|trans }}
+ {% if pastResources|length > 0 %}
+
+ {{ m.table_elements(pastResources, 'resource') }}
+
+ {% else %}
+
+
{{ 'No past resources registered'|trans }}
+
+ {% endif %}
+
+
+
{{ 'Past charges'|trans }}
- {% if pastResources|length > 0 %}
-
- {{ m.table_elements(pastResources, 'resource') }}
-
- {% else %}
-
-
{{ 'No past resources registered'|trans }}
-
- {% endif %}
-
-
{{ 'Past charges'|trans }}
-
- {% if pastCharges|length > 0 %}
-
- {{ m.table_elements(pastCharges, 'charge') }}
-
- {% else %}
-
- {{ 'No past charges registered'|trans }}
-
- {% endif %}
+ {% if pastCharges|length > 0 %}
+
+ {{ m.table_elements(pastCharges, 'charge') }}
+
+ {% else %}
+
+ {{ 'No past charges registered'|trans }}
+
+ {% endif %}
+
{% endif %}
{% if futureCharges|length > 0 or futureResources|length > 0 %}
{{ 'Future budget'|trans }}
+
+
{{ 'Future resources'|trans }}
-
{{ 'Future resources'|trans }}
+ {% if futureResources|length > 0 %}
+
+ {{ m.table_elements(futureResources, 'resource') }}
+
+ {% else %}
+
+ {{ 'No future resources registered'|trans }}
+
+ {% endif %}
+
+
+
{{ 'Future charges'|trans }}
- {% if futureResources|length > 0 %}
-
- {{ m.table_elements(futureResources, 'resource') }}
-
- {% else %}
-
- {{ 'No future resources registered'|trans }}
-
- {% endif %}
-
-
{{ 'Future charges'|trans }}
-
- {% if futureCharges|length > 0 %}
-
- {{ m.table_elements(futureCharges, 'charge') }}
-
- {% else %}
-
- {{ 'No future charges registered'|trans }}
-
- {% endif %}
+ {% if futureCharges|length > 0 %}
+
+ {{ m.table_elements(futureCharges, 'charge') }}
+
+ {% else %}
+
+ {{ 'No future charges registered'|trans }}
+
+ {% endif %}
+
{% endif %}
{% if (resources|length + charges|length) == 0 or futureCharges|length > 0 or futureResources|length > 0 or pastCharges|length > 0 or pastResources|length > 0 %}