|
1 {% extends "soc/base.html" %} |
|
2 {% comment %} |
|
3 Licensed under the Apache License, Version 2.0 (the "License"); |
|
4 you may not use this file except in compliance with the License. |
|
5 You may obtain a copy of the License at |
|
6 |
|
7 http://www.apache.org/licenses/LICENSE-2.0 |
|
8 |
|
9 Unless required by applicable law or agreed to in writing, software |
|
10 distributed under the License is distributed on an "AS IS" BASIS, |
|
11 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
12 See the License for the specific language governing permissions and |
|
13 limitations under the License. |
|
14 {% endcomment %} |
|
15 |
|
16 {% block scripts %} |
|
17 {{ block.super }} |
|
18 |
|
19 <script type="text/javascript" src="/soc/content/js/take_survey.js"></script> |
|
20 <script type="text/javascript" src="/soc/content/js/default-text.js"></script> |
|
21 <script type="text/javascript" src="/jquery/jquery-growfield.js"></script> |
|
22 {% endblock %} |
|
23 |
|
24 {% block page_title %} |
|
25 {{ entity.title }} |
|
26 {% endblock %} |
|
27 |
|
28 {% block header_title %} |
|
29 {{ entity.title }} |
|
30 {% endblock %} |
|
31 |
|
32 {% block body %} |
|
33 <div id="created">Last modified on {{ entity.modified }} by {{ entity.modified_by.name }}</div> |
|
34 |
|
35 {% if survey_form %} |
|
36 |
|
37 {% load forms_helpers %} |
|
38 |
|
39 {% if not read_only %} |
|
40 <form method="post"> |
|
41 {% endif %} |
|
42 |
|
43 {% if read_only %} |
|
44 <form method="get" onsubmit="javascript:return false"> |
|
45 {% endif %} |
|
46 |
|
47 {{ help_text }} |
|
48 |
|
49 <div style="width:100%; float:left;"> |
|
50 <div class="{{ status }}" id="survey_widget"> |
|
51 |
|
52 <table> |
|
53 |
|
54 {# Project Selected for this Survey #} |
|
55 {% if project %} |
|
56 <div id="project_link" style="font-size:.8em; margin:3px; display:none;"> |
|
57 view project: |
|
58 <a target="_blank" href="/student_project/show/{{ project.key.name }}" > |
|
59 {{ project.title }} |
|
60 </a> |
|
61 </div> |
|
62 {% endif %} |
|
63 |
|
64 {% block form_table %} |
|
65 {% as_twoline_table survey_form %} |
|
66 {% endblock %} |
|
67 |
|
68 </table> |
|
69 </div> {# end survey_widget #} |
|
70 </div> |
|
71 |
|
72 <br/><br/> |
|
73 <table> |
|
74 <tbody> |
|
75 <tr> |
|
76 <td> |
|
77 {% if not read_only %} |
|
78 <input type="submit" value="Submit" style="font-weight: bold;"/> |
|
79 {% endif %} |
|
80 </td> |
|
81 </tr> |
|
82 </tbody> |
|
83 </table> |
|
84 |
|
85 </form> |
|
86 {% endif %} |
|
87 |
|
88 {% endblock %} |