summaryrefslogtreecommitdiff
path: root/yaksh
diff options
context:
space:
mode:
authorCruiseDevice2019-02-21 17:09:05 +0530
committerCruiseDevice2019-02-28 16:02:42 +0530
commitbc275976bcba4624de66a2fe69d147a32d50a37d (patch)
tree03e055b70ad5be500d47e5f2766e68d67d6c1fb3 /yaksh
parente55ef58c5c131afd836ac32ed6a1034aa668fccf (diff)
downloadonline_test-bc275976bcba4624de66a2fe69d147a32d50a37d.tar.gz
online_test-bc275976bcba4624de66a2fe69d147a32d50a37d.tar.bz2
online_test-bc275976bcba4624de66a2fe69d147a32d50a37d.zip
Add Download Course button in Course Module template
Diffstat (limited to 'yaksh')
-rw-r--r--yaksh/static/yaksh/css/yakshcustom.css4
-rw-r--r--yaksh/templates/yaksh/course_modules.html15
2 files changed, 15 insertions, 4 deletions
diff --git a/yaksh/static/yaksh/css/yakshcustom.css b/yaksh/static/yaksh/css/yakshcustom.css
index 1fbb50d..1a2c45c 100644
--- a/yaksh/static/yaksh/css/yakshcustom.css
+++ b/yaksh/static/yaksh/css/yakshcustom.css
@@ -228,3 +228,7 @@ html {
overflow-y: auto;
-ms-overflow-style: -ms-autohiding-scrollbar;
}
+
+#card{
+ flex-wrap: wrap;
+} \ No newline at end of file
diff --git a/yaksh/templates/yaksh/course_modules.html b/yaksh/templates/yaksh/course_modules.html
index d5bbfd3..0c75b91 100644
--- a/yaksh/templates/yaksh/course_modules.html
+++ b/yaksh/templates/yaksh/course_modules.html
@@ -14,10 +14,17 @@
{% block main %}
<div class="container">
-<div class="row justify-content-md-center yakshwell ">
- <div class="col-md-10 bg-light card">
- <div class="row align-items-center my-3">
- <div class="col h4 text-center"> {{ course.name }} </div>
+<div class="row justify-content-md-center yakshwell">
+ <div class="col-md-10 bg-light card" id="card">
+ <div class="row align-items-center">
+ <div class="col h4"> {{ course.name }} </div>
+ <div class = "col">
+ {% if course.has_lessons %}
+ <a href="{{URL_ROOT}}/exam/download_course/{{course.id}}" data-toggle="tooltip" title="Download course content" class="btn btn-primary pull-right">
+ Download Course
+ </a>
+ {% endif %}
+ </div>
</div>
</div>
</div>