From: Raphaƫl Gertz Date: Tue, 14 Oct 2025 15:06:28 +0000 (+0200) Subject: Remove sent parameter replaced by a notice X-Git-Tag: 0.0.1~2 X-Git-Url: https://git.rapsys.eu/blogbundle/commitdiff_plain/dc939de691d3a98176d06463c6ed47f2e6704f39 Remove sent parameter replaced by a notice --- diff --git a/templates/form/contact.html.twig b/templates/form/contact.html.twig index ba33240..c67c919 100644 --- a/templates/form/contact.html.twig +++ b/templates/form/contact.html.twig @@ -6,26 +6,22 @@

{{ description }}

- {% if sent is defined and sent %} -

{% trans %}Your message has been sent{% endtrans %}

- {% else %} - {{ form_start(contact) }} - {{ form_row(contact.subject) }} + {{ form_start(contact) }} + {{ form_row(contact.subject) }} - {{ form_row(contact.name) }} + {{ form_row(contact.name) }} - {{ form_row(contact.mail) }} + {{ form_row(contact.mail) }} - {{ form_row(contact.message) }} + {{ form_row(contact.message) }} - {{ form_row(contact.captcha) }} + {{ form_row(contact.captcha) }} - {{ form_row(contact.submit) }} + {{ form_row(contact.submit) }} - {# Render CSRF token etc .#} -
{{ form_rest(contact) }}
- {{ form_end(contact) }} - {% endif %} + {# Render CSRF token etc .#} +
{{ form_rest(contact) }}
+ {{ form_end(contact) }}
{% endblock %}