Generate proper html instead of having nested <td> tags
authorSverre Rabbelier <srabbelier@gmail.com>
Fri, 23 Jan 2009 16:21:28 +0000
changeset 924 34f944dc4502
parent 923 5a10f6db154b
child 925 a85719e94570
Generate proper html instead of having nested <td> tags Patch by: Sverre Rabbelier
app/soc/templates/soc/templatetags/_as_table_row.html
--- a/app/soc/templates/soc/templatetags/_as_table_row.html	Fri Jan 23 15:32:58 2009 +0000
+++ b/app/soc/templates/soc/templatetags/_as_table_row.html	Fri Jan 23 16:21:28 2009 +0000
@@ -32,17 +32,17 @@
   {% endblock %}
   <td>
     {{ field }}
-
-    {% if required %}
-    <td class="formfieldrequired">(required)</td>
-    {% else %}
-    <td></td>
-    {% endif %}
+  </td>
 
-    {% if example_text %}
-      <td class="formfieldexample">{{ example_text|safe }}</td>
-    {% else %}
-      <td></td>
-    {% endif %}
-  </td>
+  {% if required %}
+  <td class="formfieldrequired">(required)</td>
+  {% else %}
+  <td></td>
+  {% endif %}
+
+  {% if example_text %}
+    <td class="formfieldexample">{{ example_text|safe }}</td>
+  {% else %}
+    <td></td>
+  {% endif %} {% endif %}
 </tr>