summaryrefslogtreecommitdiff
path: root/yaksh/templates
diff options
context:
space:
mode:
authoradityacp2020-03-19 19:45:17 +0530
committeradityacp2020-03-19 19:45:17 +0530
commit36f43151ab26744cf9edc05d0df3f0fb901fcaaa (patch)
treec75b5d2730a74191f2c7e51a881e9404f5627c1d /yaksh/templates
parent9933ec7861faf8abb38224e4b2f5f75fcf9e857a (diff)
parent1dbaec7dd8098701e11713faa0c9040a315e5fac (diff)
downloadonline_test-36f43151ab26744cf9edc05d0df3f0fb901fcaaa.tar.gz
online_test-36f43151ab26744cf9edc05d0df3f0fb901fcaaa.tar.bz2
online_test-36f43151ab26744cf9edc05d0df3f0fb901fcaaa.zip
Resolve conflicts in the courses view
Diffstat (limited to 'yaksh/templates')
-rw-r--r--yaksh/templates/yaksh/course_progress.html13
-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
5 files changed, 122 insertions, 9 deletions
diff --git a/yaksh/templates/yaksh/course_progress.html b/yaksh/templates/yaksh/course_progress.html
index a833c92..826f84b 100644
--- a/yaksh/templates/yaksh/course_progress.html
+++ b/yaksh/templates/yaksh/course_progress.html
@@ -4,10 +4,19 @@
{% if student_details %}
<div class="text-center">
<h3>Course Progress</h3>
- <div class="col">
- Number Of Students: {{ students_no }}
+ <br>
+ <div class="row">
+ <div class="col">
+ Number Of Students: {{ students_no }}
+ </div>
+ <div class="col">
+ <a href="{% url 'yaksh:download_course_progress' course.id %}" class="btn btn-info">
+ <i class="fa fa-download"></i>&nbsp;Download Data
+ </a>
+ </div>
</div>
</div>
+ <br>
{% include "yaksh/paginator.html" %}
<table class="tablesorter table table-bordered table-responsive-sm" id="course_table" data-sortlist="[0,0]">
<thead>
diff --git a/yaksh/templates/yaksh/courses.html b/yaksh/templates/yaksh/courses.html
index 33d44ac..084d0f6 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>
+ <a class="btn btn-primary" href="{% url 'yaksh:courses' %}">
+ Clear Search
+ </a>
+ </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 4b5d18e..e5af061 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>
+ <a class="btn btn-primary" href="{% url 'yaksh:show_all_lessons' %}">
+ Clear Search
+ </a>
+ </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 e835cff..8da207c 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>
+ <a class="btn btn-primary" href="{% url 'yaksh:show_all_modules' %}">
+ Clear Search
+ </a>
+ </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 9b40647..58dec99 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>
+ <a class="btn btn-primary" href="{% url 'yaksh:show_all_quizzes' %}">
+ Clear Search
+ </a>
+ </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>