]> Raphaƫl G. Git Repositories - blogbundle/blob - Resources/views/form/contact.html.twig
Add validators translations
[blogbundle] / Resources / views / form / contact.html.twig
1 {% extends '@RapsysBlog/_base.html.twig' %}
2 {% block content %}
3 <section class="form">
4 <header>
5 <h1><a href="{{ head.canonical }}">{{ title }}</a></h1>
6 <p>{{ description }}</p>
7 </header>
8 <section>
9 {% if sent is defined and sent %}
10 <p>{% trans %}Your message has been sent{% endtrans %}</p>
11 {% else %}
12 {{ form_start(contact) }}
13 {{ form_row(contact.subject) }}
14
15 {{ form_row(contact.name) }}
16
17 {{ form_row(contact.mail) }}
18
19 {{ form_row(contact.message) }}
20
21 {{ form_row(contact.captcha) }}
22
23 {{ form_row(contact.submit) }}
24
25 {# Render CSRF token etc .#}
26 <div style="display:none">{{ form_rest(contact) }}</div>
27 {{ form_end(contact) }}
28 {% endif %}
29 </section>
30 </section>
31 {% endblock %}