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

@@ -1,4 +1,4 @@
{% extends 'ChillMainBundle::layout.html.twig' %}
{% extends '@ChillMain/layout.html.twig' %}
{% block title "Liste de parcours à répartir" %}

View File

@@ -258,7 +258,7 @@
{% endif %}
<h2 class="mb-3 visually-hidden">{{ 'Last activities' |trans }}</h2>
{% include 'ChillActivityBundle:Activity:list_recent.html.twig' with { 'context': 'accompanyingCourse', 'no_action': true } %}
{% include '@ChillActivity/Activity/list_recent.html.twig' with { 'context': 'accompanyingCourse', 'no_action': true } %}
</div>
{% endblock %}

View File

@@ -63,7 +63,7 @@
<div class="flex-table accompanyingcourse-list">
{% for period in acps %}
{% include 'ChillPersonBundle:AccompanyingPeriod:_list_item.html.twig' with {
{% include '@ChillPerson/AccompanyingPeriod/_list_item.html.twig' with {
'recordAction': _self.recordAction(period, contextEntity)
} %}
{% else %}
@@ -100,7 +100,7 @@
<div class="flex-table accompanyingcourse-list">
{% for period in acpsClosed %}
{% include 'ChillPersonBundle:AccompanyingPeriod:_list_item.html.twig' with {
{% include '@ChillPerson/AccompanyingPeriod/_list_item.html.twig' with {
'recordAction': _self.recordAction(period, contextEntity)
} %}
{% endfor %}

View File

@@ -9,7 +9,7 @@
<h1>{{ 'Accompanying period list'|trans }}</h1>
{% include 'ChillPersonBundle:AccompanyingPeriod:_list.html.twig' %}
{% include '@ChillPerson/AccompanyingPeriod/_list.html.twig' %}
<ul class="record_actions sticky-form-buttons">
<li class="cancel">

View File

@@ -1,4 +1,4 @@
{% extends 'ChillMainBundle::layout.html.twig' %}
{% extends '@ChillMain/layout.html.twig' %}
{% block title 'period_by_user_list.Period by user'|trans %}

View File

@@ -7,7 +7,7 @@
<h1>{{ block('title') }}</h1>
{% include 'ChillPersonBundle:AccompanyingPeriod:_list.html.twig' %}
{% include '@ChillPerson/AccompanyingPeriod/_list.html.twig' %}
{% if accompanying_periods_old|length > 0 %}
<div class="accordion" id="nonCurrent">
@@ -28,7 +28,7 @@
class="accordion-collapse collapse"
aria-labelledby="heading_{{ household.id }}"
data-bs-parent="#nonCurrent">
{% include 'ChillPersonBundle:AccompanyingPeriod:_list.html.twig' with {'accompanying_periods' : accompanying_periods_old} %}
{% include '@ChillPerson/AccompanyingPeriod/_list.html.twig' with {'accompanying_periods' : accompanying_periods_old} %}
</div>
</div>
</div>

View File

@@ -28,7 +28,7 @@ This view should receive those arguments:
we define variables to include an edit form repeated multiple time across
the page
#}
{% set edit_tmp_name = 'ChillPersonBundle:Form:go_to_form.html.twig' %}
{% set edit_tmp_name = '@ChillPerson/Form/go_to_form.html.twig' %}
{% set edit_tmp_args = { 'form_path_args' : { 'person_id': person.id },
'form_path_key' : 'chill_person_general_edit' } %}

View File

@@ -1,8 +1,8 @@
{#
{#
if the `custom_fields` option is used, the custom fields are available
under the customFields variable, with the custom field slug as key.
#}
{% import 'ChillPersonBundle:Person:macro.html.twig' as person %}
{% import '@ChillPerson/Person/macro.html.twig' as person %}
<div class="col-8 centered">
<h2>{{ 'Accompanyied people'|trans }}</h2>
<table>