app/soc/templates/soc/survey/take.html
author Mario Ferraro <fadinlight@gmail.com>
Sun, 15 Nov 2009 22:12:20 +0100
changeset 3093 d1be59b6b627
parent 2801 0ee67cc9bd20
permissions -rw-r--r--
GMaps related JS changed to use new google namespace. Google is going to change permanently in the future the way to load its services, so better stay safe. Also this commit shows uses of the new melange.js module. Fixes Issue 634.

{% extends "soc/base.html" %}
{% comment %}
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
{% endcomment %}
{% load forms_helpers %}

{% block scripts %}
{{ block.super }}
<script type="text/javascript" src="/soc/content/js/survey-default-text-090627.js"></script>
<script type="text/javascript" src="/soc/content/js/survey-take-090825.js"></script>
<script type="text/javascript" src="/jquery/jquery-growfield.js"></script>
{% endblock %}

{% block header_title %}
{{ entity.title }}
{% endblock %}

{% block body %}
<div id="created">Last modified on {{ entity.modified }} by {{ entity.modified_by.name }}</div>

<div id="help_text">
  {% block help_text %}
    {{ help_text }}
  {% endblock help_text %}
</div>

{% block survey_description %}
{% if entity.content %}
  <div id="survey_description">
    {{ entity.content|safe }}
  </div>
{% endif %}
{% endblock survey_description %}

{% block survey_form %}
{% if form_action %}
  <form method="post" action="{{ form_action }}">
{% else %}
  <form method="post">
{% endif %}
  <div style="width:100%;">
    <div class="{{ status }}" id="survey_widget">
      <table>
        {% block form_table %}
          {% as_twoline_table survey_form %}
        {% endblock %}
      </table>
    </div> {# end survey_widget #}
  </div>

  <br /><br />

  <div>
    <table>
      <tbody>
        <tr>
          <td>
            <input type="submit" value="Submit" style="font-weight: bold;">
          </td>
        </tr>
      </tbody>
    </table>
  </div>
</form>
{% endblock survey_form %}

{% endblock body %}