]> Raphaël G. Git Repositories - airbundle/commitdiff
Add application add error landing form
authorRaphaël Gertz <git@rapsys.eu>
Wed, 9 Dec 2020 20:47:49 +0000 (21:47 +0100)
committerRaphaël Gertz <git@rapsys.eu>
Wed, 9 Dec 2020 20:48:05 +0000 (21:48 +0100)
Resources/views/application/add.html.twig [new file with mode: 0644]

diff --git a/Resources/views/application/add.html.twig b/Resources/views/application/add.html.twig
new file mode 100644 (file)
index 0000000..42acb07
--- /dev/null
@@ -0,0 +1,24 @@
+{% extends '@RapsysAir/body.html.twig' %}
+{% block content %}
+       <section id="form">
+               <h2>{{ section }}</h2>
+               {{ form_start(form) }}
+                       <div>
+                               {% if form.user is defined %}
+                                       {{ form_row(form.user) }}
+                               {% endif %}
+
+                               {{ form_row(form.location) }}
+
+                               {{ form_row(form.date) }}
+
+                               {{ form_row(form.slot) }}
+
+                               {{ form_row(form.submit) }}
+                       </div>
+
+                       {# render csrf token etc .#}
+                       <footer style="display:none">{{ form_rest(form) }}</footer>
+               {{ form_end(form) }}
+       </section>
+{% endblock %}