Added the possibility to change the action of the form on the Survey take page.
authorLennard de Rijk <ljvderijk@gmail.com>
Thu, 02 Jul 2009 16:51:31 +0200
changeset 2490 5aa7b281fdc7
parent 2489 7c23f90d87cd
child 2491 f5776b6116fd
Added the possibility to change the action of the form on the Survey take page.
app/soc/templates/soc/survey/take.html
--- a/app/soc/templates/soc/survey/take.html	Thu Jul 02 16:50:08 2009 +0200
+++ b/app/soc/templates/soc/survey/take.html	Thu Jul 02 16:51:31 2009 +0200
@@ -33,7 +33,11 @@
 
   {{ help_text }}
 
-  <form method="post">
+  {% if form_action %}
+    <form method="post" action="{{ form_action }}">
+  {% else %}
+    <form method="post">
+  {% endif %}
     <div style="width:100%; float:left;">
       <div class="{{ status }}" id="survey_widget">
         <table>