summaryrefslogtreecommitdiff
path: root/yaksh/templates
diff options
context:
space:
mode:
authormanojvaghela2020-03-18 16:36:52 +0530
committermanojvaghela2020-03-18 16:45:42 +0530
commit8835afbc95c1a398cf62da7880596e7a302ae148 (patch)
tree6eb2193f420eb5da143d3569026fc9ff1387f219 /yaksh/templates
parent15ce39acb70056bdfb9820efa634d704a963cb84 (diff)
downloadonline_test-8835afbc95c1a398cf62da7880596e7a302ae148.tar.gz
online_test-8835afbc95c1a398cf62da7880596e7a302ae148.tar.bz2
online_test-8835afbc95c1a398cf62da7880596e7a302ae148.zip
Search bar added
Diffstat (limited to 'yaksh/templates')
-rw-r--r--yaksh/templates/yaksh/courses.html28
-rw-r--r--yaksh/templates/yaksh/lessons.html30
-rw-r--r--yaksh/templates/yaksh/modules.html30
-rw-r--r--yaksh/templates/yaksh/quizzes.html30
4 files changed, 111 insertions, 7 deletions
diff --git a/yaksh/templates/yaksh/courses.html b/yaksh/templates/yaksh/courses.html
index 0eb9a38..cc4c69f 100644
--- a/yaksh/templates/yaksh/courses.html
+++ b/yaksh/templates/yaksh/courses.html
@@ -61,6 +61,32 @@
</div>
{% else %}
<hr>
+ <form name=frm action="" method="post">
+ {% csrf_token %}
+ <div class="card">
+ <div class="card-header">
+ <h3>Search/Filter Courses</h3>
+ </div>
+ <div class="card-body">
+ <div class="row">
+ <div class="col-md-6">
+ {{ form.search_tags }}
+ </div>
+ <div class="col-md-3">
+ {{ form.search_status }}
+ </div>
+ </div>
+ <br>
+ <button class="btn btn-success" type="submit">Search</button>
+ <button class="btn btn-primary" href="{% url 'yaksh:courses' %}">
+ Clear Search
+ </button>
+ </div>
+ </div>
+ </form>
+ <hr>
+ <center><h4 class="badge badge-success">{{ courses_found }} Course(s) Available</h4></center>
+
{% if messages %}
{% for message in messages %}
<div class="alert alert-dismissible alert-{{ message.tags }}">
@@ -198,7 +224,7 @@
<br>
{% for course in courses %}
<div class="card">
- <div class="card-header">
+ <div class="card-header bg-secondary">
<div class="row">
<div class="col-md-5">
{{course.name}}
diff --git a/yaksh/templates/yaksh/lessons.html b/yaksh/templates/yaksh/lessons.html
index 0146a6b..c806d26 100644
--- a/yaksh/templates/yaksh/lessons.html
+++ b/yaksh/templates/yaksh/lessons.html
@@ -45,10 +45,36 @@
{% if not lessons %}
<br><br>
<div class="alert alert-info">
- <center><h3> No new Lessons added</h3></center>
+ <center><h3> No lessons found</h3></center>
</div>
{% else %}
- <center><h3> Lessons </h3></center>
+ <hr>
+ <form name=frm action="" method="post">
+ {% csrf_token %}
+ <div class="card">
+ <div class="card-header">
+ <h3> Search/Filter Lessons </h3>
+ </div>
+ <div class="card-body">
+ <div class="row">
+ <div class="col-md-6">
+ {{ form.search_tags }}
+ </div>
+ <div class="col-md-3">
+ {{ form.search_status }}
+ </div>
+ </div>
+ <br>
+ <button class="btn btn-success" type="submit">Search</button>
+ <button class="btn btn-primary" href="{% url 'yaksh:show_all_lessons' %}">
+ Clear Search
+ </button>
+ </div>
+ </div>
+ </form>
+ <hr>
+ <center><h4 class="badge badge-success">{{ lessons_found }} Lesson(s) Available</h4></center>
+
<table id="course-details" class="table table-bordered table-responsive-sm">
<tr>
<th>Sr.No</th>
diff --git a/yaksh/templates/yaksh/modules.html b/yaksh/templates/yaksh/modules.html
index 4fafbf1..610960c 100644
--- a/yaksh/templates/yaksh/modules.html
+++ b/yaksh/templates/yaksh/modules.html
@@ -46,10 +46,36 @@
{% if not modules %}
<br><br>
<div class="alert alert-info">
- <center><h3> No new learning modules added</h3></center>
+ <center><h3> No learning modules found</h3></center>
</div>
{% else %}
- <center><h3> Learning Modules </h3></center>
+ <hr>
+ <form name=frm action="" method="post">
+ {% csrf_token %}
+ <div class="card">
+ <div class="card-header">
+ <h3> Search/Filter Learning Modules </h3>
+ </div>
+ <div class="card-body">
+ <div class="row">
+ <div class="col-md-6">
+ {{ form.search_tags }}
+ </div>
+ <div class="col-md-3">
+ {{ form.search_status }}
+ </div>
+ </div>
+ <br>
+ <button class="btn btn-success" type="submit">Search</button>
+ <button class="btn btn-primary" href="{% url 'yaksh:show_all_modules' %}">
+ Clear Search
+ </button>
+ </div>
+ </div>
+ </form>
+ <hr>
+ <center><h4 class="badge badge-success">{{ modules_found }} Learning Module(s) Available</h4></center>
+
<table class="table table-bordered table-responsive-sm">
<tr>
<th>Sr.No</th>
diff --git a/yaksh/templates/yaksh/quizzes.html b/yaksh/templates/yaksh/quizzes.html
index 7e53d31..7532940 100644
--- a/yaksh/templates/yaksh/quizzes.html
+++ b/yaksh/templates/yaksh/quizzes.html
@@ -49,10 +49,36 @@
{% if not quizzes %}
<br><br>
<div class="alert alert-info">
- <center><h3> No new Quiz added</h3></center>
+ <center><h3> No quizzes found</h3></center>
</div>
{% else %}
- <center><h3> Quizzes </h3></center>
+ <hr>
+ <form name=frm action="" method="post">
+ {% csrf_token %}
+ <div class="card">
+ <div class="card-header">
+ <h3> Search/Filter Quizzes </h3>
+ </div>
+ <div class="card-body">
+ <div class="row">
+ <div class="col-md-6">
+ {{ form.search_tags }}
+ </div>
+ <div class="col-md-3">
+ {{ form.search_status }}
+ </div>
+ </div>
+ <br>
+ <button class="btn btn-success" type="submit">Search</button>
+ <button class="btn btn-primary" href="{% url 'yaksh:show_all_quizzes' %}">
+ Clear Search
+ </button>
+ </div>
+ </div>
+ </form>
+ <hr>
+ <center><h4 class="badge badge-success">{{ quizzes_found }} Quiz(zes) Available</h4></center>
+
<table class="table table-bordered table-responsive-sm">
<tr>
<th>Sr.No</th>