summaryrefslogtreecommitdiff
path: root/yaksh/templates
diff options
context:
space:
mode:
authorprathamesh2017-10-27 03:43:19 +0530
committerprathamesh2017-10-27 03:43:19 +0530
commitb7864df91a82d6d56d4eb76d39aae2954302669a (patch)
treebc521255bf60e11b00401323225598b0f2c71df9 /yaksh/templates
parentee1bdbdaaf9a6446506719dfb074cd598d4799e4 (diff)
downloadonline_test-b7864df91a82d6d56d4eb76d39aae2954302669a.tar.gz
online_test-b7864df91a82d6d56d4eb76d39aae2954302669a.tar.bz2
online_test-b7864df91a82d6d56d4eb76d39aae2954302669a.zip
Excluded teachers and creator form the enrolled users list
Changed the HTML select id attribute to name, necessary to track in POST request
Diffstat (limited to 'yaksh/templates')
-rw-r--r--yaksh/templates/yaksh/monitor.html13
1 files changed, 8 insertions, 5 deletions
diff --git a/yaksh/templates/yaksh/monitor.html b/yaksh/templates/yaksh/monitor.html
index 2e7097f..8df2e7d 100644
--- a/yaksh/templates/yaksh/monitor.html
+++ b/yaksh/templates/yaksh/monitor.html
@@ -140,11 +140,14 @@ $(document).ready(function()
</div>
{% endfor %}
<b>Select Attempt Number: Default latest attempt</b>
- <select class="form-control" id = "attempt_number">
- <option selected="">Latest</option>
- {%for attempt_number in attempt_numbers %}
- <option value = "{{ attempt_number }}"> {{ attempt_number }}</option>
- {% endfor %}
+ <select class="form-control" name = "attempt_number">
+ {%for attempt_number in attempt_numbers %}
+ {% if forloop.last %}
+ <option value="{{ attempt_number }}" selected>{{ attempt_number }} (Latest)</option>
+ {% else %}
+ <option value = "{{ attempt_number }}"> {{ attempt_number }}</option>
+ {% endif %}
+ {% endfor %}
</select>
</div>
<div class="modal-footer">