diff --git a/physics/templates/physics/exam_take.html b/physics/templates/physics/exam_take.html index 51f4b991..6261406d 100644 --- a/physics/templates/physics/exam_take.html +++ b/physics/templates/physics/exam_take.html @@ -2,277 +2,279 @@ {% block content %} -
-

Exam: {{ exam.name }}

+
+

Exam: {{ exam.name }}

- + -
- Candidate number: -
+
+ Candidate number: +
-

Questions

+

Questions

- {% autoescape off %} -
    - {% for question in questions.all %} + {% autoescape off %} +
      + {% for question in questions.all %} -
    1. - {{ question.stem }} -
        -
      1. - {{ question.a }}: -
      2. -
      3. - {{ question.b }}: -
      4. -
      5. - {{ question.c }}: -
      6. -
      7. - {{ question.d }}: -
      8. -
      9. - {{ question.e }}: -
      10. +
      11. + {{ question.stem }} +
          +
        1. + {{ question.a }}: +
        2. +
        3. + {{ question.b }}: +
        4. +
        5. + {{ question.c }}: +
        6. +
        7. + {{ question.d }}: +
        8. +
        9. + {{ question.e }}: +
        10. +
        +
      12. + {% endfor %}
      -
    2. - {% endfor %} -
    - {% endautoescape %} + {% endautoescape %} - + -
+
- + window.onbeforeunload = confirmExit; + function confirmExit() { + if (!window.answers_submitted) { + return "You have attempted to leave this page. Are you sure?"; + } + } - -{% endblock %} \ No newline at end of file + input:checked+.slider.c:after { + content: 'c )TRUE'; + } + + input:checked+.slider.d:after { + content: 'd )TRUE'; + } + + input:checked+.slider.e:after { + content: 'e )TRUE'; + } + + .question-text { + display: inline-block; + vertical-align: text-top; + clear: both; + width: 600px; + } + + .abcde { + clear: both; + } + +{% endblock %}