diff --git a/DependencyInjection/Configuration.php b/DependencyInjection/Configuration.php index 7774e08fd..1e1769d89 100644 --- a/DependencyInjection/Configuration.php +++ b/DependencyInjection/Configuration.php @@ -17,8 +17,8 @@ class Configuration implements ConfigurationInterface */ public function getConfigTreeBuilder() { - $treeBuilder = new TreeBuilder(); - $rootNode = $treeBuilder->root('chill_amli_budget'); + $treeBuilder = new TreeBuilder('chill_amli_budget'); + $rootNode = $treeBuilder->getRootNode('chill_amli_budget'); $rootNode ->children() diff --git a/Resources/views/Resource/view.html.twig b/Resources/views/Resource/view.html.twig index b7a082041..a472c42cc 100644 --- a/Resources/views/Resource/view.html.twig +++ b/Resources/views/Resource/view.html.twig @@ -14,14 +14,14 @@
{{ element.type|budget_element_type_display('resource') }}
{{ 'Amount'|trans }}
-
{{ element.amount|localizedcurrency('EUR') }}
+
{{ element.amount|format_currency('EUR') }}
{{ 'Validity period'|trans }}
{% if element.endDate is not null %} - {{ 'Valid since %startDate% until %endDate%'|trans( { '%startDate%': element.startDate|localizeddate('long', 'none'), '%endDate%': familyMember.endDate|localizeddate('long', 'none') } ) }} + {{ 'Valid since %startDate% until %endDate%'|trans( { '%startDate%': element.startDate|format_date('long', 'none'), '%endDate%': familyMember.endDate|format_date('long', 'none') } ) }} {% else %} - {{ 'Valid since %startDate%'|trans( { '%startDate%': element.startDate|localizeddate('long', 'none') } ) }} + {{ 'Valid since %startDate%'|trans( { '%startDate%': element.startDate|format_date('long', 'none') } ) }} {% endif %}