From 44b64f9ad0f0618d15ee99026a33df14937d3ef4 Mon Sep 17 00:00:00 2001
From: prathamesh
Date: Tue, 8 Sep 2020 02:49:24 +0530
Subject: Provide additional attempt to a selected student or extend time.
---
yaksh/templates/yaksh/micromanaged.html | 22 ++++++++++++++++++++++
yaksh/templates/yaksh/micromonitor.html | 9 +++++++++
yaksh/templates/yaksh/monitor.html | 31 ++++++++++++++++++++++++++++---
yaksh/templates/yaksh/quit.html | 4 ++++
yaksh/templates/yaksh/quizzes_user.html | 2 ++
5 files changed, 65 insertions(+), 3 deletions(-)
create mode 100644 yaksh/templates/yaksh/micromanaged.html
create mode 100644 yaksh/templates/yaksh/micromonitor.html
(limited to 'yaksh/templates')
diff --git a/yaksh/templates/yaksh/micromanaged.html b/yaksh/templates/yaksh/micromanaged.html
new file mode 100644
index 0000000..336feec
--- /dev/null
+++ b/yaksh/templates/yaksh/micromanaged.html
@@ -0,0 +1,22 @@
+{% if micromanagers %}
+
+
+ {% for micromanager in micromanagers %}
+ {% if micromanager.attempts_permitted > 0 %}
+
+
You have been given a special attempt to the {{ micromanager.quiz.description }} by the course creator
+
+
+ {% endif %}
+ {% endfor %}
+{% endif %}
+
+
diff --git a/yaksh/templates/yaksh/micromonitor.html b/yaksh/templates/yaksh/micromonitor.html
new file mode 100644
index 0000000..cc059aa
--- /dev/null
+++ b/yaksh/templates/yaksh/micromonitor.html
@@ -0,0 +1,9 @@
+{% if micromanager %}
+ {% if micromanager.can_student_attempt %}
+ Revoke
+ {% else %}
+ Allow
+ {% endif %}
+{% else %}
+ Allow
+{% endif %}
diff --git a/yaksh/templates/yaksh/monitor.html b/yaksh/templates/yaksh/monitor.html
index ef7b033..183ba99 100644
--- a/yaksh/templates/yaksh/monitor.html
+++ b/yaksh/templates/yaksh/monitor.html
@@ -74,6 +74,18 @@ $(document).ready(function()
+
+ {% if messages %}
+ {% for message in messages %}
+
+
+ {{ message }}
+
+ {% endfor %}
+ {% endif %}
+
@@ -102,8 +114,9 @@ $(document).ready(function()
Institute |
Marks |
Attempts |
-
Time |
+
Time Left |
Status |
+
Special Attempt |
@@ -118,7 +131,20 @@ $(document).ready(function()
{{ paper.marks_obtained }} |
{{ paper.answers.count }} |
{{ paper.time_left }} |
- {{ paper.status }} |
+ {% if paper.is_attempt_inprogress %}
+
+ {% else %}
+ Completed
+ {% endif %}
+ |
+ {% specail_attempt_monitor paper.user.id course.id quiz.id %} |
{% endfor %}
@@ -126,7 +152,6 @@ $(document).ready(function()
-
+ {% show_special_attempt user.id course.data.id %}