# HG changeset patch # User Sverre Rabbelier # Date 1232755654 0 # Node ID 6eac584ce14c2eb3d4ca0343f8010aafd65a6297 # Parent a40056afef83287cec7c3ef4b0a1dba45a53982d Add a warning about discarding unsaved changes Also set the colspan of the label (on seperate row) to max. Patch by: Sverre Rabbelier diff -r a40056afef83 -r 6eac584ce14c app/soc/content/css/soc-090120.css --- a/app/soc/content/css/soc-090120.css Fri Jan 23 23:42:07 2009 +0000 +++ b/app/soc/content/css/soc-090120.css Sat Jan 24 00:07:34 2009 +0000 @@ -163,7 +163,7 @@ font-size: small; } -td.formfielderrorlabel, span.formfielderrorlabel { +td.formfielderrorlabel, td.warning, span.formfielderrorlabel { font-weight: bold; color: #FF0000; font-size: small; diff -r a40056afef83 -r 6eac584ce14c app/soc/templates/soc/templatetags/_as_table_row.html --- a/app/soc/templates/soc/templatetags/_as_table_row.html Fri Jan 23 23:42:07 2009 +0000 +++ b/app/soc/templates/soc/templatetags/_as_table_row.html Sat Jan 24 00:07:34 2009 +0000 @@ -42,12 +42,17 @@ {% if select_url %} select - {% comment %} no else branch, as example_text will take care of the last {% endcomment %} + {% else %} + {% endif %} {% if example_text %} {{ example_text|safe }} - {% else %} {% if not select_url %} - - {% endif %} {% endif %} + {% else %} + {% if select_url %} + (discards unsaved changes) + {% else %} + + {% endif %} + {% endif %} diff -r a40056afef83 -r 6eac584ce14c app/soc/templates/soc/templatetags/_as_twoline_table_row.html --- a/app/soc/templates/soc/templatetags/_as_twoline_table_row.html Fri Jan 23 23:42:07 2009 +0000 +++ b/app/soc/templates/soc/templatetags/_as_twoline_table_row.html Sat Jan 24 00:07:34 2009 +0000 @@ -16,7 +16,7 @@ {% block label_row %} - + {{ label }}