summaryrefslogtreecommitdiff
path: root/yaksh/templates
diff options
context:
space:
mode:
authorPalaparthy Adityachandra2020-11-18 13:01:11 +0530
committerGitHub2020-11-18 13:01:11 +0530
commiteda9184c193f3a6779b834ace796efbb6dad8b7b (patch)
treeb5814267a4f549f13e3c8036c050d735ee52c931 /yaksh/templates
parent32c4ed63c4b2a4548b6ca529e44bd98653da5325 (diff)
parent5f92f4db6e108b338ea6509052f0990f1f94c6cb (diff)
downloadonline_test-eda9184c193f3a6779b834ace796efbb6dad8b7b.tar.gz
online_test-eda9184c193f3a6779b834ace796efbb6dad8b7b.tar.bz2
online_test-eda9184c193f3a6779b834ace796efbb6dad8b7b.zip
Merge pull request #769 from CruiseDevice/tinymce
Add TinyMCE, fix minor progressbar issues
Diffstat (limited to 'yaksh/templates')
-rw-r--r--yaksh/templates/yaksh/add_course.html2
-rw-r--r--yaksh/templates/yaksh/add_lesson.html3
-rw-r--r--yaksh/templates/yaksh/add_module.html4
-rw-r--r--yaksh/templates/yaksh/add_quiz.html1
-rw-r--r--yaksh/templates/yaksh/user_status.html75
5 files changed, 68 insertions, 17 deletions
diff --git a/yaksh/templates/yaksh/add_course.html b/yaksh/templates/yaksh/add_course.html
index 0072a95..07ac81b 100644
--- a/yaksh/templates/yaksh/add_course.html
+++ b/yaksh/templates/yaksh/add_course.html
@@ -6,8 +6,10 @@
{% endblock %}
{% block script %}
+<script type="text/javascript" src="{% static 'yaksh/js/tinymce/js/tinymce/tinymce.min.js' %}"></script>
<script type="text/javascript" src="{% static 'yaksh/js/jquery.datetimepicker.full.min.js' %}">
</script>
+<script type="text/javascript" src="{% static 'yaksh/js/add_course.js' %}"></script>
{% endblock %}
{% block title %} Add Course {% endblock %}
{% block pagetitle %} Add Course {% endblock %}
diff --git a/yaksh/templates/yaksh/add_lesson.html b/yaksh/templates/yaksh/add_lesson.html
index 4400032..04838a6 100644
--- a/yaksh/templates/yaksh/add_lesson.html
+++ b/yaksh/templates/yaksh/add_lesson.html
@@ -11,6 +11,7 @@
</script>
<script type="text/javascript" src="{% static 'yaksh/js/mathjax/MathJax.js' %}?config=TeX-MML-AM_CHTML">
</script>
+
{% endblock %}
{% block css %}
@@ -230,4 +231,4 @@
</div>
</div>
</div>
-{% endblock %} \ No newline at end of file
+{% endblock %}
diff --git a/yaksh/templates/yaksh/add_module.html b/yaksh/templates/yaksh/add_module.html
index aee50c1..9df194a 100644
--- a/yaksh/templates/yaksh/add_module.html
+++ b/yaksh/templates/yaksh/add_module.html
@@ -1,6 +1,8 @@
{% extends "manage.html" %}
{% load static %}
-{% block title %}Create/Edit Learning Module{% endblock %}
+{% block title %}
+ Create/Edit Learning Module
+{% endblock %}
{% block script %}
<script type="text/javascript" src="{% static 'yaksh/js/jquery-3.3.1.min.js' %}">
diff --git a/yaksh/templates/yaksh/add_quiz.html b/yaksh/templates/yaksh/add_quiz.html
index 9b80e0d..7918858 100644
--- a/yaksh/templates/yaksh/add_quiz.html
+++ b/yaksh/templates/yaksh/add_quiz.html
@@ -12,6 +12,7 @@
{% block script %}
<script src="{% static 'yaksh/js/jquery-3.3.1.min.js' %}"></script>
+<script type="text/javascript" src="{% static 'yaksh/js/tinymce/js/tinymce/tinymce.min.js' %}"></script>
<script src="{% static 'yaksh/js/add_quiz.js' %}"></script>
<script src="{% static 'yaksh/js/jquery.datetimepicker.full.min.js' %}"></script>
<script type="text/javascript">
diff --git a/yaksh/templates/yaksh/user_status.html b/yaksh/templates/yaksh/user_status.html
index 5f006c9..5a7cb3d 100644
--- a/yaksh/templates/yaksh/user_status.html
+++ b/yaksh/templates/yaksh/user_status.html
@@ -3,18 +3,39 @@
<br>
<strong>Overall Course Progress:</strong>
<div class="progress">
- {% if course_percentage <= 50 %}
- <div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="40"
- aria-valuemin="0" aria-valuemax="100" style="width:{{course_percentage}}%">
+ {% if course_percentage == 0 %}
+ <b style="color: black;">{{course_percentage}}% Completed</b>
+ {% elif course_percentage <= 50 %}
+ <div
+ class="progress-bar progress-bar-danger"
+ role="progressbar"
+ aria-valuenow="40"
+ aria-valuemin="0"
+ aria-valuemax="100"
+ style="width:{{course_percentage}}%">
+ <b style="color: black;">{{course_percentage}}% Completed</b>
+ </div>
{% elif course_percentage <= 75 %}
- <div class="progress-bar progress-bar-warning" role="progressbar" aria-valuenow="40"
- aria-valuemin="0" aria-valuemax="100" style="width:{{course_percentage}}%">
+ <div
+ class="progress-bar progress-bar-warning"
+ role="progressbar"
+ aria-valuenow="40"
+ aria-valuemin="0"
+ aria-valuemax="100"
+ style="width:{{course_percentage}}%">
+ <b style="color: black;">{{course_percentage}}% Completed</b>
+ </div>
{% else %}
- <div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="40"
- aria-valuemin="0" aria-valuemax="100" style="width:{{course_percentage}}%">
+ <div
+ class="progress-bar progress-bar-success"
+ role="progressbar"
+ aria-valuenow="40"
+ aria-valuemin="0"
+ aria-valuemax="100"
+ style="width:{{course_percentage}}%">
+ <b style="color: black;">{{course_percentage}}% Completed</b>
+ </div>
{% endif %}
- <b style="color: black;">{{course_percentage}}% Completed</b>
- </div>
</div>
<br>
<strong>Per Module Progress:</strong>
@@ -25,15 +46,39 @@
<td width="30%">{{ module.name }}</td>
<td>
<div class="progress">
- {% if percent <= 50 %}
- <div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="40" aria-valuemin="0" aria-valuemax="100" style="width:{{percent}}%">
+ {% if percent == 0 %}
+ <b style="color: black;">{{percent}}% Completed</b>
+ {% elif percent <= 50 %}
+ <div
+ class="progress-bar progress-bar-danger"
+ role="progressbar"
+ aria-valuenow="40"
+ aria-valuemin="0"
+ aria-valuemax="100"
+ style="width:{{percent}}%">
+ <b style="color: black;">{{percent}}% Completed</b>
+ </div>
{% elif percent <= 75 %}
- <div class="progress-bar progress-bar-warning" role="progressbar" aria-valuenow="40" aria-valuemin="0" aria-valuemax="100" style="width:{{percent}}%">
+ <div
+ class="progress-bar progress-bar-warning"
+ role="progressbar"
+ aria-valuenow="40"
+ aria-valuemin="0"
+ aria-valuemax="100"
+ style="width:{{percent}}%">
+ <b style="color: black;">{{percent}}% Completed</b>
+ </div>
{% else %}
- <div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="40" aria-valuemin="0" aria-valuemax="100" style="width:{{percent}}%">
+ <div
+ class="progress-bar progress-bar-success"
+ role="progressbar"
+ aria-valuenow="40"
+ aria-valuemin="0"
+ aria-valuemax="100"
+ style="width:{{percent}}%">
+ <b style="color: black;">{{percent}}% Completed</b>
+ </div>
{% endif %}
- <b style="color: black;">{{percent}}% Completed</b>
- </div>
</div>
</td>
</tr>