# HG changeset patch # User James Levy # Date 1249397207 -7200 # Node ID 8df4563fb2eb1a679615abda1e2380aab99f333c # Parent 9e03061402ac08bc9a997fcfc99cb6b69a2516a6 Added templates for listing SurveyRecords. In the process results_heading and results_row got renamed to records_heading and records_row. Reviewed by: Lennard de Rijk diff -r 9e03061402ac -r 8df4563fb2eb app/soc/templates/soc/survey/list/records_heading.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/soc/templates/soc/survey/list/records_heading.html Tue Aug 04 16:46:47 2009 +0200 @@ -0,0 +1,5 @@ + + Taken By + Taken On + Preview: {{ first_question|truncatewords:7 }} + diff -r 9e03061402ac -r 8df4563fb2eb app/soc/templates/soc/survey/list/records_row.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/soc/templates/soc/survey/list/records_row.html Tue Aug 04 16:46:47 2009 +0200 @@ -0,0 +1,21 @@ + + + +
+ {{ list.item.user.name }} +
+ + + +
+ {{ list.item.modified|date:"Y-m-d H:i" }} +
+ + + +
+ {{ list.item.getValues.0|truncatewords:20 }} +
+ + diff -r 9e03061402ac -r 8df4563fb2eb app/soc/templates/soc/survey/list/results_heading.html --- a/app/soc/templates/soc/survey/list/results_heading.html Tue Aug 04 15:59:42 2009 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,12 +0,0 @@ - - {% for property in properties %} - {{ property }} - {% endfor %} - Taken By - Created On - Last Modified - Answer - {% if grades %} - Grade - {% endif %} - diff -r 9e03061402ac -r 8df4563fb2eb app/soc/templates/soc/survey/list/results_row.html --- a/app/soc/templates/soc/survey/list/results_row.html Tue Aug 04 15:59:42 2009 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,51 +0,0 @@ - - - {% for value in list.item.getValues %} - -
- {{ value }} -
- - {% endfor %} - - -
- {{ list.item.user.link_id }} -
- - - -
- {{ list.item.created|date:"Y-m-d H:i" }} -
- - - -
- {{ list.item.modified|date:"Y-m-d H:i" }} -
- - - - View - - - {% if grades %} - -
- -
- - {% endif %} -