author | Lennard de Rijk <ljvderijk@gmail.com> |
Tue, 04 Aug 2009 15:33:39 +0200 | |
changeset 2720 | 3f652b37e177 |
parent 2572 | 1ad6d986be6d |
child 2740 | 4b8aa5b9cb23 |
permissions | -rw-r--r-- |
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 %} |
dfb9249d91b6
Added skeleton for the take view and its template.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff
changeset
|
15 |
|
dfb9249d91b6
Added skeleton for the take view and its template.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff
changeset
|
16 |
{% block scripts %} |
dfb9249d91b6
Added skeleton for the take view and its template.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff
changeset
|
17 |
{{ block.super }} |
dfb9249d91b6
Added skeleton for the take view and its template.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff
changeset
|
18 |
<script type="text/javascript" src="/soc/content/js/survey-default-text-090627.js"></script> |
2572
1ad6d986be6d
Renamed several files due to recent changes.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
2570
diff
changeset
|
19 |
<script type="text/javascript" src="/soc/content/js/survey-take-090708.js"></script> |
2475
dfb9249d91b6
Added skeleton for the take view and its template.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff
changeset
|
20 |
<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
|
21 |
{% endblock %} |
dfb9249d91b6
Added skeleton for the take view and its template.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff
changeset
|
22 |
|
dfb9249d91b6
Added skeleton for the take view and its template.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff
changeset
|
23 |
{% block header_title %} |
dfb9249d91b6
Added skeleton for the take view and its template.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff
changeset
|
24 |
{{ entity.title }} |
dfb9249d91b6
Added skeleton for the take view and its template.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff
changeset
|
25 |
{% endblock %} |
dfb9249d91b6
Added skeleton for the take view and its template.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff
changeset
|
26 |
|
dfb9249d91b6
Added skeleton for the take view and its template.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff
changeset
|
27 |
{% block body %} |
dfb9249d91b6
Added skeleton for the take view and its template.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff
changeset
|
28 |
<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
|
29 |
|
dfb9249d91b6
Added skeleton for the take view and its template.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff
changeset
|
30 |
{% if survey_form %} |
dfb9249d91b6
Added skeleton for the take view and its template.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff
changeset
|
31 |
|
dfb9249d91b6
Added skeleton for the take view and its template.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff
changeset
|
32 |
{% load forms_helpers %} |
dfb9249d91b6
Added skeleton for the take view and its template.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff
changeset
|
33 |
|
dfb9249d91b6
Added skeleton for the take view and its template.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff
changeset
|
34 |
{{ help_text }} |
dfb9249d91b6
Added skeleton for the take view and its template.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff
changeset
|
35 |
|
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
|
36 |
{% if entity.content %} |
2720
3f652b37e177
Use proper id for survey_description div.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
2572
diff
changeset
|
37 |
<div id="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
|
38 |
{{ entity.content|safe }} |
ba32a4f5716b
Added the possiblitity to add a description to the top of the Survey.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
2554
diff
changeset
|
39 |
</div> |
ba32a4f5716b
Added the possiblitity to add a description to the top of the Survey.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
2554
diff
changeset
|
40 |
{% endif %} |
ba32a4f5716b
Added the possiblitity to add a description to the top of the Survey.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
2554
diff
changeset
|
41 |
|
2490
5aa7b281fdc7
Added the possibility to change the action of the form on the Survey take page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
2487
diff
changeset
|
42 |
{% if form_action %} |
5aa7b281fdc7
Added the possibility to change the action of the form on the Survey take page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
2487
diff
changeset
|
43 |
<form method="post" action="{{ form_action }}"> |
5aa7b281fdc7
Added the possibility to change the action of the form on the Survey take page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
2487
diff
changeset
|
44 |
{% else %} |
5aa7b281fdc7
Added the possibility to change the action of the form on the Survey take page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
2487
diff
changeset
|
45 |
<form method="post"> |
5aa7b281fdc7
Added the possibility to change the action of the form on the Survey take page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
2487
diff
changeset
|
46 |
{% endif %} |
2570 | 47 |
<div style="width:100%;"> |
2477
e5629995d118
Implemented the takeGet view for Surveys.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
2475
diff
changeset
|
48 |
<div class="{{ status }}" id="survey_widget"> |
e5629995d118
Implemented the takeGet view for Surveys.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
2475
diff
changeset
|
49 |
<table> |
e5629995d118
Implemented the takeGet view for Surveys.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
2475
diff
changeset
|
50 |
{% block form_table %} |
e5629995d118
Implemented the takeGet view for Surveys.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
2475
diff
changeset
|
51 |
{% as_twoline_table survey_form %} |
e5629995d118
Implemented the takeGet view for Surveys.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
2475
diff
changeset
|
52 |
{% endblock %} |
e5629995d118
Implemented the takeGet view for Surveys.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
2475
diff
changeset
|
53 |
</table> |
e5629995d118
Implemented the takeGet view for Surveys.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
2475
diff
changeset
|
54 |
</div> {# end survey_widget #} |
e5629995d118
Implemented the takeGet view for Surveys.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
2475
diff
changeset
|
55 |
</div> |
2475
dfb9249d91b6
Added skeleton for the take view and its template.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff
changeset
|
56 |
|
2570 | 57 |
<br><br> |
58 |
<div> |
|
2553
dace76c88446
Fix button layout on Safari 4.0 for Survey take page.
Mario Ferraro <fadinlight@gmail.com
parents:
2551
diff
changeset
|
59 |
<table> |
dace76c88446
Fix button layout on Safari 4.0 for Survey take page.
Mario Ferraro <fadinlight@gmail.com
parents:
2551
diff
changeset
|
60 |
<tbody> |
dace76c88446
Fix button layout on Safari 4.0 for Survey take page.
Mario Ferraro <fadinlight@gmail.com
parents:
2551
diff
changeset
|
61 |
<tr> |
dace76c88446
Fix button layout on Safari 4.0 for Survey take page.
Mario Ferraro <fadinlight@gmail.com
parents:
2551
diff
changeset
|
62 |
<td> |
2570 | 63 |
<input type="submit" value="Submit" style="font-weight: bold;"> |
2553
dace76c88446
Fix button layout on Safari 4.0 for Survey take page.
Mario Ferraro <fadinlight@gmail.com
parents:
2551
diff
changeset
|
64 |
</td> |
dace76c88446
Fix button layout on Safari 4.0 for Survey take page.
Mario Ferraro <fadinlight@gmail.com
parents:
2551
diff
changeset
|
65 |
</tr> |
dace76c88446
Fix button layout on Safari 4.0 for Survey take page.
Mario Ferraro <fadinlight@gmail.com
parents:
2551
diff
changeset
|
66 |
</tbody> |
dace76c88446
Fix button layout on Safari 4.0 for Survey take page.
Mario Ferraro <fadinlight@gmail.com
parents:
2551
diff
changeset
|
67 |
</table> |
dace76c88446
Fix button layout on Safari 4.0 for Survey take page.
Mario Ferraro <fadinlight@gmail.com
parents:
2551
diff
changeset
|
68 |
</div> |
2477
e5629995d118
Implemented the takeGet view for Surveys.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
2475
diff
changeset
|
69 |
</form> |
2475
dfb9249d91b6
Added skeleton for the take view and its template.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff
changeset
|
70 |
{% endif %} |
dfb9249d91b6
Added skeleton for the take view and its template.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff
changeset
|
71 |
|
dfb9249d91b6
Added skeleton for the take view and its template.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff
changeset
|
72 |
{% endblock %} |