Fix alignment of twoline readonly table rows
authorSverre Rabbelier <srabbelier@gmail.com>
Thu, 26 Feb 2009 17:06:17 +0000
changeset 1531 db5d40d9dc43
parent 1530 83a04a557d0d
child 1532 ea80be783971
Fix alignment of twoline readonly table rows Also removed an unused template tag. Patch by: Sverre Rabbelier
app/soc/content/css/soc-090120.css
app/soc/templates/soc/templatetags/_readonly_field_as_twoline_table_row.html
app/soc/templates/soc/templatetags/_readonly_multiline_field_as_table_row.html
app/soc/views/helper/templatetags/forms_helpers.py
--- 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 {
--- 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>
--- 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 %}
--- 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):