summaryrefslogtreecommitdiff
path: root/yaksh/templates
diff options
context:
space:
mode:
authorPalaparthy Adityachandra2021-02-11 14:26:19 +0530
committerGitHub2021-02-11 14:26:19 +0530
commitb2bf7b9fef33d59cd1e55776a51577d66a252322 (patch)
tree0f95bec03075118e5310aba89c2b2ffe7d39b7c9 /yaksh/templates
parent546458cd40d847015363f7c085d7f72733036498 (diff)
parent51039188a191a46afd4e3c499e2a035e3bc1ceba (diff)
downloadonline_test-b2bf7b9fef33d59cd1e55776a51577d66a252322.tar.gz
online_test-b2bf7b9fef33d59cd1e55776a51577d66a252322.tar.bz2
online_test-b2bf7b9fef33d59cd1e55776a51577d66a252322.zip
Merge pull request #818 from adityacp/hot_fix_3
Fix monitor to get all the attempts properly
Diffstat (limited to 'yaksh/templates')
-rw-r--r--yaksh/templates/yaksh/micromanaged.html2
-rw-r--r--yaksh/templates/yaksh/monitor.html16
2 files changed, 17 insertions, 1 deletions
diff --git a/yaksh/templates/yaksh/micromanaged.html b/yaksh/templates/yaksh/micromanaged.html
index 5d7e58c..5339d71 100644
--- a/yaksh/templates/yaksh/micromanaged.html
+++ b/yaksh/templates/yaksh/micromanaged.html
@@ -12,7 +12,7 @@
Start Special Attempt
</a>
{% else %}
- <span class="badge badge-secondary">Exhausted</span>
+ <span class="badge badge-warning badge-pill">Exhausted</span>
{% endif %}
</div>
{% endif %}
diff --git a/yaksh/templates/yaksh/monitor.html b/yaksh/templates/yaksh/monitor.html
index 9b10b58..c7755e7 100644
--- a/yaksh/templates/yaksh/monitor.html
+++ b/yaksh/templates/yaksh/monitor.html
@@ -124,6 +124,22 @@ $(document).ready(function()
</div>
</div>
<br>
+ <div class="row">
+ <div class="col-md-3">
+ <b>Select Attempt number:</b>
+ </div>
+ <div class="col-md-2">
+ <select id="attempt" onchange="window.location.href=this.value" class="custom-select">
+ <option selected="">Select</option>
+ {% for attempt in attempt_numbers %}
+ <option value="{% url 'yaksh:monitor' quiz.id course.id attempt %}">
+ {{attempt}}
+ </option>
+ {% endfor %}
+ </select>
+ </div>
+ </div>
+ <br>
<div class="card">
{% if total_papers > 10 %}
<div class="table-responsive" style="height: 800px">