From 87beec6a0389e35c94fe674627d47e1f3ea1c22e Mon Sep 17 00:00:00 2001 From: ankitjavalkar Date: Mon, 6 Mar 2017 13:07:46 +0530 Subject: Display full name of course creator & redirect logout correctly --- yaksh/templates/user.html | 2 +- yaksh/templates/yaksh/quizzes_user.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'yaksh/templates') diff --git a/yaksh/templates/user.html b/yaksh/templates/user.html index 0d1f980..b068fae 100644 --- a/yaksh/templates/user.html +++ b/yaksh/templates/user.html @@ -16,7 +16,7 @@ diff --git a/yaksh/templates/yaksh/quizzes_user.html b/yaksh/templates/yaksh/quizzes_user.html index 63f22a1..72fce30 100644 --- a/yaksh/templates/yaksh/quizzes_user.html +++ b/yaksh/templates/yaksh/quizzes_user.html @@ -6,7 +6,7 @@
-

{{ course.name }} by {{ course.creator }}

+

{{ course.name }} by {{ course.creator.get_full_name }}

{% if user in course.requests.all %} Request Pending -- cgit From 9484e8bebcd4363fa3aa1c2fc842de1bdcc25a10 Mon Sep 17 00:00:00 2001 From: ankitjavalkar Date: Thu, 23 Feb 2017 17:33:07 +0530 Subject: Allow revisiting all types of question to resubmit answer --- yaksh/templates/exam.html | 4 +++- yaksh/templates/yaksh/user_data.html | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'yaksh/templates') diff --git a/yaksh/templates/exam.html b/yaksh/templates/exam.html index b497cc0..02ff70a 100644 --- a/yaksh/templates/exam.html +++ b/yaksh/templates/exam.html @@ -52,7 +52,9 @@ {% endif %} {% endif %} {% if qid in paper.get_questions_answered %} -
  • {{ forloop.counter }}
  • +
  • {{ forloop.counter }}
  • {% endif %} {% else %} {% if qid.id == question.id %} diff --git a/yaksh/templates/yaksh/user_data.html b/yaksh/templates/yaksh/user_data.html index 9be28fb..16707b2 100644 --- a/yaksh/templates/yaksh/user_data.html +++ b/yaksh/templates/yaksh/user_data.html @@ -100,7 +100,7 @@ User IP address: {{ paper.user_ip }} {% else %}
    Student answer:
    {% for answer in answers %} - {% if not answer.skipped %} + {% if answer.answer.correct %}
    Correct answer @@ -116,7 +116,7 @@ User IP address: {{ paper.user_ip }}
    {{ answer.answer.answer.strip }}
    - {% endif %} + {% endfor %} {% endif %}
    -- cgit From d0d4c9ab3a409c68766bc044825bf22b0519f6a3 Mon Sep 17 00:00:00 2001 From: ankitjavalkar Date: Fri, 3 Mar 2017 16:35:18 +0530 Subject: Multiple changes: - Fix movement from one question to another in next_question - Fix random display of errors from MCQs - Add Notification display if question has been attempted - Fix test cases for changes made --- yaksh/templates/yaksh/question.html | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) (limited to 'yaksh/templates') diff --git a/yaksh/templates/yaksh/question.html b/yaksh/templates/yaksh/question.html index 1f6e67d..f94298e 100644 --- a/yaksh/templates/yaksh/question.html +++ b/yaksh/templates/yaksh/question.html @@ -135,13 +135,19 @@ function call_skip(url) {% block onload %} onload="updateTime();" {% endblock %} {% block main %} -

    -
    - {% csrf_token %} - -
    -
    -

    {{ question.summary }} +

    + {% if notification %} + + {% endif %} + + {% csrf_token %} + +
    +
    +

    + {{ question.summary }} {% if question.type == "mcq" %} (Single Correct Choice Questions) {% elif question.type == "mcc" %} @@ -151,8 +157,8 @@ function call_skip(url) {% elif question.type == "upload" %} (ASSIGNMENT UPLOAD) {% endif %} - - (Marks : {{ question.points }}) + + (Marks : {{ question.points }})

    {{ question.description|safe }} {% if files %} -- cgit From c118c7eff7abaeba18f7c375828d2e022d21cb9f Mon Sep 17 00:00:00 2001 From: ankitjavalkar Date: Fri, 3 Mar 2017 19:16:46 +0530 Subject: Modify UI for notifications in submitted code questions --- yaksh/templates/yaksh/question.html | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) (limited to 'yaksh/templates') diff --git a/yaksh/templates/yaksh/question.html b/yaksh/templates/yaksh/question.html index f94298e..5b5326d 100644 --- a/yaksh/templates/yaksh/question.html +++ b/yaksh/templates/yaksh/question.html @@ -137,9 +137,15 @@ function call_skip(url) {% block main %}

    {% if notification %} - + {% if question.type == "code" %} + + {% else %} + + {% endif %} {% endif %} {% csrf_token %} @@ -204,10 +210,15 @@ function call_skip(url) {% elif question.type == "upload" %}
       {% else %} -    + {% if notification == None %} +    + {% endif %} {% endif %} + {% if paper.question_paper.quiz.allow_skip and not paper.get_questions_unanswered|length_is:"1" %} + {% if notification == None %} + {% endif %}

    -- cgit From e231c13eade3afaa8f03a56fb69923b78c7a02d8 Mon Sep 17 00:00:00 2001 From: ankitjavalkar Date: Tue, 7 Mar 2017 11:43:14 +0530 Subject: Add numbering enrolled/requested/rejected students in course details display --- yaksh/templates/yaksh/course_detail.html | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'yaksh/templates') diff --git a/yaksh/templates/yaksh/course_detail.html b/yaksh/templates/yaksh/course_detail.html index dc85080..4b7efaf 100644 --- a/yaksh/templates/yaksh/course_detail.html +++ b/yaksh/templates/yaksh/course_detail.html @@ -31,6 +31,7 @@  Select all
    + @@ -43,6 +44,7 @@ {% for request in course.get_requests %} + @@ -71,6 +73,7 @@  Select all
    Full Name Email
    {{ forloop.counter }}. {{request.get_full_name}} {{request.email}} {{request.profile.roll_number}}
    + @@ -83,6 +86,7 @@ {% csrf_token %} + @@ -107,6 +111,7 @@  Select all
    Full Name Email
    {{ forloop.counter }}. {{ enrolled.get_full_name|title }} {{enrolled.email}} {{enrolled.profile.roll_number}}
    + @@ -119,6 +124,7 @@ {% csrf_token %} + -- cgit From f57cfacf41f8a1d72a56ea8c875f906e7db2a15e Mon Sep 17 00:00:00 2001 From: ankitjavalkar Date: Wed, 8 Mar 2017 10:34:12 +0530 Subject: Hide/Disable submit in correct code questions --- yaksh/templates/yaksh/question.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'yaksh/templates') diff --git a/yaksh/templates/yaksh/question.html b/yaksh/templates/yaksh/question.html index 5b5326d..9dd0de5 100644 --- a/yaksh/templates/yaksh/question.html +++ b/yaksh/templates/yaksh/question.html @@ -210,13 +210,13 @@ function call_skip(url) {% elif question.type == "upload" %}
       {% else %} - {% if notification == None %} + {% if question in paper.get_questions_unanswered %}    {% endif %} {% endif %} {% if paper.question_paper.quiz.allow_skip and not paper.get_questions_unanswered|length_is:"1" %} - {% if notification == None %} + {% if question in paper.get_questions_unanswered %} {% endif %} -- cgit
    Full Name Email
    {{ forloop.counter }}. {{rejected.get_full_name|title}} {{rejected.email}} {{rejected.profile.roll_number}}