# HG changeset patch # User Lennard de Rijk # Date 1231594084 0 # Node ID 19c24508c398b871f6df10a8a735222993d8fa1c # Parent 4bde741aa2bbf55b19df817dd5ac0eda17fffd9f Added _readonly_field_as_twoline_table_row . Patch by: Lennard de Rijk diff -r 4bde741aa2bb -r 19c24508c398 app/soc/templates/soc/templatetags/_readonly_field_as_twoline_table_row.html --- /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 %} + + + {{ field_label }}: + + + + + {{ field_value }} + + + + diff -r 4bde741aa2bb -r 19c24508c398 app/soc/views/helper/templatetags/forms_helpers.py --- 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')