From aa0e7a69aac846ae6cd178de540fc6d82e21ca8e Mon Sep 17 00:00:00 2001 From: lnormandon Date: Tue, 24 Sep 2024 15:19:27 +0200 Subject: [PATCH] add .html.twig --- form/fields.html.twig | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/form/fields.html.twig b/form/fields.html.twig index 67bd892..d236742 100644 --- a/form/fields.html.twig +++ b/form/fields.html.twig @@ -7,7 +7,7 @@ {% if type == 'checkbox' %} {# #} {% elseif type == 'text' or type == 'email' %} - {% include "@components/Molecules/Fields/FieldInput/FieldInput.twig" with { + {% include "@components/Molecules/Fields/FieldInput/FieldInput.html.twig" with { label: label, name: form.vars.full_name, type: type, @@ -15,7 +15,7 @@ required: form.vars.required, } %} {% elseif type == 'password' %} - {% include "@components/Molecules/Fields/FieldInput/FieldInput.twig" with { + {% include "@components/Molecules/Fields/FieldInput/FieldInput.html.twig" with { label: label, name: form.vars.full_name, type: type, @@ -23,7 +23,7 @@ required: form.vars.required, } %} - {% include "@components/Molecules/PasswordControls/PasswordControls.twig" %} + {% include "@components/Molecules/PasswordControls/PasswordControls.html.twig" %} {% else %} {# Appel du rendu par défaut si vous n'avez pas besoin de personnaliser davantage #} {{ block('form_widget_simple') }} @@ -36,6 +36,6 @@ {% block form_errors %} {% dump(errors) %} {% for error in errors %} - {% include "@components/Organisms/SnackBar/SnackBar.twig" with {text: error.message, variant: 'error', withIcon:true} %} + {% include "@components/Organisms/SnackBar/SnackBar.html.twig" with {text: error.message, variant: 'error', withIcon:true} %} {% endfor %} {% endblock %}