--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/app/soc/templates/soc/templatetags/_readonly_field_as_twoline_table_row.html Sat Jan 10 13:28:04 2009 +0000
@@ -0,0 +1,25 @@
+{% 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 %}
+ <tr>
+ <td class="formfieldlabel">
+ {{ field_label }}:
+ </td>
+ </tr>
+<tr title="{{ field.help_text }}">
+ <td class="formfieldvalue">
+ {{ field_value }}
+ </td>
+</tr>
+
+
--- a/app/soc/views/helper/templatetags/forms_helpers.py Thu Jan 08 21:44:03 2009 +0000
+++ b/app/soc/views/helper/templatetags/forms_helpers.py Sat Jan 10 13:28:04 2009 +0000
@@ -94,6 +94,13 @@
return {'field_label': field_label,
'field_value': field_value}
+@register.inclusion_tag('soc/templatetags/_readonly_field_as_twoline_table_row.html')
+def readonly_field_as_twoline_table_row(field_label, field_value):
+ """See readonly_field_as_table_row().
+ """
+ return {'field_label': field_label,
+ 'field_value': field_value}
+
@register.inclusion_tag(
'soc/templatetags/_readonly_multiline_field_as_table_row.html')