]> Raphaƫl G. Git Repositories - airbundle/blobdiff - Resources/views/location/add.html.twig
Add location add and index templates
[airbundle] / Resources / views / location / add.html.twig
diff --git a/Resources/views/location/add.html.twig b/Resources/views/location/add.html.twig
new file mode 100644 (file)
index 0000000..d0c18e8
--- /dev/null
@@ -0,0 +1,30 @@
+{% extends '@RapsysAir/body.html.twig' %}
+{% block content %}
+       <section id="form">
+               <h2>{{ section }}</h2>
+               {{ form_start(form) }}
+                       <div>
+                               {{ form_row(form.title) }}
+
+                               {{ form_row(form.short) }}
+
+                               {{ form_row(form.address) }}
+
+                               {{ form_row(form.zipcode) }}
+
+                               {{ form_row(form.city) }}
+
+                               {{ form_row(form.latitude) }}
+
+                               {{ form_row(form.longitude) }}
+
+                               {{ form_row(form.hotspot) }}
+
+                               {{ form_row(form.submit) }}
+                       </div>
+
+                       {# render csrf token etc .#}
+                       <footer style="display:none">{{ form_rest(form) }}</footer>
+               {{ form_end(form) }}
+       </section>
+{% endblock %}