From cc956355f8ddb13e9430f6e41ab183eebc848530 Mon Sep 17 00:00:00 2001 From: maheshgudi Date: Mon, 8 Jan 2018 16:57:42 +0530 Subject: Allow access to previous completed questions in exercises --- yaksh/templates/exam.html | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'yaksh/templates') diff --git a/yaksh/templates/exam.html b/yaksh/templates/exam.html index ce1d3b8..012adbe 100644 --- a/yaksh/templates/exam.html +++ b/yaksh/templates/exam.html @@ -60,6 +60,10 @@ {% else %} {% if qid.id == question.id %}
  • {{ forloop.counter }}
  • + {% elif qid in paper.get_questions_answered %} +
  • {{ forloop.counter }}
  • {% else %}
  • {{ forloop.counter }}
  • {% endif %} -- cgit From f0fafed7ba0002369f528a901d9e5590f5bd3bea Mon Sep 17 00:00:00 2001 From: maheshgudi Date: Mon, 8 Jan 2018 17:29:23 +0530 Subject: Separate solution div from question description div --- yaksh/templates/yaksh/question.html | 38 ++++++++++++++++++------------------- 1 file changed, 18 insertions(+), 20 deletions(-) (limited to 'yaksh/templates') diff --git a/yaksh/templates/yaksh/question.html b/yaksh/templates/yaksh/question.html index b7251ad..c7e6efb 100644 --- a/yaksh/templates/yaksh/question.html +++ b/yaksh/templates/yaksh/question.html @@ -144,21 +144,6 @@ question_type = "{{ question.type }}" {% endblock %} {% block main %} -

    - {% if notification %} - {% if question.type == "code" %} - - {% else %} - - {% endif %} - {% else %} - - {% endif %}
    {% csrf_token %} @@ -197,22 +182,20 @@ question_type = "{{ question.type }}"
    {{f_name.file.name}}
    {% endfor %} {% endif %} - + +
    {% if quiz.is_exercise %} {% if can_skip %} -
    +
    {% else %} {% endif %} -
    {% if question.type == "mcq" %} {% for test_case in test_cases %} @@ -304,6 +287,21 @@ question_type = "{{ question.type }}"

    +

    + {% if notification %} + {% if question.type == "code" %} + + {% else %} + + {% endif %} + {% else %} + + {% endif %} {% if question.type == 'code' or question.type == 'upload' %}
    {% endif %} -- cgit