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.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2475
dfb9249d91b6 Added skeleton for the take view and its template.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
     1
{% extends "soc/base.html" %}
dfb9249d91b6 Added skeleton for the take view and its template.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
     2
{% comment %}
dfb9249d91b6 Added skeleton for the take view and its template.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
     3
Licensed under the Apache License, Version 2.0 (the "License");
dfb9249d91b6 Added skeleton for the take view and its template.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
     4
you may not use this file except in compliance with the License.
dfb9249d91b6 Added skeleton for the take view and its template.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
     5
You may obtain a copy of the License at
dfb9249d91b6 Added skeleton for the take view and its template.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
     6
dfb9249d91b6 Added skeleton for the take view and its template.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
     7
http://www.apache.org/licenses/LICENSE-2.0
dfb9249d91b6 Added skeleton for the take view and its template.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
     8
dfb9249d91b6 Added skeleton for the take view and its template.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
     9
Unless required by applicable law or agreed to in writing, software
dfb9249d91b6 Added skeleton for the take view and its template.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    10
distributed under the License is distributed on an "AS IS" BASIS,
dfb9249d91b6 Added skeleton for the take view and its template.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    11
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
dfb9249d91b6 Added skeleton for the take view and its template.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    12
See the License for the specific language governing permissions and
dfb9249d91b6 Added skeleton for the take view and its template.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    13
limitations under the License.
dfb9249d91b6 Added skeleton for the take view and its template.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    14
{% endcomment %}
2740
4b8aa5b9cb23 Added project title and student name to the ProjectSurvey take page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2720
diff changeset
    15
{% load forms_helpers %}
2475
dfb9249d91b6 Added skeleton for the take view and its template.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    16
dfb9249d91b6 Added skeleton for the take view and its template.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    17
{% block scripts %}
dfb9249d91b6 Added skeleton for the take view and its template.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    18
{{ block.super }}
dfb9249d91b6 Added skeleton for the take view and its template.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    19
<script type="text/javascript" src="/soc/content/js/survey-default-text-090627.js"></script>
2801
0ee67cc9bd20 Renamed all JS files affected by former commit.
Mario Ferraro <fadinlight@gmail.com>
parents: 2740
diff changeset
    20
<script type="text/javascript" src="/soc/content/js/survey-take-090825.js"></script>
2475
dfb9249d91b6 Added skeleton for the take view and its template.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    21
<script type="text/javascript" src="/jquery/jquery-growfield.js"></script>
dfb9249d91b6 Added skeleton for the take view and its template.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    22
{% endblock %}
dfb9249d91b6 Added skeleton for the take view and its template.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    23
dfb9249d91b6 Added skeleton for the take view and its template.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    24
{% block header_title %}
dfb9249d91b6 Added skeleton for the take view and its template.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    25
{{ entity.title }}
dfb9249d91b6 Added skeleton for the take view and its template.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    26
{% endblock %}
dfb9249d91b6 Added skeleton for the take view and its template.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    27
dfb9249d91b6 Added skeleton for the take view and its template.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    28
{% block body %}
dfb9249d91b6 Added skeleton for the take view and its template.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    29
<div id="created">Last modified on {{ entity.modified }} by {{ entity.modified_by.name }}</div>
dfb9249d91b6 Added skeleton for the take view and its template.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    30
2740
4b8aa5b9cb23 Added project title and student name to the ProjectSurvey take page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2720
diff changeset
    31
<div id="help_text">
4b8aa5b9cb23 Added project title and student name to the ProjectSurvey take page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2720
diff changeset
    32
  {% block help_text %}
4b8aa5b9cb23 Added project title and student name to the ProjectSurvey take page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2720
diff changeset
    33
    {{ help_text }}
4b8aa5b9cb23 Added project title and student name to the ProjectSurvey take page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2720
diff changeset
    34
  {% endblock help_text %}
4b8aa5b9cb23 Added project title and student name to the ProjectSurvey take page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2720
diff changeset
    35
</div>
2475
dfb9249d91b6 Added skeleton for the take view and its template.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    36
2740
4b8aa5b9cb23 Added project title and student name to the ProjectSurvey take page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2720
diff changeset
    37
{% block survey_description %}
4b8aa5b9cb23 Added project title and student name to the ProjectSurvey take page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2720
diff changeset
    38
{% if entity.content %}
4b8aa5b9cb23 Added project title and student name to the ProjectSurvey take page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2720
diff changeset
    39
  <div id="survey_description">
4b8aa5b9cb23 Added project title and student name to the ProjectSurvey take page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2720
diff changeset
    40
    {{ entity.content|safe }}
4b8aa5b9cb23 Added project title and student name to the ProjectSurvey take page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2720
diff changeset
    41
  </div>
4b8aa5b9cb23 Added project title and student name to the ProjectSurvey take page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2720
diff changeset
    42
{% endif %}
4b8aa5b9cb23 Added project title and student name to the ProjectSurvey take page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2720
diff changeset
    43
{% endblock survey_description %}
2558
ba32a4f5716b Added the possiblitity to add a description to the top of the Survey.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2554
diff changeset
    44
2740
4b8aa5b9cb23 Added project title and student name to the ProjectSurvey take page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2720
diff changeset
    45
{% block survey_form %}
4b8aa5b9cb23 Added project title and student name to the ProjectSurvey take page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2720
diff changeset
    46
{% if form_action %}
4b8aa5b9cb23 Added project title and student name to the ProjectSurvey take page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2720
diff changeset
    47
  <form method="post" action="{{ form_action }}">
4b8aa5b9cb23 Added project title and student name to the ProjectSurvey take page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2720
diff changeset
    48
{% else %}
4b8aa5b9cb23 Added project title and student name to the ProjectSurvey take page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2720
diff changeset
    49
  <form method="post">
4b8aa5b9cb23 Added project title and student name to the ProjectSurvey take page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2720
diff changeset
    50
{% endif %}
4b8aa5b9cb23 Added project title and student name to the ProjectSurvey take page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2720
diff changeset
    51
  <div style="width:100%;">
4b8aa5b9cb23 Added project title and student name to the ProjectSurvey take page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2720
diff changeset
    52
    <div class="{{ status }}" id="survey_widget">
4b8aa5b9cb23 Added project title and student name to the ProjectSurvey take page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2720
diff changeset
    53
      <table>
4b8aa5b9cb23 Added project title and student name to the ProjectSurvey take page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2720
diff changeset
    54
        {% block form_table %}
4b8aa5b9cb23 Added project title and student name to the ProjectSurvey take page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2720
diff changeset
    55
          {% as_twoline_table survey_form %}
4b8aa5b9cb23 Added project title and student name to the ProjectSurvey take page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2720
diff changeset
    56
        {% endblock %}
4b8aa5b9cb23 Added project title and student name to the ProjectSurvey take page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2720
diff changeset
    57
      </table>
4b8aa5b9cb23 Added project title and student name to the ProjectSurvey take page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2720
diff changeset
    58
    </div> {# end survey_widget #}
4b8aa5b9cb23 Added project title and student name to the ProjectSurvey take page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2720
diff changeset
    59
  </div>
2475
dfb9249d91b6 Added skeleton for the take view and its template.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    60
2740
4b8aa5b9cb23 Added project title and student name to the ProjectSurvey take page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2720
diff changeset
    61
  <br /><br />
2475
dfb9249d91b6 Added skeleton for the take view and its template.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    62
2740
4b8aa5b9cb23 Added project title and student name to the ProjectSurvey take page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2720
diff changeset
    63
  <div>
4b8aa5b9cb23 Added project title and student name to the ProjectSurvey take page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2720
diff changeset
    64
    <table>
4b8aa5b9cb23 Added project title and student name to the ProjectSurvey take page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2720
diff changeset
    65
      <tbody>
4b8aa5b9cb23 Added project title and student name to the ProjectSurvey take page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2720
diff changeset
    66
        <tr>
4b8aa5b9cb23 Added project title and student name to the ProjectSurvey take page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2720
diff changeset
    67
          <td>
4b8aa5b9cb23 Added project title and student name to the ProjectSurvey take page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2720
diff changeset
    68
            <input type="submit" value="Submit" style="font-weight: bold;">
4b8aa5b9cb23 Added project title and student name to the ProjectSurvey take page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2720
diff changeset
    69
          </td>
4b8aa5b9cb23 Added project title and student name to the ProjectSurvey take page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2720
diff changeset
    70
        </tr>
4b8aa5b9cb23 Added project title and student name to the ProjectSurvey take page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2720
diff changeset
    71
      </tbody>
4b8aa5b9cb23 Added project title and student name to the ProjectSurvey take page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2720
diff changeset
    72
    </table>
4b8aa5b9cb23 Added project title and student name to the ProjectSurvey take page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2720
diff changeset
    73
  </div>
4b8aa5b9cb23 Added project title and student name to the ProjectSurvey take page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2720
diff changeset
    74
</form>
4b8aa5b9cb23 Added project title and student name to the ProjectSurvey take page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2720
diff changeset
    75
{% endblock survey_form %}
4b8aa5b9cb23 Added project title and student name to the ProjectSurvey take page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2720
diff changeset
    76
4b8aa5b9cb23 Added project title and student name to the ProjectSurvey take page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2720
diff changeset
    77
{% endblock body %}