From de0f0be2f5963da2f03616c192dfe339c021eff6 Mon Sep 17 00:00:00 2001
From: adityacp
Date: Tue, 2 Jan 2018 15:51:36 +0530
Subject: Changes in views, models, templates and js
- Rename learning_type to type in Lesson model
- Change error message in views and change redirection
- Change templates to rename learning_type to type for unit
- Add new dialog for embedding Video URL
---
yaksh/templates/manage.html | 2 +-
yaksh/templates/user.html | 4 +-
yaksh/templates/yaksh/add_lesson.html | 4 ++
yaksh/templates/yaksh/add_module.html | 37 +++++++++++-----
yaksh/templates/yaksh/courses.html | 56 +++++++++++++++++-------
yaksh/templates/yaksh/design_course_session.html | 33 ++++++++++----
6 files changed, 97 insertions(+), 39 deletions(-)
(limited to 'yaksh/templates')
diff --git a/yaksh/templates/manage.html b/yaksh/templates/manage.html
index 9aa0a54..17ce23e 100644
--- a/yaksh/templates/manage.html
+++ b/yaksh/templates/manage.html
@@ -39,7 +39,7 @@
-
+
diff --git a/yaksh/templates/yaksh/add_lesson.html b/yaksh/templates/yaksh/add_lesson.html
index 01233fa..d9bc1e7 100644
--- a/yaksh/templates/yaksh/add_lesson.html
+++ b/yaksh/templates/yaksh/add_lesson.html
@@ -48,7 +48,11 @@
{% endif %}
+ {% if course_id %}
+ {% else %}
+
+ {% endif %}
diff --git a/yaksh/templates/yaksh/add_module.html b/yaksh/templates/yaksh/add_module.html
index 9ce854e..4efccf7 100644
--- a/yaksh/templates/yaksh/add_module.html
+++ b/yaksh/templates/yaksh/add_module.html
@@ -7,12 +7,12 @@
-
+
{% endblock %}
{% block css %}
-
+
{% endblock %}
{% block content %}
@@ -86,7 +86,7 @@
-
@@ -99,15 +99,24 @@
- Select |
+ Select |
Quiz/Lesson |
- Order |
- Check Prerequisite
+ | Order |
+ Check Prerequisite
+
What's This
|
+
+
+ |
+ |
+ |
+ Currently |
+ Change |
+
{% for unit in learning_units %}
@@ -125,8 +134,14 @@
|
{% endif %}
-
- {{unit.check_prerequisite}}
+ {% if unit.check_prerequisite %}
+ Yes
+ {% else %}
+ No
+ {% endif %}
+ |
+
+
|
@@ -136,9 +151,9 @@
- Remove from Module
- Change Order
- Change Prerequisite
+ Remove from Module
+ Change Order
+ Change Prerequisite
diff --git a/yaksh/templates/yaksh/courses.html b/yaksh/templates/yaksh/courses.html
index 3d26d14..0efa72a 100644
--- a/yaksh/templates/yaksh/courses.html
+++ b/yaksh/templates/yaksh/courses.html
@@ -29,7 +29,7 @@
-
+
+{% if type == "courses" %}
{% if not courses %}
No new Courses created
@@ -60,7 +61,7 @@
Courses |
- Lessons/Quizzes |
+ Modules |
{% for course in courses %}
@@ -97,6 +98,11 @@
+ -
+ Design Course
+
+
+
-
Edit Course
@@ -110,11 +116,6 @@
Add Teacher
- -
- Design Course Session
-
-
-
-
{% if course.active %}Deactivate Course {% else %} Activate Course {% endif %}
@@ -131,8 +132,8 @@
{% if course.get_learning_modules %}
- Learning Modules |
- Design Learning module |
+ Module |
+ Module Design |
Lessons/Quizzes |
{% for module in course.get_learning_modules %}
@@ -186,7 +187,7 @@
Courses |
- Lessons/Quizzes |
+ Modules |
{% for course in allotted_courses %}
@@ -227,6 +228,11 @@
+ -
+ Design Course
+
+
+
-
Edit Course
@@ -257,8 +263,9 @@
{% if course.get_learning_modules %}
- Learning Modules |
- Design Learning module |
+ Module |
+ Module Design |
+ Lessons/Quizzes |
{% for module in course.get_learning_modules %}
@@ -271,6 +278,21 @@
Add Quizzes/Lessons for {{module.name}}
+
+ {% for unit in module.get_learning_units %}
+
+ {% endfor %}
+ |
{% endfor %}
{% else %}
@@ -284,7 +306,8 @@
{% endif %}
-
+{% endif %}
+
@@ -308,7 +331,8 @@
{{forloop.counter}} |
- {{ quiz.description }}
+ {{ quiz.description }}
+
{% if quiz.active %}
Active
{% else %}
diff --git a/yaksh/templates/yaksh/design_course_session.html b/yaksh/templates/yaksh/design_course_session.html
index 41c235c..1aabd6c 100644
--- a/yaksh/templates/yaksh/design_course_session.html
+++ b/yaksh/templates/yaksh/design_course_session.html
@@ -58,26 +58,34 @@
- Add to course
+ Add to course
- Choosen Lessons and quizzes: (Change Order)
+ Choosen Lessons and quizzes:
- Select |
+ Select |
Learning Module |
- Order |
- Check Prerequisite
+ | Order |
+ Check Prerequisite
+
What's This
|
+
+ |
+ |
+ |
+ Currently |
+ Change |
+
{% for module in added_learning_modules %}
@@ -99,9 +114,9 @@
- Remove from course
- Change Order
- Change Prerequisite
+ Remove from course
+ Change Order
+ Change Prerequisite
--
cgit
|