From 08a4c0271535bfb24a82a07d6e881cd2b9bab470 Mon Sep 17 00:00:00 2001 From: adityacp Date: Mon, 8 Jan 2018 17:43:56 +0530 Subject: Change in css and templates - Allow horizontal scroll for sidebar in dashboard.css - Change templates to display all modules - Change error messages in course template --- yaksh/templates/yaksh/complete.html | 4 +- yaksh/templates/yaksh/courses.html | 14 ++--- yaksh/templates/yaksh/question.html | 67 +++++++++++---------- yaksh/templates/yaksh/show_video.html | 109 ++++++++++++++++++++++++---------- 4 files changed, 123 insertions(+), 71 deletions(-) (limited to 'yaksh/templates') diff --git a/yaksh/templates/yaksh/complete.html b/yaksh/templates/yaksh/complete.html index d0b7e4d..e4317fe 100644 --- a/yaksh/templates/yaksh/complete.html +++ b/yaksh/templates/yaksh/complete.html @@ -39,12 +39,12 @@ width="80" alt="YAKSH">{% endblock %} Home {% if module_id and not user == "moderator" %} {% if first_unit %} - Next Unit + Next {% else %} - Next Unit + Next diff --git a/yaksh/templates/yaksh/courses.html b/yaksh/templates/yaksh/courses.html index b6b9f7e..a1fd48a 100644 --- a/yaksh/templates/yaksh/courses.html +++ b/yaksh/templates/yaksh/courses.html @@ -75,7 +75,7 @@ Closed {% endif %}

-
Teacher(s) Added to {{ course }}
+
Teacher(s) added to {{ course }}

{% if course.get_teachers %} @@ -93,7 +93,7 @@ {% else %} -
No Teacher(s) Added
+
No Teacher(s) added
{% endif %}


@@ -209,7 +209,7 @@
Course Creator

{{course.creator.get_full_name.title}}


-
Teacher(s) Added to {{ course }}
+
Teacher(s) added to {{ course }}

{% if course.get_teachers %} @@ -228,7 +228,7 @@ {% else %} -
No Teacher(s) Added
+
No Teacher(s) added
{% endif %}


@@ -326,7 +326,7 @@ Add New Quiz Add New Exercise {% if not quizzes %} -

No new Quiz Added

+

No new Quiz added



{% else %}

Quizzes

@@ -380,7 +380,7 @@ {% if type == "lesson" %} Add new Lesson {% if not lessons %} -

No new Lessons Added

+

No new Lessons added



{% else %}

Lessons

@@ -414,7 +414,7 @@ Add new Module {% if not learning_modules %} -

No new learning modules Added

+

No new learning modules added



{% else %}

Learning Modules

diff --git a/yaksh/templates/yaksh/question.html b/yaksh/templates/yaksh/question.html index b7251ad..96c8e6e 100644 --- a/yaksh/templates/yaksh/question.html +++ b/yaksh/templates/yaksh/question.html @@ -110,37 +110,44 @@ question_type = "{{ question.type }}" {% block onload %} onload="updateTime();" {% endblock %} {% block learning_units %} -

Lessons/Quizzes

- + {% endfor %} {% endblock %} {% block main %} diff --git a/yaksh/templates/yaksh/show_video.html b/yaksh/templates/yaksh/show_video.html index 0490697..f4b59ac 100644 --- a/yaksh/templates/yaksh/show_video.html +++ b/yaksh/templates/yaksh/show_video.html @@ -1,42 +1,54 @@ {% extends "user.html" %} {% load custom_filters %} -{% block title %} {{ learning_module.name|title }} {% endblock %} +{% block title %} {{ learning_module.name }} {% endblock %} -{% block pagetitle %} {{ learning_module.name|title }} {% endblock %} +{% block pagetitle %} {{ learning_module.name }} +{% if state == "lesson" %} + : {{lesson.name}} +{% endif %} +{% endblock %} {% block main %} {% if msg %}
@@ -49,16 +61,49 @@
{{learning_module.html_data|safe}} + {% if learning_module.html_data%} +
+ {% endif %} +

Following are the units in this modules

+ + + + + + {% for unit in learning_module.get_learning_units %} + +
    +
+ + + + {% endfor %} +
Unit NameUnit Type
+ {% if unit.type == "quiz" %} + {{unit.quiz.description}} + {% else %} + {{unit.lesson.name}} + {% endif %} + + {% if unit.type == "quiz" %} + {% if unit.quiz.is_exercise %} + Exercise + {% else %} + Quiz + {% endif %} + {% else %} + Lesson + {% endif %} +
- First Unit + Start
{% else %} -

{{lesson.name}}

{{lesson.html_data|safe}} @@ -80,7 +125,7 @@
{% endif %}
- Next Unit + Next -- cgit