Update path to twig template with new syntax

This commit is contained in:
2023-07-28 12:16:50 +02:00
parent 55b8502896
commit e839b03cc9
111 changed files with 220 additions and 223 deletions

View File

@@ -51,7 +51,7 @@ class ElementController extends AbstractController
$results = $this->calculator->calculateDefault($elements);
}
return $this->render('ChillBudgetBundle:Person:index.html.twig', [
return $this->render('@ChillBudget/Person/index.html.twig', [
'person' => $person,
'charges' => $charges,
'resources' => $resources,
@@ -75,7 +75,7 @@ class ElementController extends AbstractController
$results = $this->calculator->calculateDefault($elements);
}
return $this->render('ChillBudgetBundle:Household:index.html.twig', [
return $this->render('@ChillBudget/Household/index.html.twig', [
'household' => $household,
'charges' => $charges,
'resources' => $resources,

View File

@@ -1,4 +1,4 @@
{% from 'ChillBudgetBundle:Budget:_macros.html.twig' import table_elements, table_results %}
{% from '@ChillBudget/Budget/_macros.html.twig' import table_elements, table_results %}
<div class="accordion" id="future_{{ entity.id }}">
<div class="accordion-item">

View File

@@ -1,4 +1,4 @@
{% from 'ChillBudgetBundle:Budget:_macros.html.twig' import table_elements, table_results %}
{% from '@ChillBudget/Budget/_macros.html.twig' import table_elements, table_results %}
<div class="accordion" id="past_{{ entity.id }}">
<div class="accordion-item">

View File

@@ -18,7 +18,7 @@
{% block content %}
{{ include('ChillMainBundle:Util:confirmation_template.html.twig',
{{ include('@ChillMain/Util/confirmation_template.html.twig',
{
'title' : 'Remove charge'|trans,
'confirm_question' : confirm_question,

View File

@@ -1,6 +1,6 @@
{% extends "@ChillPerson/Household/layout.html.twig" %}
{% from 'ChillBudgetBundle:Budget:_macros.html.twig' import table_elements, table_results %}
{% from '@ChillBudget/Budget/_macros.html.twig' import table_elements, table_results %}
{% set activeRouteKey = '' %}
{% set title = 'Budget for household %household%'|trans({ '%household%' : household.id } ) %}
@@ -17,7 +17,7 @@
{% block content %}
<h1>{{ title }}</h1>
{% include 'ChillBudgetBundle:Budget:_budget.html.twig' with {
{% include '@ChillBudget/Budget/_budget.html.twig' with {
'resources': resources,
'charges': charges,
'household': household
@@ -57,7 +57,7 @@
<h2 class="mt-4">{{ 'Budget for %name%'|trans({'%name%': member.firstName ~ " " ~ member.lastName }) }}</h2>
{% include 'ChillBudgetBundle:Budget:_budget.html.twig' with {
{% include '@ChillBudget/Budget/_budget.html.twig' with {
'resources': member.getBudgetResources,
'charges': member.getBudgetCharges,
'person': member

View File

@@ -1,6 +1,6 @@
{% extends "@ChillPerson/Person/layout.html.twig" %}
{% from 'ChillBudgetBundle:Budget:_macros.html.twig' import table_results %}
{% from '@ChillBudget/Budget/_macros.html.twig' import table_results %}
{% set activeRouteKey = '' %}
{% set title = 'Budget for %name%'|trans({ '%name%' : person.firstName ~ " " ~ person.lastName } ) %}

View File

@@ -18,7 +18,7 @@
{% block content %}
{{ include('ChillMainBundle:Util:confirmation_template.html.twig',
{{ include('@ChillMain/Util/confirmation_template.html.twig',
{
'title' : 'Remove resource'|trans,
'confirm_question' : confirm_question,