Swap field value and "required" columns to make more columns for field errors.
--- a/app/soc/templates/soc/templatetags/_field_as_table_row.html Thu Sep 18 17:31:01 2008 +0000
+++ b/app/soc/templates/soc/templatetags/_field_as_table_row.html Thu Sep 18 17:32:28 2008 +0000
@@ -14,23 +14,26 @@
{% if field.errors %}
<tr>
<td> </td>
- <td> </td>
- <td colspan="2" class="formfielderror">
+ <td colspan="3" class="formfielderror">
{{ field.errors|join:"<br />" }}
</td>
</tr>
{% endif %}
<tr>
+{% if field.errors %}
+ <td class="formfielderrorlabel">
+{% else %}
<td class="formfieldlabel">
+{% endif %}
<label for="{{ field.auto_id }}">{{ field.label }}
</label>
</td>
+ <td>
+ {{ field }}
+ </td>
<td class="formfieldrequired">
{% if field.field.required %}(required){% endif %}
</td>
- <td>
- {{ field }}
- </td>
<td class="formfieldhelptext">
{{ field.help_text }}
</td>