Add location form template
authorRaphaël Gertz <git@rapsys.eu>
Wed, 24 Feb 2021 00:45:09 +0000 (01:45 +0100)
committerRaphaël Gertz <git@rapsys.eu>
Wed, 24 Feb 2021 00:45:09 +0000 (01:45 +0100)
Resources/views/form/_location.html.twig [new file with mode: 0644]

diff --git a/Resources/views/form/_location.html.twig b/Resources/views/form/_location.html.twig
new file mode 100644 (file)
index 0000000..284c2e8
--- /dev/null
@@ -0,0 +1,27 @@
+<section>
+       <h2>{% trans %}Modify{% endtrans %}</h2>
+       {{ form_start(forms.location) }}
+               <div>
+                       {{ form_row(forms.location.title) }}
+
+                       {{ form_row(forms.location.short) }}
+
+                       {{ form_row(forms.location.address) }}
+
+                       {{ form_row(forms.location.zipcode) }}
+
+                       {{ form_row(forms.location.city) }}
+
+                       {{ form_row(forms.location.latitude) }}
+
+                       {{ form_row(forms.location.longitude) }}
+
+                       {{ form_row(forms.location.hotspot) }}
+
+                       {{ form_row(forms.location.submit) }}
+               </div>
+
+               {# render csrf token etc .#}
+               <footer style="display:none">{{ form_rest(forms.location) }}</footer>
+       {{ form_end(forms.location) }}
+</section>