From d6bad9e030c6ab33805209e2241b5b1d3f7d93e4 Mon Sep 17 00:00:00 2001 From: Julie Lenaerts Date: Tue, 1 Mar 2022 11:07:53 +0100 Subject: [PATCH] reorganization of templates --- .../Resources/views/Budget/_budget.html.twig | 66 ++++ .../views/Budget/_current_budget.html.twig | 38 ++ .../views/Budget/_future_budget.html.twig | 53 +++ .../Resources/views/Budget/_macros.html.twig | 87 +++++ .../views/Budget/_past_budget.html.twig | 54 +++ .../Resources/views/Household/index.html.twig | 364 ++---------------- .../Resources/views/Person/index.html.twig | 294 +------------- .../translations/messages.fr.yml | 4 + 8 files changed, 345 insertions(+), 615 deletions(-) create mode 100644 src/Bundle/ChillBudgetBundle/Resources/views/Budget/_budget.html.twig create mode 100644 src/Bundle/ChillBudgetBundle/Resources/views/Budget/_current_budget.html.twig create mode 100644 src/Bundle/ChillBudgetBundle/Resources/views/Budget/_future_budget.html.twig create mode 100644 src/Bundle/ChillBudgetBundle/Resources/views/Budget/_macros.html.twig create mode 100644 src/Bundle/ChillBudgetBundle/Resources/views/Budget/_past_budget.html.twig diff --git a/src/Bundle/ChillBudgetBundle/Resources/views/Budget/_budget.html.twig b/src/Bundle/ChillBudgetBundle/Resources/views/Budget/_budget.html.twig new file mode 100644 index 000000000..d42af20c3 --- /dev/null +++ b/src/Bundle/ChillBudgetBundle/Resources/views/Budget/_budget.html.twig @@ -0,0 +1,66 @@ +{% set entity = person is defined ? person : household %} + +{% set actualResources = [] %} +{% set futureResources = [] %} +{% set pastResources = [] %} + +{% for r in resources %} + {% if r.startDate|date('U') <= 'now'|date('U') %} + {% if r.endDate is null or r.endDate|date('U') >= 'now'|date('U') %} + {% set actualResources = actualResources|merge([ r ]) %} + {% else %} + {% set pastResources = pastResources|merge([ r ]) %} + {% endif %} + {% else %} + {% set futureResources = futureResources|merge([ r ]) %} + {% endif %} +{% endfor %} + +{% set actualCharges = [] %} +{% set futureCharges = [] %} +{% set pastCharges = [] %} + +{% for c in charges %} + {% if c.startDate|date('U') <= 'now'|date('U') %} + {% if c.endDate is null or c.endDate|date('U') >= 'now'|date('U') %} + {% set actualCharges = actualCharges|merge([ c ]) %} + {% else %} + {% set pastCharges = pastCharges|merge([ c ]) %} + {% endif %} + {% else %} + {% set futureCharges = futureCharges|merge([ c ]) %} + {% endif %} +{% endfor %} + +{% if resources|length == 0 and charges|length == 0 %} +
+
+

{{ "There isn't any element recorded"|trans }}

+
+
+{% else %} + +{% include 'ChillBudgetBundle:Budget:_current_budget.html.twig' with { + 'actualResources': actualResources, + 'actualCharges': actualCharges, + 'results': results, + 'entity': entity +} %} + +{% endif %} + +{% if pastCharges|length > 0 or pastResources|length > 0 %} + {% include 'ChillBudgetBundle:Budget:_past_budget.html.twig' with { + 'pastCharges': pastCharges, + 'pastResources': pastResources, + 'entity': entity + } %} +{% endif %} + +{% if futureCharges|length > 0 or futureResources|length > 0 %} + {% include 'ChillBudgetBundle:Budget:_future_budget.html.twig' with { + 'futureResources': futureResources, + 'futureCharges': futureCharges, + 'entity': entity + } %} +{% endif %} diff --git a/src/Bundle/ChillBudgetBundle/Resources/views/Budget/_current_budget.html.twig b/src/Bundle/ChillBudgetBundle/Resources/views/Budget/_current_budget.html.twig new file mode 100644 index 000000000..fcd56d18c --- /dev/null +++ b/src/Bundle/ChillBudgetBundle/Resources/views/Budget/_current_budget.html.twig @@ -0,0 +1,38 @@ +{% from 'ChillBudgetBundle:Budget:_macros.html.twig' import table_elements, table_results %} + +

{{ 'Actual budget'|trans }}

+ +
+

{{ 'Actual resources'|trans }}

+ + {% if actualResources|length > 0 %} +
+ {{ table_elements(actualResources, 'resource') }} +
+ {% else %} +
+ {{ 'No resources registered'|trans }} +
+ {% endif %} +
+ +
+

{{ 'Actual charges'|trans }}

+ + {% if actualCharges|length > 0 %} +
+ {{ table_elements(actualCharges, 'charge') }} +
+ {% else %} +
+ {{ 'No charges registered'|trans }} +
+ {% endif %} + + {% if results|length > 0 %} +

{{ 'Budget calculator'|trans }}

+
+ {{ table_results(results) }} +
+ {% endif %} +
\ No newline at end of file diff --git a/src/Bundle/ChillBudgetBundle/Resources/views/Budget/_future_budget.html.twig b/src/Bundle/ChillBudgetBundle/Resources/views/Budget/_future_budget.html.twig new file mode 100644 index 000000000..a8e390832 --- /dev/null +++ b/src/Bundle/ChillBudgetBundle/Resources/views/Budget/_future_budget.html.twig @@ -0,0 +1,53 @@ +{% from 'ChillBudgetBundle:Budget:_macros.html.twig' import table_elements, table_results %} + +

{{ 'Future budget'|trans }}

+ +
+
+

+ +

+ +
+ +
+

{{ 'Future resources'|trans }}

+ + {% if futureResources|length > 0 %} +
+ {{ table_elements(futureResources, 'resource') }} +
+ {% else %} +
+ {{ 'No future resources registered'|trans }} +
+ {% endif %} +
+
+

{{ 'Future charges'|trans }}

+ + {% if futureCharges|length > 0 %} +
+ {{ table_elements(futureCharges, 'charge') }} +
+ {% else %} +
+ {{ 'No future charges registered'|trans }} +
+ {% endif %} +
+
+
+
\ No newline at end of file diff --git a/src/Bundle/ChillBudgetBundle/Resources/views/Budget/_macros.html.twig b/src/Bundle/ChillBudgetBundle/Resources/views/Budget/_macros.html.twig new file mode 100644 index 000000000..17331799d --- /dev/null +++ b/src/Bundle/ChillBudgetBundle/Resources/views/Budget/_macros.html.twig @@ -0,0 +1,87 @@ +{% macro table_elements(elements, family) %} + + + + + + + + + + + {% set total = 0 %} + {% for f in elements %} + {% set total = total + f.amount %} + + + + + + + {% endfor %} + + + + + + + +
{{ 'Budget element type'|trans }}{{ 'Amount'|trans }}{{ 'Validity period'|trans }} 
+ {{ f.type|budget_element_type_display(family) }} + {{ f.amount|format_currency('EUR') }} + {% if f.endDate is not null %} + {{ 'Valid since %startDate% until %endDate%'|trans( { '%startDate%': f.startDate|format_date('short'), '%endDate%': f.endDate|format_date('short') } ) }} + {% else %} + {{ 'Valid since %startDate%'|trans( { '%startDate%': f.startDate|format_date('short') } ) }} + {% endif %} + +
    + {% if is_granted('CHILL_BUDGET_ELEMENT_SEE', f) %} +
  • + +
  • + {% endif %} + {% if is_granted('CHILL_BUDGET_ELEMENT_UPDATE', f) %} +
  • + +
  • + {% endif %} + {% if is_granted('CHILL_BUDGET_ELEMENT_DELETE', f) %} +
  • + +
  • + {% endif %} +
+
+ {{ 'Total'|trans }} + + {{ total|format_currency('EUR') }} +   
+{% endmacro %} + +{% macro table_results(results) %} + + + + + + + + + {% for result in results %} + + + + + {% endfor %} + +
 {{ 'Budget calculator result'|trans }}
{{ result.label }} + {% if result.type == constant('CHILL\\BudgetBundle\\Calculator\\CalculatorResult::TYPE_CURRENCY') %} + {{ result.result|format_currency('EUR') }} + {% elseif result.type == constant('CHILL\\BudgetBundle\\Calculator\\CalculatorResult::TYPE_PERCENTAGE') %} + {{ result.result|round(2, 'ceil') ~ '%' }} + {% else %} + {{ result.result|round(2, 'common') }} + {% endif %} +
+{% endmacro %} \ No newline at end of file diff --git a/src/Bundle/ChillBudgetBundle/Resources/views/Budget/_past_budget.html.twig b/src/Bundle/ChillBudgetBundle/Resources/views/Budget/_past_budget.html.twig new file mode 100644 index 000000000..2740e9027 --- /dev/null +++ b/src/Bundle/ChillBudgetBundle/Resources/views/Budget/_past_budget.html.twig @@ -0,0 +1,54 @@ +{% from 'ChillBudgetBundle:Budget:_macros.html.twig' import table_elements, table_results %} + +

{{ 'Past budget'|trans }}

+ +
+
+

+ +

+ +
+ +
+

{{ 'Past resources'|trans }}

+ + {% if pastResources|length > 0 %} +
+ {{ table_elements(pastResources, 'resource') }} +
+ {% else %} +
+ {{ 'No past resources registered'|trans }} +
+ {% endif %} +
+ +
+

{{ 'Past charges'|trans }}

+ + {% if pastCharges|length > 0 %} +
+ {{ table_elements(pastCharges, 'charge') }} +
+ {% else %} +
+ {{ 'No past charges registered'|trans }} +
+ {% endif %} +
+
+
+
\ No newline at end of file diff --git a/src/Bundle/ChillBudgetBundle/Resources/views/Household/index.html.twig b/src/Bundle/ChillBudgetBundle/Resources/views/Household/index.html.twig index 2682b7b7a..5fccfece6 100644 --- a/src/Bundle/ChillBudgetBundle/Resources/views/Household/index.html.twig +++ b/src/Bundle/ChillBudgetBundle/Resources/views/Household/index.html.twig @@ -1,5 +1,7 @@ {% extends "@ChillPerson/Household/layout.html.twig" %} +{% from 'ChillBudgetBundle:Budget:_macros.html.twig' import table_elements, table_results %} + {% set activeRouteKey = '' %} {% set title = 'Budget for household %household%'|trans({ '%household%' : household.id } ) %} {% block title title %} @@ -58,283 +60,14 @@ {% endblock %} -{% set actualResources = [] %} -{% set futureResources = [] %} -{% set pastResources = [] %} - -{% for r in resources %} - {% if r.startDate|date('U') <= 'now'|date('U') %} - {% if r.endDate is null or r.endDate|date('U') >= 'now'|date('U') %} - {% set actualResources = actualResources|merge([ r ]) %} - {% else %} - {% set pastResources = pastResources|merge([ r ]) %} - {% endif %} - {% else %} - {% set futureResources = futureResources|merge([ r ]) %} - {% endif %} -{% endfor %} - -{% set actualCharges = [] %} -{% set futureCharges = [] %} -{% set pastCharges = [] %} - -{% for c in charges %} - {% if c.startDate|date('U') <= 'now'|date('U') %} - {% if c.endDate is null or c.endDate|date('U') >= 'now'|date('U') %} - {% set actualCharges = actualCharges|merge([ c ]) %} - {% else %} - {% set pastCharges = pastCharges|merge([ c ]) %} - {% endif %} - {% else %} - {% set futureCharges = futureCharges|merge([ c ]) %} - {% endif %} -{% endfor %} - - -{% macro table_elements(elements, family) %} - - - - - - - - - - - {% set total = 0 %} - {% for f in elements %} - {% set total = total + f.amount %} - - - - - - - {% endfor %} - - - - - - - -
{{ 'Budget element type'|trans }}{{ 'Amount'|trans }}{{ 'Validity period'|trans }} 
- {{ f.type|budget_element_type_display(family) }} - {{ f.amount|format_currency('EUR') }} - {% if f.endDate is not null %} - {{ 'Valid since %startDate% until %endDate%'|trans( { '%startDate%': f.startDate|format_date('short'), '%endDate%': f.endDate|format_date('short') } ) }} - {% else %} - {{ 'Valid since %startDate%'|trans( { '%startDate%': f.startDate|format_date('short') } ) }} - {% endif %} - -
    - {% if is_granted('CHILL_BUDGET_ELEMENT_SEE', f) %} -
  • - -
  • - {% endif %} - {% if is_granted('CHILL_BUDGET_ELEMENT_UPDATE', f) %} -
  • - -
  • - {% endif %} - {% if is_granted('CHILL_BUDGET_ELEMENT_DELETE', f) %} -
  • - -
  • - {% endif %} -
-
- {{ 'Total'|trans }} - - {{ total|format_currency('EUR') }} -   
-{% endmacro %} - -{% macro table_results(results) %} - - - - - - - - - {% for result in results %} - - - - - {% endfor %} - -
 {{ 'Budget calculator result'|trans }}
{{ result.label }} - {% if result.type == constant('CHILL\\BudgetBundle\\Calculator\\CalculatorResult::TYPE_CURRENCY') %} - {{ result.result|format_currency('EUR') }} - {% elseif result.type == constant('CHILL\\BudgetBundle\\Calculator\\CalculatorResult::TYPE_PERCENTAGE') %} - {{ result.result|round(2, 'ceil') ~ '%' }} - {% else %} - {{ result.result|round(2, 'common') }} - {% endif %} -
-{% endmacro %} - -{% import _self as m %} - {% block content %}

{{ title }}

-

{{ 'Actual budget'|trans }}

- -{% if resources|length == 0 and charges|length == 0 %} -

{{ "There isn't any element recorded"|trans }}

-{% else %} - -
-

{{ 'Actual resources'|trans }}

- - {% if actualResources|length > 0 %} -
- {{ m.table_elements(actualResources, 'resource') }} -
- {% else %} -
- {{ 'No resources registered'|trans }} -
- {% endif %} -
- -
-

{{ 'Actual charges'|trans }}

- - {% if actualCharges|length > 0 %} -
- {{ m.table_elements(actualCharges, 'charge') }} -
- {% else %} -
- {{ 'No charges registered'|trans }} -
- {% endif %} - - {% if results|length > 0 %} -

{{ 'Budget calculator'|trans }}

-
- {{ m.table_results(results) }} -
- {% endif %} -
- -{% endif %} - -{% if pastCharges|length > 0 or pastResources|length > 0 %} -

{{ 'Past budget'|trans }}

- -
-
-

- -

- -
- -
-

{{ 'Past resources'|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 %} -
-
-
-
-{% 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 %} -
-
-
-
-{% endif %} +{% include 'ChillBudgetBundle:Budget:_budget.html.twig' with { + 'resources': resources, + 'charges': charges, + 'household': household +} %} {% if household.getCurrentMembers|length > 0 %}

{{ 'Current budget household members'|trans }}

@@ -352,7 +85,7 @@ aria-expanded="false" aria-controls="collapse_{{ member.id }}"> {{ 'Show budget of %name%'|trans({'%name%': member.firstName ~ " " ~ member.lastName }) }} - {{ 'Hide budget'|trans }} + {{ 'Hide budget of %name%'|trans({'%name%': member.firstName ~ " " ~ member.lastName }) }} @@ -361,50 +94,26 @@ aria-labelledby="heading_{{ member.id }}" data-bs-parent="#nonCurrent"> - {% if member.getBudgetResources|length > 0 or member.getBudgetCharges|length > 0 %} -<<<<<<< HEAD + {% include 'ChillBudgetBundle:Budget:_budget.html.twig' with { + 'resources': member.getBudgetResources, + 'charges': member.getBudgetCharges, + 'person': member + } %} -======= ->>>>>>> 26373e5d238031e1af840ab2e9b4034a2227df0a -
-

{{ 'Actual resources for %name%'|trans({ '%name%' : member.firstName ~ " " ~ member.lastName }) }}

- {% if member.getBudgetResources|length > 0 %} - {% set memberResources = member.getBudgetResources %} -
- {{ m.table_elements(memberResources, 'resource') }} -
- {% else %} -
- {{ 'No resources registered'|trans }} -
- {% endif %} -
- -
-

{{ 'Actual charges for %name%'|trans({ '%name%' : member.firstName ~ " " ~ member.lastName }) }}

- - {% if member.getBudgetCharges|length > 0 %} - {% set memberCharges = member.getBudgetCharges %} -
- {{ m.table_elements(memberCharges, 'charge') }} -
- {% else %} -
- {{ 'No charges registered'|trans }} -
- {% endif %} -
- {% else %} -
-
- {{ 'No current budget element registered'|trans }} -
-
- {% endif %}
@@ -412,18 +121,17 @@ {% endfor %} {% endif %} -{% if (resources|length + charges|length) == 0 or futureCharges|length > 0 or futureResources|length > 0 or pastCharges|length > 0 or pastResources|length > 0 %} - {% if is_granted('CHILL_BUDGET_ELEMENT_CREATE', household) %} - - {% endif %} +{% if is_granted('CHILL_BUDGET_ELEMENT_CREATE', household) %} + {% endif %} + {% endblock %} diff --git a/src/Bundle/ChillBudgetBundle/Resources/views/Person/index.html.twig b/src/Bundle/ChillBudgetBundle/Resources/views/Person/index.html.twig index 192eb86a1..fa8e5ef5a 100644 --- a/src/Bundle/ChillBudgetBundle/Resources/views/Person/index.html.twig +++ b/src/Bundle/ChillBudgetBundle/Resources/views/Person/index.html.twig @@ -57,296 +57,16 @@ {% endblock %} -{% set actualResources = [] %} -{% set futureResources = [] %} -{% set pastResources = [] %} - -{% for r in resources %} - {% if r.startDate|date('U') <= 'now'|date('U') %} - {% if r.endDate is null or r.endDate|date('U') >= 'now'|date('U') %} - {% set actualResources = actualResources|merge([ r ]) %} - {% else %} - {% set pastResources = pastResources|merge([ r ]) %} - {% endif %} - {% else %} - {% set futureResources = futureResources|merge([ r ]) %} - {% endif %} -{% endfor %} - -{% set actualCharges = [] %} -{% set futureCharges = [] %} -{% set pastCharges = [] %} - -{% for c in charges %} - {% if c.startDate|date('U') <= 'now'|date('U') %} - {% if c.endDate is null or c.endDate|date('U') >= 'now'|date('U') %} - {% set actualCharges = actualCharges|merge([ c ]) %} - {% else %} - {% set pastCharges = pastCharges|merge([ c ]) %} - {% endif %} - {% else %} - {% set futureCharges = futureCharges|merge([ c ]) %} - {% endif %} -{% endfor %} - - -{% macro table_elements(elements, family) %} - - - - - - - - - - - {% set total = 0 %} - {% for f in elements %} - {% set total = total + f.amount %} - - - - - - - {% endfor %} - - - - - - - -
{{ 'Budget element type'|trans }}{{ 'Amount'|trans }}{{ 'Validity period'|trans }} 
- {{ f.type|budget_element_type_display(family) }} - {{ f.amount|format_currency('EUR') }} - {% if f.endDate is not null %} - {{ 'Valid since %startDate% until %endDate%'|trans( { '%startDate%': f.startDate|format_date('short'), '%endDate%': f.endDate|format_date('short') } ) }} - {% else %} - {{ 'Valid since %startDate%'|trans( { '%startDate%': f.startDate|format_date('short') } ) }} - {% endif %} - -
    - {% if is_granted('CHILL_BUDGET_ELEMENT_SEE', f) %} -
  • - -
  • - {% endif %} - {% if is_granted('CHILL_BUDGET_ELEMENT_UPDATE', f) %} -
  • - -
  • - {% endif %} - {% if is_granted('CHILL_BUDGET_ELEMENT_DELETE', f) %} -
  • - -
  • - {% endif %} -
-
- {{ 'Total'|trans }} - - {{ total|format_currency('EUR') }} -   
-{% endmacro %} - -{% macro table_results(results) %} - - - - - - - - - {% for result in results %} - - - - - {% endfor %} - -
 {{ 'Budget calculator result'|trans }}
{{ result.label }} - {% if result.type == constant('CHILL\\BudgetBundle\\Calculator\\CalculatorResult::TYPE_CURRENCY') %} - {{ result.result|format_currency('EUR') }} - {% elseif result.type == constant('CHILL\\BudgetBundle\\Calculator\\CalculatorResult::TYPE_PERCENTAGE') %} - {{ result.result|round(2, 'ceil') ~ '%' }} - {% else %} - {{ result.result|round(2, 'common') }} - {% endif %} -
-{% endmacro %} - -{% import _self as m %} - {% block content %}

{{ title }}

-

{{ 'Actual budget'|trans }}

+{% include 'ChillBudgetBundle:Budget:_budget.html.twig' with { + 'resources': resources, + 'charges': charges, + 'person': person +} %} -{% if resources|length == 0 and charges|length == 0 %} -

{{ "There isn't any element recorded"|trans }}

-{% else %} - -
-

{{ 'Actual resources'|trans }}

- - {% if actualResources|length > 0 %} -
- {{ m.table_elements(actualResources, 'resource') }} -
- {% else %} -
- {{ 'No resources registered'|trans }} -
- {% endif %} -
- -
-

{{ 'Actual charges'|trans }}

- - {% if actualCharges|length > 0 %} -
- {{ m.table_elements(actualCharges, 'charge') }} -
- {% else %} -
- {{ 'No charges registered'|trans }} -
- {% endif %} - - {% if results|length > 0 %} -

{{ 'Budget calculator'|trans }}

-
- {{ m.table_results(results) }} -
- {% endif %} -
- - {# {% if is_granted('CHILL_BUDGET_ELEMENT_CREATE', person) %} - - {% endif %} #} - -{% endif %} - -{% if pastCharges|length > 0 or pastResources|length > 0 %} -

{{ 'Past budget'|trans }}

- -
-
-

- -

- -
- -
-

{{ 'Past resources'|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 %} -
-
-
-
-{% 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 %} -
-
-
-
-{% endif %} - -{% if (resources|length + charges|length) == 0 or futureCharges|length > 0 or futureResources|length > 0 or pastCharges|length > 0 or pastResources|length > 0 %} +{# {% if (resources|length + charges|length) == 0 or futureCharges|length > 0 or futureResources|length > 0 or pastCharges|length > 0 or pastResources|length > 0 %} #} {% if is_granted('CHILL_BUDGET_ELEMENT_CREATE', person) %}
  • @@ -357,7 +77,7 @@
{% endif %} -{% endif %} +{# {% endif %} #} {% endblock %} diff --git a/src/Bundle/ChillBudgetBundle/translations/messages.fr.yml b/src/Bundle/ChillBudgetBundle/translations/messages.fr.yml index 20ba57437..01903fd24 100644 --- a/src/Bundle/ChillBudgetBundle/translations/messages.fr.yml +++ b/src/Bundle/ChillBudgetBundle/translations/messages.fr.yml @@ -1,10 +1,13 @@ Budget: Budget +Resource: Ressource +Charge: Charge Budget for %name%: Budget de %name% Budget for household %household%: Budget de ménage %household% Current budget household members: Budgets actuelles des membres du ménage Show budget of %name%: Montrer budget de %name% See complete budget: Voir budget complet Hide budget: Masquer +Hide budget of %name%: Masquer budget de %name% Resource element type: Nature de la ressource Actual budget: Budget actuel Actual resources: Ressources actuelles @@ -26,6 +29,7 @@ End of validity period: Fin de la période de validité Total: Total Create new resource: Créer une nouvelle ressource Create new charge: Créer une nouvelle charge +See person: Voir person There isn't any element recorded: Aucun élément enregistré No resources registered: Aucune ressource enregistrée