# HG changeset patch # User Sverre Rabbelier # Date 1229172597 0 # Node ID 3e1aafcf2671a3d941de2fa901da3c4fde52873b # Parent f6d9a49fa5ce4751fa1b404d947d669dfee8492f Make use of readonly_field_as_table_row Instead of manually typing out the
etc. Patch by: Sverre Rabbelier diff -r f6d9a49fa5ce -r 3e1aafcf2671 app/soc/templates/soc/notification/public.html --- a/app/soc/templates/soc/notification/public.html Sat Dec 13 12:49:34 2008 +0000 +++ b/app/soc/templates/soc/notification/public.html Sat Dec 13 12:49:57 2008 +0000 @@ -12,6 +12,7 @@ See the License for the specific language governing permissions and limitations under the License. {% endcomment %} +{% load forms_helpers %} {% block page_title %} Notification @@ -22,19 +23,24 @@ {% endblock %} {% block body %} -From: -{% if not entity.from_user %} - Anonymous + + +{% if entity.from_user %} +{% readonly_field_as_table_row entity.fields.from_user.label entity.from_user.name %} {% else %} - {{ entity.from_user.name }} -{% endif %}
-To: {{ entity.scope.name }}
-Sent On: {{ entity.created_on }}
-Subject: {{ entity.subject }}
-Message:
-{{ entity.message }} -

+{% readonly_field_as_table_row entity.fields.from_user.label "Anonymous" %} +{% endif %} - +{% readonly_field_as_table_row "To" entity.scope.name %} +{% readonly_field_as_table_row "Sent On" entity.created_on %} +{% readonly_field_as_table_row entity.fields.subject.label entity.subject %} +{% readonly_multiline_field_as_table_row entity.fields.message.label entity.message %} + +

+ + +
+ +
{% endblock %}