Public Survey template now resembles the take template more closely.
authorLennard de Rijk <ljvderijk@gmail.com>
Mon, 06 Jul 2009 15:06:05 +0200
changeset 2559 af2874bc01f3
parent 2558 ba32a4f5716b
child 2560 a944c0169ad8
Public Survey template now resembles the take template more closely.
app/soc/templates/soc/survey/public.html
--- a/app/soc/templates/soc/survey/public.html	Mon Jul 06 14:58:46 2009 +0200
+++ b/app/soc/templates/soc/survey/public.html	Mon Jul 06 15:06:05 2009 +0200
@@ -37,9 +37,11 @@
   <form method="get" onsubmit="javascript:return false">
     This page gives a preview of how users will see the Survey.
 
-    <div=description>
-      {{ entity.content|safe }}
-    </div>
+    {% if entity.content %}
+      <div=survey_description>
+        {{ entity.content|safe }}
+      </div>
+    {% endif %}
 
     <div style="width:100%; float:left;">
       <div class="{{ status }}" id="survey_widget">