]> Raphaël G. Git Repositories - airbundle/commitdiff
New header layout
authorRaphaël Gertz <git@rapsys.eu>
Thu, 13 Oct 2022 13:10:27 +0000 (15:10 +0200)
committerRaphaël Gertz <git@rapsys.eu>
Thu, 13 Oct 2022 13:10:27 +0000 (15:10 +0200)
Add captcha field

Resources/views/form/contact.html.twig

index ff124d5c0166e95679fc0da84a279a27a19755c2..da53d04bd8af61e39fbe8c9c5861753aae8f2e20 100644 (file)
@@ -1,9 +1,8 @@
 {% extends '@RapsysAir/body.html.twig' %}
 {% block content %}
-       <section id="form">
+       <article>
                <header>
-                       <h2><a href="{{ path('rapsys_air_contact') }}">{{ title }}</a></h2>
-                       <p>{{ description }}</p>
+                       <h2>{{ description }}</h2>
                </header>
                {% if sent %}
                        <p class="message notice">{% trans %}Your message has been sent{% endtrans %}</p>
@@ -18,6 +17,8 @@
 
                                        {{ form_row(form.message) }}
 
+                                       {{ form_row(form.captcha) }}
+
                                        {{ form_row(form.submit) }}
                                </div>
 
@@ -25,5 +26,5 @@
                                <footer style="display:none">{{ form_rest(form) }}</footer>
                        {{ form_end(form) }}
                {% endif %}
-       </section>
+       </article>
 {% endblock %}