author | Lennard de Rijk <ljvderijk@gmail.com> |
Sat, 27 Jun 2009 09:36:54 +0200 | |
changeset 2424 | 51cf7a0c00a4 |
parent 2422 | 44c500fc0eca |
child 2473 | 5cf0625dfa73 |
permissions | -rw-r--r-- |
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 %} |
44c500fc0eca
Added templates considering Surveys.
Daniel Diniz <ajaksu@gmail.com>
parents:
diff
changeset
|
15 |
|
44c500fc0eca
Added templates considering Surveys.
Daniel Diniz <ajaksu@gmail.com>
parents:
diff
changeset
|
16 |
{% block scripts %} |
44c500fc0eca
Added templates considering Surveys.
Daniel Diniz <ajaksu@gmail.com>
parents:
diff
changeset
|
17 |
{{ 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
|
18 |
<script type="text/javascript" src="/soc/content/js/survey-default-text-090627.js"></script> |
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/survey-take-090627.js"></script> |
2422
44c500fc0eca
Added templates considering Surveys.
Daniel Diniz <ajaksu@gmail.com>
parents:
diff
changeset
|
20 |
<script type="text/javascript" src="/jquery/jquery-growfield.js"></script> |
44c500fc0eca
Added templates considering Surveys.
Daniel Diniz <ajaksu@gmail.com>
parents:
diff
changeset
|
21 |
{% endblock %} |
44c500fc0eca
Added templates considering Surveys.
Daniel Diniz <ajaksu@gmail.com>
parents:
diff
changeset
|
22 |
|
44c500fc0eca
Added templates considering Surveys.
Daniel Diniz <ajaksu@gmail.com>
parents:
diff
changeset
|
23 |
{% block page_title %} |
44c500fc0eca
Added templates considering Surveys.
Daniel Diniz <ajaksu@gmail.com>
parents:
diff
changeset
|
24 |
{{ entity.title }} |
44c500fc0eca
Added templates considering Surveys.
Daniel Diniz <ajaksu@gmail.com>
parents:
diff
changeset
|
25 |
{% endblock %} |
44c500fc0eca
Added templates considering Surveys.
Daniel Diniz <ajaksu@gmail.com>
parents:
diff
changeset
|
26 |
|
44c500fc0eca
Added templates considering Surveys.
Daniel Diniz <ajaksu@gmail.com>
parents:
diff
changeset
|
27 |
{% block header_title %} |
44c500fc0eca
Added templates considering Surveys.
Daniel Diniz <ajaksu@gmail.com>
parents:
diff
changeset
|
28 |
{{ entity.title }} |
44c500fc0eca
Added templates considering Surveys.
Daniel Diniz <ajaksu@gmail.com>
parents:
diff
changeset
|
29 |
{% endblock %} |
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 |
{% block body %} |
44c500fc0eca
Added templates considering Surveys.
Daniel Diniz <ajaksu@gmail.com>
parents:
diff
changeset
|
32 |
<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
|
33 |
|
44c500fc0eca
Added templates considering Surveys.
Daniel Diniz <ajaksu@gmail.com>
parents:
diff
changeset
|
34 |
{% if survey_form %} |
44c500fc0eca
Added templates considering Surveys.
Daniel Diniz <ajaksu@gmail.com>
parents:
diff
changeset
|
35 |
|
44c500fc0eca
Added templates considering Surveys.
Daniel Diniz <ajaksu@gmail.com>
parents:
diff
changeset
|
36 |
{% load forms_helpers %} |
44c500fc0eca
Added templates considering Surveys.
Daniel Diniz <ajaksu@gmail.com>
parents:
diff
changeset
|
37 |
|
44c500fc0eca
Added templates considering Surveys.
Daniel Diniz <ajaksu@gmail.com>
parents:
diff
changeset
|
38 |
{% if not read_only %} |
44c500fc0eca
Added templates considering Surveys.
Daniel Diniz <ajaksu@gmail.com>
parents:
diff
changeset
|
39 |
<form method="post"> |
44c500fc0eca
Added templates considering Surveys.
Daniel Diniz <ajaksu@gmail.com>
parents:
diff
changeset
|
40 |
{% endif %} |
44c500fc0eca
Added templates considering Surveys.
Daniel Diniz <ajaksu@gmail.com>
parents:
diff
changeset
|
41 |
|
44c500fc0eca
Added templates considering Surveys.
Daniel Diniz <ajaksu@gmail.com>
parents:
diff
changeset
|
42 |
{% if read_only %} |
44c500fc0eca
Added templates considering Surveys.
Daniel Diniz <ajaksu@gmail.com>
parents:
diff
changeset
|
43 |
<form method="get" onsubmit="javascript:return false"> |
44c500fc0eca
Added templates considering Surveys.
Daniel Diniz <ajaksu@gmail.com>
parents:
diff
changeset
|
44 |
{% endif %} |
44c500fc0eca
Added templates considering Surveys.
Daniel Diniz <ajaksu@gmail.com>
parents:
diff
changeset
|
45 |
|
44c500fc0eca
Added templates considering Surveys.
Daniel Diniz <ajaksu@gmail.com>
parents:
diff
changeset
|
46 |
{{ help_text }} |
44c500fc0eca
Added templates considering Surveys.
Daniel Diniz <ajaksu@gmail.com>
parents:
diff
changeset
|
47 |
|
44c500fc0eca
Added templates considering Surveys.
Daniel Diniz <ajaksu@gmail.com>
parents:
diff
changeset
|
48 |
<div style="width:100%; float:left;"> |
44c500fc0eca
Added templates considering Surveys.
Daniel Diniz <ajaksu@gmail.com>
parents:
diff
changeset
|
49 |
<div class="{{ status }}" id="survey_widget"> |
44c500fc0eca
Added templates considering Surveys.
Daniel Diniz <ajaksu@gmail.com>
parents:
diff
changeset
|
50 |
|
44c500fc0eca
Added templates considering Surveys.
Daniel Diniz <ajaksu@gmail.com>
parents:
diff
changeset
|
51 |
<table> |
44c500fc0eca
Added templates considering Surveys.
Daniel Diniz <ajaksu@gmail.com>
parents:
diff
changeset
|
52 |
|
44c500fc0eca
Added templates considering Surveys.
Daniel Diniz <ajaksu@gmail.com>
parents:
diff
changeset
|
53 |
{# Project Selected for this Survey #} |
44c500fc0eca
Added templates considering Surveys.
Daniel Diniz <ajaksu@gmail.com>
parents:
diff
changeset
|
54 |
{% if project %} |
44c500fc0eca
Added templates considering Surveys.
Daniel Diniz <ajaksu@gmail.com>
parents:
diff
changeset
|
55 |
<div id="project_link" style="font-size:.8em; margin:3px; display:none;"> |
44c500fc0eca
Added templates considering Surveys.
Daniel Diniz <ajaksu@gmail.com>
parents:
diff
changeset
|
56 |
view project: |
44c500fc0eca
Added templates considering Surveys.
Daniel Diniz <ajaksu@gmail.com>
parents:
diff
changeset
|
57 |
<a target="_blank" href="/student_project/show/{{ project.key.name }}" > |
44c500fc0eca
Added templates considering Surveys.
Daniel Diniz <ajaksu@gmail.com>
parents:
diff
changeset
|
58 |
{{ project.title }} |
44c500fc0eca
Added templates considering Surveys.
Daniel Diniz <ajaksu@gmail.com>
parents:
diff
changeset
|
59 |
</a> |
44c500fc0eca
Added templates considering Surveys.
Daniel Diniz <ajaksu@gmail.com>
parents:
diff
changeset
|
60 |
</div> |
44c500fc0eca
Added templates considering Surveys.
Daniel Diniz <ajaksu@gmail.com>
parents:
diff
changeset
|
61 |
{% endif %} |
44c500fc0eca
Added templates considering Surveys.
Daniel Diniz <ajaksu@gmail.com>
parents:
diff
changeset
|
62 |
|
44c500fc0eca
Added templates considering Surveys.
Daniel Diniz <ajaksu@gmail.com>
parents:
diff
changeset
|
63 |
{% block form_table %} |
44c500fc0eca
Added templates considering Surveys.
Daniel Diniz <ajaksu@gmail.com>
parents:
diff
changeset
|
64 |
{% as_twoline_table survey_form %} |
44c500fc0eca
Added templates considering Surveys.
Daniel Diniz <ajaksu@gmail.com>
parents:
diff
changeset
|
65 |
{% endblock %} |
44c500fc0eca
Added templates considering Surveys.
Daniel Diniz <ajaksu@gmail.com>
parents:
diff
changeset
|
66 |
|
44c500fc0eca
Added templates considering Surveys.
Daniel Diniz <ajaksu@gmail.com>
parents:
diff
changeset
|
67 |
</table> |
44c500fc0eca
Added templates considering Surveys.
Daniel Diniz <ajaksu@gmail.com>
parents:
diff
changeset
|
68 |
</div> {# end survey_widget #} |
44c500fc0eca
Added templates considering Surveys.
Daniel Diniz <ajaksu@gmail.com>
parents:
diff
changeset
|
69 |
</div> |
44c500fc0eca
Added templates considering Surveys.
Daniel Diniz <ajaksu@gmail.com>
parents:
diff
changeset
|
70 |
|
44c500fc0eca
Added templates considering Surveys.
Daniel Diniz <ajaksu@gmail.com>
parents:
diff
changeset
|
71 |
<br/><br/> |
44c500fc0eca
Added templates considering Surveys.
Daniel Diniz <ajaksu@gmail.com>
parents:
diff
changeset
|
72 |
<table> |
44c500fc0eca
Added templates considering Surveys.
Daniel Diniz <ajaksu@gmail.com>
parents:
diff
changeset
|
73 |
<tbody> |
44c500fc0eca
Added templates considering Surveys.
Daniel Diniz <ajaksu@gmail.com>
parents:
diff
changeset
|
74 |
<tr> |
44c500fc0eca
Added templates considering Surveys.
Daniel Diniz <ajaksu@gmail.com>
parents:
diff
changeset
|
75 |
<td> |
44c500fc0eca
Added templates considering Surveys.
Daniel Diniz <ajaksu@gmail.com>
parents:
diff
changeset
|
76 |
{% if not read_only %} |
44c500fc0eca
Added templates considering Surveys.
Daniel Diniz <ajaksu@gmail.com>
parents:
diff
changeset
|
77 |
<input type="submit" value="Submit" style="font-weight: bold;"/> |
44c500fc0eca
Added templates considering Surveys.
Daniel Diniz <ajaksu@gmail.com>
parents:
diff
changeset
|
78 |
{% endif %} |
44c500fc0eca
Added templates considering Surveys.
Daniel Diniz <ajaksu@gmail.com>
parents:
diff
changeset
|
79 |
</td> |
44c500fc0eca
Added templates considering Surveys.
Daniel Diniz <ajaksu@gmail.com>
parents:
diff
changeset
|
80 |
</tr> |
44c500fc0eca
Added templates considering Surveys.
Daniel Diniz <ajaksu@gmail.com>
parents:
diff
changeset
|
81 |
</tbody> |
44c500fc0eca
Added templates considering Surveys.
Daniel Diniz <ajaksu@gmail.com>
parents:
diff
changeset
|
82 |
</table> |
44c500fc0eca
Added templates considering Surveys.
Daniel Diniz <ajaksu@gmail.com>
parents:
diff
changeset
|
83 |
|
44c500fc0eca
Added templates considering Surveys.
Daniel Diniz <ajaksu@gmail.com>
parents:
diff
changeset
|
84 |
</form> |
44c500fc0eca
Added templates considering Surveys.
Daniel Diniz <ajaksu@gmail.com>
parents:
diff
changeset
|
85 |
{% endif %} |
44c500fc0eca
Added templates considering Surveys.
Daniel Diniz <ajaksu@gmail.com>
parents:
diff
changeset
|
86 |
|
44c500fc0eca
Added templates considering Surveys.
Daniel Diniz <ajaksu@gmail.com>
parents:
diff
changeset
|
87 |
{% endblock %} |