From b2f5bafdc433f99e1258ec7d6fba9c5b2087421c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Mon, 11 Dec 2023 07:03:49 +0100 Subject: [PATCH 1/1] Add contact template --- Resources/views/form/contact.html.twig | 31 ++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 Resources/views/form/contact.html.twig diff --git a/Resources/views/form/contact.html.twig b/Resources/views/form/contact.html.twig new file mode 100644 index 0000000..dbbf191 --- /dev/null +++ b/Resources/views/form/contact.html.twig @@ -0,0 +1,31 @@ +{% extends '@RapsysBlog/_base.html.twig' %} +{% block content %} +
+
+

{{ title }}

+

{{ description }}

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

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

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