Skip to content

Commit

Permalink
add .html.twig
Browse files Browse the repository at this point in the history
  • Loading branch information
leanormandon committed Sep 24, 2024
1 parent 30d449c commit aa0e7a6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions form/fields.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,23 @@
{% if type == 'checkbox' %}
{# <input type="checkbox" {{ block('widget_attributes') }} class="custom-checkbox-input"> #}
{% 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,
placeholder: placeholder,
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,
placeholder: placeholder,
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') }}
Expand All @@ -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 %}

0 comments on commit aa0e7a6

Please sign in to comment.