Generate proper html instead of having nested <td> tags
Patch by: Sverre Rabbelier
--- 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>