summaryrefslogtreecommitdiff
path: root/yaksh/templates
diff options
context:
space:
mode:
authorankitjavalkar2017-04-05 18:50:00 +0530
committerankitjavalkar2017-04-27 17:42:25 +0530
commit290b71a311ad245b996f38bc7da4080a07493958 (patch)
tree3c1a35f9de2e8c0bd9d7662656b8112a840fd6ca /yaksh/templates
parent9991300f25ad9d83e0724342c38c7e0f20cee895 (diff)
downloadonline_test-290b71a311ad245b996f38bc7da4080a07493958.tar.gz
online_test-290b71a311ad245b996f38bc7da4080a07493958.tar.bz2
online_test-290b71a311ad245b996f38bc7da4080a07493958.zip
Add course_code field allows access only to users with relevant course code string
Diffstat (limited to 'yaksh/templates')
-rw-r--r--yaksh/templates/yaksh/quizzes_user.html19
1 files changed, 17 insertions, 2 deletions
diff --git a/yaksh/templates/yaksh/quizzes_user.html b/yaksh/templates/yaksh/quizzes_user.html
index ce74844..c34138f 100644
--- a/yaksh/templates/yaksh/quizzes_user.html
+++ b/yaksh/templates/yaksh/quizzes_user.html
@@ -1,6 +1,21 @@
{% extends "user.html" %}
{% block pagetitle %} {{ title }} {% endblock %}
{% block main %}
+<div class="row well">
+ <form action="{{ URL_ROOT }}/exam/quizzes/" method="post" id="custom-search-form" class="form-search form-horizontal pull-right">
+ {% csrf_token %}
+ <div class="col-md-12">
+ <div class="input-group">
+ <span class="input-group-addon" id="basic-addon1">Search Course</span>
+ <input type="text" name="course_code" class="form-control" placeholder="Course Code">
+ <span class="input-group-btn">
+ <button class="btn btn-default" type="submit">Search</button>
+ <button class="btn btn-default" type="button" name="button" onClick='location.replace("{{URL_ROOT}}/exam/quizzes/");'>Cancel</button>
+ </span>
+ </div>
+ </div>
+ </form>
+</div>
{% for course in courses %}
<div class="row well">
<div class="col-md-12">
@@ -41,7 +56,7 @@
</td>
{% else %}
<td>
- {{ quiz.description }} <span class="label label-danger">INACTIVE</span><br>
+ {{ quiz.description }} <span class="label label-danger">Inactive</span><br>
</td>
{% endif %}
<td>
@@ -83,7 +98,7 @@
{% endif %}
</div>
</div><!--/row-->
- </br>
+</br>
{% endfor %}
{% endblock %}