add suffix to assets entrypoints + replace link/script html tags by encore_entry twig tag

This commit is contained in:
2021-07-23 12:27:30 +02:00
parent e0dbe9cf9d
commit d20a3cf9d4
9 changed files with 45 additions and 55 deletions

View File

@@ -19,7 +19,7 @@
<ul class="record_actions sticky-form-buttons">
<li class="cancel">
<a
<a
href="{{ chill_path_add_return_path('chill_person_household_members', { 'household_id': household.id }) }}"
class="btn btn-cancel"
/>
@@ -38,5 +38,5 @@
{% endblock %}
{% block js %}
{{ encore_entry_script_tags('household_edit_metadata') }}
{{ encore_entry_script_tags('page_household_edit_metadata') }}
{% endblock %}

View File

@@ -214,5 +214,5 @@
{% endblock %}
{% block js %}
{{ encore_entry_script_tags('household_edit_metadata') }}
{{ encore_entry_script_tags('page_household_edit_metadata') }}
{% endblock %}

View File

@@ -22,7 +22,7 @@
{% block personcontent %}
<div class="person-edit">
<h1>{{ 'Update details for %name%'|trans({ '%name%': person.firstName|capitalize ~ ' ' ~ person.lastName|capitalize } ) }}</h1>
{% form_theme form '@ChillMain/Form/fields.html.twig' %}
@@ -142,5 +142,5 @@
{% endblock %}
{% block js %}
{{ encore_entry_link_tags('person') }}
{{ encore_entry_link_tags('page_person') }}
{% endblock %}