Added template for viewing Survey Records.
authorJames Levy <jamesalexanderlevy@gmail.com>
Tue, 04 Aug 2009 15:34:41 +0200
changeset 2721 e32118b84718
parent 2720 3f652b37e177
child 2722 1ec0af4ddd72
Added template for viewing Survey Records. Reviewed by: Lennard de Rijk
app/soc/templates/soc/survey/public.html
app/soc/templates/soc/survey/view_record.html
--- a/app/soc/templates/soc/survey/public.html	Tue Aug 04 15:33:39 2009 +0200
+++ b/app/soc/templates/soc/survey/public.html	Tue Aug 04 15:34:41 2009 +0200
@@ -12,6 +12,7 @@
 See the License for the specific language governing permissions and
 limitations under the License.
 {% endcomment %}
+{% load forms_helpers %}
 
 {% block scripts %}
 {{ block.super }}
@@ -20,10 +21,6 @@
 <script type="text/javascript" src="/jquery/jquery-growfield.js"></script>
 {% endblock %}
 
-{% block page_title %}
-{{ entity.title }}
-{% endblock %}
-
 {% block header_title %}
 {{ entity.title }}
 {% endblock %}
@@ -33,9 +30,10 @@
 
 {% if survey_form %}
 
-  {% load forms_helpers %}
   <form method="get" onsubmit="javascript:return false">
+  {% block page_description %}
     This page gives a preview of how users will see the Survey.
+  {% endblock %}
 
     {% if entity.content %}
       <div id="survey_description">
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/app/soc/templates/soc/survey/view_record.html	Tue Aug 04 15:34:41 2009 +0200
@@ -0,0 +1,6 @@
+{% extends "soc/survey/public.html" %}
+
+{% block page_description %}
+  Below is a read-only view of the survey record for the Survey called "{{ entity.title }}".
+  As taken by {{ record.user.name }} on {{ record.modified|date:"jS F Y H:i" }}.
+{% endblock %}