From 52c33bc96ffb05821c73554b752f1453d1f40d80 Mon Sep 17 00:00:00 2001 From: Yohan Boniface <yb@enix.org> Date: Sat, 15 Dec 2012 19:05:42 +0100 Subject: [PATCH] Quick styling of feature_form --- youmap/templates/chickpea/feature_form.html | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 youmap/templates/chickpea/feature_form.html diff --git a/youmap/templates/chickpea/feature_form.html b/youmap/templates/chickpea/feature_form.html new file mode 100644 index 0000000..a08a71a --- /dev/null +++ b/youmap/templates/chickpea/feature_form.html @@ -0,0 +1,16 @@ +{% load youmap_tags %} +<form method="post" action="{{ action }}" id="feature_form" onsubmit="return false;" class="custom"> + {% csrf_token %} + {{ form.no_field_errors }} + {% foundation_field form.name %} + {% foundation_field form.description %} + {% foundation_field form.color %} + <p> + {% foundation_field form.category %} + </p> + {{ form.latlng }} + <input type="submit" class="button" /> + {% if delete_url %} + <a href="{{ delete_url }}" id="delete_feature_button" >Delete</a> + {% endif %} +</form> -- GitLab