# HG changeset patch # User Atul Varma # Date 1207356042 25200 # Node ID 230752ca615a27e3280868cc97bdf7dbfa344196 # Parent c37f8e89ea5b7aaba7bf125064bd93f0742e1961 Reformatted the form so it looks decent now. diff -r c37f8e89ea5b -r 230752ca615a personasbackend/personas/templates/personas/edit.html --- a/personasbackend/personas/templates/personas/edit.html Fri Apr 04 17:29:17 2008 -0700 +++ b/personasbackend/personas/templates/personas/edit.html Fri Apr 04 17:40:42 2008 -0700 @@ -24,12 +24,44 @@ {% endif %} - {% for field in form %} - - - - - {% endfor %} + {% with form.name as field %} + {% include "personas/form_row.html" %} + {% endwith %} + + {% with form.description as field %} + {% include "personas/form_row.html" %} + {% endwith %} + + {% with form.header_img as field %} + {% include "personas/form_row.html" %} + {% endwith %} + + {% with form.footer_img as field %} + {% include "personas/form_row.html" %} + {% endwith %} + + {% with form.url as field %} + {% include "personas/form_row.html" %} + {% endwith %} + + {% with form.text_color as field %} + {% include "personas/form_row.html" %} + {% endwith %} + + {% with form.accent_color as field %} + {% include "personas/form_row.html" %} + {% endwith %} + + +
{{ form.non_field_errors }}
{{ field.label_tag }}:{{ field.errors }}{{ field }}
{{ field.help_text|safe }}
+
+ {{ form.agree_to_terms.help_text|safe }} +

+ {{ form.agree_to_terms }} + {{ form.agree_to_terms.label }} +

+
+
diff -r c37f8e89ea5b -r 230752ca615a personasbackend/personas/templates/personas/form_row.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/personasbackend/personas/templates/personas/form_row.html Fri Apr 04 17:40:42 2008 -0700 @@ -0,0 +1,4 @@ + + {{ field.label_tag }}: + {{ field.errors }}{{ field }}
{{ field.help_text|safe }} +