changeset 165:230752ca615a

Reformatted the form so it looks decent now.
author Atul Varma <varmaa@toolness.com>
date Fri, 04 Apr 2008 17:40:42 -0700
parents c37f8e89ea5b
children ed2deabd7a4e
files personasbackend/personas/templates/personas/edit.html personasbackend/personas/templates/personas/form_row.html
diffstat 2 files changed, 42 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- 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 %}
   <table class="persona-form corner-box">
     <tr><td colspan="2">{{ form.non_field_errors }}</td></tr>
-    {% for field in form %}
-    <tr>
-      <th>{{ field.label_tag }}:</th>
-      <td>{{ field.errors }}{{ field }}<br/>{{ field.help_text|safe }}</td>
-    </tr>
-    {% 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 %}
+
+    <tr><td colspan="2">
+        <div class="persona-developer-agreement">
+          {{ form.agree_to_terms.help_text|safe }}
+          <p>
+            {{ form.agree_to_terms }}
+            {{ form.agree_to_terms.label }}
+          </p>
+        </div>
+    </td></tr>
+
   </table>
   <input type="submit" class="amo-submit" value="Submit"/>
 </form>
--- /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 @@
+<tr>
+  <th>{{ field.label_tag }}:</th>
+  <td>{{ field.errors }}{{ field }}<br/>{{ field.help_text|safe }}</td>
+</tr>