# HG changeset patch # User James Levy # Date 1249392881 -7200 # Node ID e32118b84718335a4152fe1508809f8250a15e18 # Parent 3f652b37e17758cb9247dcf374274c0447a8e191 Added template for viewing Survey Records. Reviewed by: Lennard de Rijk diff -r 3f652b37e177 -r e32118b84718 app/soc/templates/soc/survey/public.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 @@ {% endblock %} -{% block page_title %} -{{ entity.title }} -{% endblock %} - {% block header_title %} {{ entity.title }} {% endblock %} @@ -33,9 +30,10 @@ {% if survey_form %} - {% load forms_helpers %}
+ {% block page_description %} This page gives a preview of how users will see the Survey. + {% endblock %} {% if entity.content %}
diff -r 3f652b37e177 -r e32118b84718 app/soc/templates/soc/survey/view_record.html --- /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 %}