# HG changeset patch
# User Sverre Rabbelier <srabbelier@gmail.com>
# Date 1235667977 0
# Node ID db5d40d9dc4337e8ccdf4d636ddaaa59721180a9
# Parent  83a04a557d0d1100963a5370099661ac2188e8ca
Fix alignment of twoline readonly table rows

Also removed an unused template tag.

Patch by: Sverre Rabbelier

diff -r 83a04a557d0d -r db5d40d9dc43 app/soc/content/css/soc-090120.css
--- a/app/soc/content/css/soc-090120.css	Thu Feb 26 17:00:34 2009 +0000
+++ b/app/soc/content/css/soc-090120.css	Thu Feb 26 17:06:17 2009 +0000
@@ -169,6 +169,13 @@
 td.twolineformfieldlabel {
   font-weight: bold;
   font-size: small;
+  text-align: left;
+}
+
+
+td.twolineformfieldlabel {
+  font-weight: bold;
+  font-size: small;
 }
 
 td.formfieldvalue {
diff -r 83a04a557d0d -r db5d40d9dc43 app/soc/templates/soc/templatetags/_readonly_field_as_twoline_table_row.html
--- a/app/soc/templates/soc/templatetags/_readonly_field_as_twoline_table_row.html	Thu Feb 26 17:00:34 2009 +0000
+++ b/app/soc/templates/soc/templatetags/_readonly_field_as_twoline_table_row.html	Thu Feb 26 17:06:17 2009 +0000
@@ -14,7 +14,7 @@
 
 {% if field_value %}
  <tr>
- <td class="formfieldlabel">
+ <td class="twolineformfieldlabel">
 	{{ field_label }}:
  </td>
  </tr>
diff -r 83a04a557d0d -r db5d40d9dc43 app/soc/templates/soc/templatetags/_readonly_multiline_field_as_table_row.html
--- a/app/soc/templates/soc/templatetags/_readonly_multiline_field_as_table_row.html	Thu Feb 26 17:00:34 2009 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,24 +0,0 @@
-{% comment %}
-Licensed under the Apache License, Version 2.0 (the "License");
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-  http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-{% endcomment %}
-
-{% if field_value %}
-<tr title="{{ field.help_text }}">
- <td class="formfieldlabel">
-	{{ field_label }}:
- </td>
- <td class="formfieldvalue">
-	{{ field_value|linebreaks }}
- </td>
-</tr>
-{% endif %}
diff -r 83a04a557d0d -r db5d40d9dc43 app/soc/views/helper/templatetags/forms_helpers.py
--- a/app/soc/views/helper/templatetags/forms_helpers.py	Thu Feb 26 17:00:34 2009 +0000
+++ b/app/soc/views/helper/templatetags/forms_helpers.py	Thu Feb 26 17:06:17 2009 +0000
@@ -110,16 +110,6 @@
   return {'field_label': field_label,
           'field_value': field_value}
 
-
-@register.inclusion_tag(
-    'soc/templatetags/_readonly_multiline_field_as_table_row.html')
-def readonly_multiline_field_as_table_row(field_label, field_value):
-  """See readonly_field_as_table_row, but with a different template tag.
-  """
-  return {'field_label': field_label,
-          'field_value': field_value}
-
-
 @register.inclusion_tag('soc/templatetags/_as_readonly_table.html',
                         takes_context=True)
 def as_readonly_table(context, form):