From a4e29c124a2837a7f557df56ca17bc65c970bc61 Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Sun, 16 Dec 2012 17:56:30 +0100 Subject: [PATCH] Use foundation_field in map_form.html --- youmap/static/youmap/youmap.css | 3 +++ youmap/templates/chickpea/map_form.html | 15 ++++----------- 2 files changed, 7 insertions(+), 11 deletions(-) diff --git a/youmap/static/youmap/youmap.css b/youmap/static/youmap/youmap.css index 522e081e..137a1444 100644 --- a/youmap/static/youmap/youmap.css +++ b/youmap/static/youmap/youmap.css @@ -66,4 +66,7 @@ input:-moz-placeholder, :-moz-placeholder { } #reveal-container textarea { height: 100px; +} +#reveal-container select { + margin-bottom: 10px; } \ No newline at end of file diff --git a/youmap/templates/chickpea/map_form.html b/youmap/templates/chickpea/map_form.html index 9cb5a67d..6e0efcad 100644 --- a/youmap/templates/chickpea/map_form.html +++ b/youmap/templates/chickpea/map_form.html @@ -1,20 +1,13 @@ +{% load youmap_tags %}

Create your map now!

{% for error in form.non_field_errors %} {{ error }} {% endfor %} {% csrf_token %} - {{ form.name }} - {% for error in form.name.errors %} - {{ error|escape }} - {% endfor %} - {{ form.description }} - {{ form.description.errors }} - - {{ form.licence }} - {% for error in form.licence.errors %} - {{ error|escape }} - {% endfor %} + {% foundation_field form.name %} + {% foundation_field form.description %} + {% foundation_field form.licence %} {{ form.zoom }} {{ form.center }}