]> Raphaƫl G. Git Repositories - blogbundle/blob - Resources/views/page/contact.html.twig
Update flex version
[blogbundle] / Resources / views / page / contact.html.twig
1 {% extends 'RapsysBlogBundle::body.html.twig' %}
2 {% block blog_title %}<h1><a href="{{ path('homepage') }}">{% trans %}Dev log{% endtrans %}</a></h1>{% endblock %}
3 {% block blog_subtitle %}<h2><a href="{{ path('contact') }}">{% trans %}Contact{% endtrans %}</a></h2>{% endblock %}
4 {% block content %}
5 <section id="contact">
6 <header>
7 <h3><a href="{{ path('contact') }}">{% trans %}Contact{% endtrans %}</a></h3>
8 </header>
9 {% if sent %}
10 <p>{% trans %}Your message has been sent{% endtrans %}</p>
11 {% else %}
12 <div>
13 {{ form_start(form) }}
14 {# Render CSRF token etc .#}
15 <div>
16 {{ form_widget(form.subject) }}
17 {{ form_errors(form.subject) }}
18 </div>
19 <div>
20 {{ form_widget(form.name) }}
21 {{ form_errors(form.name) }}
22 </div>
23 <div>
24 {{ form_widget(form.email) }}
25 {{ form_errors(form.email) }}
26 </div>
27 <div>
28 {{ form_widget(form.message) }}
29 {{ form_errors(form.message) }}
30 </div>
31
32 {{ form_row(form.submit) }}
33
34 <div style="display:none">
35 {{ form_rest(form) }}
36 </div>
37 {{ form_end(form) }}
38 </div>
39 {% endif %}
40 </section>
41 {% endblock %}