]> Raphaël G. Git Repositories - blogbundle/commitdiff
Remove sent parameter replaced by a notice
authorRaphaël Gertz <git@rapsys.eu>
Tue, 14 Oct 2025 15:06:28 +0000 (17:06 +0200)
committerRaphaël Gertz <git@rapsys.eu>
Tue, 14 Oct 2025 15:06:28 +0000 (17:06 +0200)
templates/form/contact.html.twig

index ba332401674bbceb7c5b3e03bc6765e940e65697..c67c919577b7dcd0784d15088557c1d1f8d5cfcd 100644 (file)
@@ -6,26 +6,22 @@
                        <p>{{ description }}</p>
                </header>
                <section>
                        <p>{{ description }}</p>
                </header>
                <section>
-                       {% if sent is defined and sent %}
-                               <p>{% trans %}Your message has been sent{% endtrans %}</p>
-                       {% 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 .#}
-                                       <div style="display:none">{{ form_rest(contact) }}</div>
-                               {{ form_end(contact) }}
-                       {% endif %}
+                               {# Render CSRF token etc .#}
+                               <div style="display:none">{{ form_rest(contact) }}</div>
+                       {{ form_end(contact) }}
                </section>
        </section>
 {% endblock %}
                </section>
        </section>
 {% endblock %}