Make the error message align with the input field
authorSverre Rabbelier <srabbelier@gmail.com>
Thu, 12 Mar 2009 23:04:53 +0000
changeset 1819 1e34fa8c5da0
parent 1818 fec380dac186
child 1820 ecc40aa58e19
Make the error message align with the input field Patch by: Sverre Rabbelier
app/soc/templates/soc/templatetags/_as_table_row.html
app/soc/templates/soc/templatetags/_as_twoline_table_row.html
--- a/app/soc/templates/soc/templatetags/_as_table_row.html	Thu Mar 12 23:04:14 2009 +0000
+++ b/app/soc/templates/soc/templatetags/_as_table_row.html	Thu Mar 12 23:04:53 2009 +0000
@@ -14,7 +14,10 @@
 
 {% if errors %}
 <tr>
-  <td colspan="4" class="formfielderror">
+  {% block error_td %}
+  <td>&nbsp;</td>
+  <td colspan="3" class="formfielderror">
+  {% endblock error_td %}
   {% for error in errors %}
     <span class="formfielderrorlabel">{{ error }}</span> <br />
   {% endfor %}
--- a/app/soc/templates/soc/templatetags/_as_twoline_table_row.html	Thu Mar 12 23:04:14 2009 +0000
+++ b/app/soc/templates/soc/templatetags/_as_twoline_table_row.html	Thu Mar 12 23:04:53 2009 +0000
@@ -14,6 +14,10 @@
 {% endcomment %}
 {% load forms_helpers %}
 
+{% block error_td %}
+  <td colspan="4" class="formfielderror">
+{% endblock error_td %}
+
 {% block label_row %}
 <tr>
 <td class="twoline{{ field_class_type }}" colspan=4>