app/soc/templates/soc/survey/public.html
author James Levy <jamesalexanderlevy@gmail.com>
Tue, 04 Aug 2009 15:34:41 +0200
changeset 2721 e32118b84718
parent 2660 e2654d53a643
child 2801 0ee67cc9bd20
permissions -rw-r--r--
Added template for viewing Survey Records. Reviewed by: Lennard de Rijk
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2422
44c500fc0eca Added templates considering Surveys.
Daniel Diniz <ajaksu@gmail.com>
parents:
diff changeset
     1
{% extends "soc/base.html" %}
44c500fc0eca Added templates considering Surveys.
Daniel Diniz <ajaksu@gmail.com>
parents:
diff changeset
     2
{% comment %}
44c500fc0eca Added templates considering Surveys.
Daniel Diniz <ajaksu@gmail.com>
parents:
diff changeset
     3
Licensed under the Apache License, Version 2.0 (the "License");
44c500fc0eca Added templates considering Surveys.
Daniel Diniz <ajaksu@gmail.com>
parents:
diff changeset
     4
you may not use this file except in compliance with the License.
44c500fc0eca Added templates considering Surveys.
Daniel Diniz <ajaksu@gmail.com>
parents:
diff changeset
     5
You may obtain a copy of the License at
44c500fc0eca Added templates considering Surveys.
Daniel Diniz <ajaksu@gmail.com>
parents:
diff changeset
     6
44c500fc0eca Added templates considering Surveys.
Daniel Diniz <ajaksu@gmail.com>
parents:
diff changeset
     7
http://www.apache.org/licenses/LICENSE-2.0
44c500fc0eca Added templates considering Surveys.
Daniel Diniz <ajaksu@gmail.com>
parents:
diff changeset
     8
44c500fc0eca Added templates considering Surveys.
Daniel Diniz <ajaksu@gmail.com>
parents:
diff changeset
     9
Unless required by applicable law or agreed to in writing, software
44c500fc0eca Added templates considering Surveys.
Daniel Diniz <ajaksu@gmail.com>
parents:
diff changeset
    10
distributed under the License is distributed on an "AS IS" BASIS,
44c500fc0eca Added templates considering Surveys.
Daniel Diniz <ajaksu@gmail.com>
parents:
diff changeset
    11
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
44c500fc0eca Added templates considering Surveys.
Daniel Diniz <ajaksu@gmail.com>
parents:
diff changeset
    12
See the License for the specific language governing permissions and
44c500fc0eca Added templates considering Surveys.
Daniel Diniz <ajaksu@gmail.com>
parents:
diff changeset
    13
limitations under the License.
44c500fc0eca Added templates considering Surveys.
Daniel Diniz <ajaksu@gmail.com>
parents:
diff changeset
    14
{% endcomment %}
2721
e32118b84718 Added template for viewing Survey Records.
James Levy <jamesalexanderlevy@gmail.com>
parents: 2660
diff changeset
    15
{% load forms_helpers %}
2422
44c500fc0eca Added templates considering Surveys.
Daniel Diniz <ajaksu@gmail.com>
parents:
diff changeset
    16
44c500fc0eca Added templates considering Surveys.
Daniel Diniz <ajaksu@gmail.com>
parents:
diff changeset
    17
{% block scripts %}
44c500fc0eca Added templates considering Surveys.
Daniel Diniz <ajaksu@gmail.com>
parents:
diff changeset
    18
{{ block.super }}
2424
51cf7a0c00a4 Renamed JavaScript files in templates to match the correct files using prefixes.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2422
diff changeset
    19
<script type="text/javascript" src="/soc/content/js/survey-default-text-090627.js"></script>
2657
a93c6b2acf9b Fixed wrong js being referenced by the public Survey template.
James Levy <jamesalexanderlevy@gmail.com>
parents: 2572
diff changeset
    20
<script type="text/javascript" src="/soc/content/js/survey-take-090708.js"></script>
2422
44c500fc0eca Added templates considering Surveys.
Daniel Diniz <ajaksu@gmail.com>
parents:
diff changeset
    21
<script type="text/javascript" src="/jquery/jquery-growfield.js"></script>
44c500fc0eca Added templates considering Surveys.
Daniel Diniz <ajaksu@gmail.com>
parents:
diff changeset
    22
{% endblock %}
44c500fc0eca Added templates considering Surveys.
Daniel Diniz <ajaksu@gmail.com>
parents:
diff changeset
    23
44c500fc0eca Added templates considering Surveys.
Daniel Diniz <ajaksu@gmail.com>
parents:
diff changeset
    24
{% block header_title %}
44c500fc0eca Added templates considering Surveys.
Daniel Diniz <ajaksu@gmail.com>
parents:
diff changeset
    25
{{ entity.title }}
44c500fc0eca Added templates considering Surveys.
Daniel Diniz <ajaksu@gmail.com>
parents:
diff changeset
    26
{% endblock %}
44c500fc0eca Added templates considering Surveys.
Daniel Diniz <ajaksu@gmail.com>
parents:
diff changeset
    27
44c500fc0eca Added templates considering Surveys.
Daniel Diniz <ajaksu@gmail.com>
parents:
diff changeset
    28
{% block body %}
44c500fc0eca Added templates considering Surveys.
Daniel Diniz <ajaksu@gmail.com>
parents:
diff changeset
    29
<div id="created">Last modified on {{ entity.modified }} by {{ entity.modified_by.name }}</div>
44c500fc0eca Added templates considering Surveys.
Daniel Diniz <ajaksu@gmail.com>
parents:
diff changeset
    30
44c500fc0eca Added templates considering Surveys.
Daniel Diniz <ajaksu@gmail.com>
parents:
diff changeset
    31
{% if survey_form %}
44c500fc0eca Added templates considering Surveys.
Daniel Diniz <ajaksu@gmail.com>
parents:
diff changeset
    32
2473
5cf0625dfa73 Changed the Survey public view to give a preview of the Survey.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2424
diff changeset
    33
  <form method="get" onsubmit="javascript:return false">
2721
e32118b84718 Added template for viewing Survey Records.
James Levy <jamesalexanderlevy@gmail.com>
parents: 2660
diff changeset
    34
  {% block page_description %}
2473
5cf0625dfa73 Changed the Survey public view to give a preview of the Survey.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2424
diff changeset
    35
    This page gives a preview of how users will see the Survey.
2721
e32118b84718 Added template for viewing Survey Records.
James Levy <jamesalexanderlevy@gmail.com>
parents: 2660
diff changeset
    36
  {% endblock %}
2422
44c500fc0eca Added templates considering Surveys.
Daniel Diniz <ajaksu@gmail.com>
parents:
diff changeset
    37
2559
af2874bc01f3 Public Survey template now resembles the take template more closely.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2558
diff changeset
    38
    {% if entity.content %}
2660
e2654d53a643 Another batch of style fixes for Surveys.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2657
diff changeset
    39
      <div id="survey_description">
2559
af2874bc01f3 Public Survey template now resembles the take template more closely.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2558
diff changeset
    40
        {{ entity.content|safe }}
af2874bc01f3 Public Survey template now resembles the take template more closely.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2558
diff changeset
    41
      </div>
af2874bc01f3 Public Survey template now resembles the take template more closely.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2558
diff changeset
    42
    {% endif %}
2558
ba32a4f5716b Added the possiblitity to add a description to the top of the Survey.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2551
diff changeset
    43
2473
5cf0625dfa73 Changed the Survey public view to give a preview of the Survey.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2424
diff changeset
    44
    <div style="width:100%; float:left;">
5cf0625dfa73 Changed the Survey public view to give a preview of the Survey.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2424
diff changeset
    45
      <div class="{{ status }}" id="survey_widget">
5cf0625dfa73 Changed the Survey public view to give a preview of the Survey.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2424
diff changeset
    46
        <table>
5cf0625dfa73 Changed the Survey public view to give a preview of the Survey.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2424
diff changeset
    47
          {% block form_table %}
5cf0625dfa73 Changed the Survey public view to give a preview of the Survey.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2424
diff changeset
    48
            {% as_twoline_table survey_form %}
5cf0625dfa73 Changed the Survey public view to give a preview of the Survey.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2424
diff changeset
    49
          {% endblock %}
5cf0625dfa73 Changed the Survey public view to give a preview of the Survey.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2424
diff changeset
    50
        </table>
5cf0625dfa73 Changed the Survey public view to give a preview of the Survey.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2424
diff changeset
    51
      </div> {# end survey_widget #}
5cf0625dfa73 Changed the Survey public view to give a preview of the Survey.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2424
diff changeset
    52
    </div>
5cf0625dfa73 Changed the Survey public view to give a preview of the Survey.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2424
diff changeset
    53
  </form>
2422
44c500fc0eca Added templates considering Surveys.
Daniel Diniz <ajaksu@gmail.com>
parents:
diff changeset
    54
{% endif %}
44c500fc0eca Added templates considering Surveys.
Daniel Diniz <ajaksu@gmail.com>
parents:
diff changeset
    55
44c500fc0eca Added templates considering Surveys.
Daniel Diniz <ajaksu@gmail.com>
parents:
diff changeset
    56
{% endblock %}