From 3e217025d6130fbbed8fe239b045519a3a7d0f4b Mon Sep 17 00:00:00 2001 From: adityacp Date: Tue, 15 Dec 2020 20:18:31 +0530 Subject: Add new UI over bootstrap --- yaksh/templates/base.html | 12 +- yaksh/templates/manage.html | 8 - yaksh/templates/user.html | 18 +- yaksh/templates/yaksh/add_course.html | 2 +- yaksh/templates/yaksh/add_lesson.html | 2 +- yaksh/templates/yaksh/add_question.html | 18 +- yaksh/templates/yaksh/add_quiz.html | 2 - yaksh/templates/yaksh/addteacher.html | 47 ++-- yaksh/templates/yaksh/complete.html | 31 ++- yaksh/templates/yaksh/course_added_modules.html | 6 + yaksh/templates/yaksh/course_detail.html | 123 +++++----- yaksh/templates/yaksh/course_detail_options.html | 29 ++- yaksh/templates/yaksh/course_forum.html | 16 +- yaksh/templates/yaksh/course_modules.html | 278 ++++++++++++----------- yaksh/templates/yaksh/course_progress.html | 14 +- yaksh/templates/yaksh/course_send_mail.html | 24 +- yaksh/templates/yaksh/course_students.html | 84 ++++--- yaksh/templates/yaksh/course_teachers.html | 16 +- yaksh/templates/yaksh/design_course_session.html | 4 +- yaksh/templates/yaksh/grade_user.html | 19 +- yaksh/templates/yaksh/lessons_forum.html | 70 +++--- yaksh/templates/yaksh/login.html | 137 ++++++----- yaksh/templates/yaksh/moderator_dashboard.html | 4 +- yaksh/templates/yaksh/monitor.html | 140 ++++++------ yaksh/templates/yaksh/quit.html | 44 ++-- yaksh/templates/yaksh/quizzes_user.html | 48 ++-- yaksh/templates/yaksh/show_video.html | 4 +- yaksh/templates/yaksh/showquestions.html | 109 +++++---- yaksh/templates/yaksh/sidebar.html | 2 +- yaksh/templates/yaksh/user_data.html | 15 +- yaksh/templates/yaksh/user_status.html | 80 ++----- yaksh/templates/yaksh/view_answerpaper.html | 15 +- yaksh/templates/yaksh/view_notifications.html | 2 +- 33 files changed, 756 insertions(+), 667 deletions(-) (limited to 'yaksh/templates') diff --git a/yaksh/templates/base.html b/yaksh/templates/base.html index a946c12..fd9cde3 100644 --- a/yaksh/templates/base.html +++ b/yaksh/templates/base.html @@ -24,6 +24,8 @@ + + @@ -47,6 +49,12 @@ + + + @@ -110,7 +118,7 @@ - {% block footer %} + diff --git a/yaksh/templates/manage.html b/yaksh/templates/manage.html index 047f784..7a2830c 100644 --- a/yaksh/templates/manage.html +++ b/yaksh/templates/manage.html @@ -65,14 +65,6 @@ - - {% endblock %} {% block content %}
diff --git a/yaksh/templates/user.html b/yaksh/templates/user.html index 7211d5c..40a5edd 100644 --- a/yaksh/templates/user.html +++ b/yaksh/templates/user.html @@ -15,6 +15,16 @@
{% endblock %} - - {% block content %} {% block main %} {% block navtab %} diff --git a/yaksh/templates/yaksh/add_course.html b/yaksh/templates/yaksh/add_course.html index 07ac81b..b264c5e 100644 --- a/yaksh/templates/yaksh/add_course.html +++ b/yaksh/templates/yaksh/add_course.html @@ -40,7 +40,7 @@
{% csrf_token %}
- +
{{ form.as_table }}

diff --git a/yaksh/templates/yaksh/add_lesson.html b/yaksh/templates/yaksh/add_lesson.html index 385ebe0..dc6b501 100644 --- a/yaksh/templates/yaksh/add_lesson.html +++ b/yaksh/templates/yaksh/add_lesson.html @@ -75,7 +75,7 @@

Description Preview

-
+

diff --git a/yaksh/templates/yaksh/add_question.html b/yaksh/templates/yaksh/add_question.html index 07e8c74..ba780b1 100644 --- a/yaksh/templates/yaksh/add_question.html +++ b/yaksh/templates/yaksh/add_question.html @@ -64,13 +64,11 @@ File: -
-
- {{ fileform.file_field }}{{ fileform.file_field.errors }} - -
+
+ {{ fileform.file_field }}{{ fileform.file_field.errors }} +
@@ -136,15 +134,15 @@
{% for form in formset %}
-
+
- + Test case {{forloop.counter}}.
diff --git a/yaksh/templates/yaksh/add_quiz.html b/yaksh/templates/yaksh/add_quiz.html index 7918858..1609639 100644 --- a/yaksh/templates/yaksh/add_quiz.html +++ b/yaksh/templates/yaksh/add_quiz.html @@ -88,7 +88,6 @@
diff --git a/yaksh/templates/yaksh/addteacher.html b/yaksh/templates/yaksh/addteacher.html index 58f48d9..7f59de6 100644 --- a/yaksh/templates/yaksh/addteacher.html +++ b/yaksh/templates/yaksh/addteacher.html @@ -2,15 +2,14 @@

Add Teachers/TAs


{% csrf_token %} -
+
+
+ +
-
- -


@@ -27,18 +26,29 @@
{% csrf_token %} - - - - - - - - - +
+ {% if teachers|length > 10 %} +
+ {% else %} +
+ {% endif %} +
UsernameFirst NameLast NameEmailInstituteDepartmentPosition
+ + + + + + + + + + + + + {% for teacher in teachers %} {% if teacher not in course.get_teachers %} - + @@ -50,7 +60,10 @@ {% endif %} {% endfor %} +
UsernameFirst NameLast NameEmailInstituteDepartmentPosition
{{ teacher.username }} {{ teacher.first_name }}
+
+

- {{ message }} -
- {% endfor %} - {% endif %} - {% if is_students %} - {% include "yaksh/course_students.html" %} - {% elif is_mail %} - {% include "yaksh/course_send_mail.html" %} - {% elif is_progress %} - {% include "yaksh/course_progress.html" %} - {% elif is_modules %} - {% include "yaksh/course_added_modules.html" %} - {% elif is_design_course %} - {% include "yaksh/design_course_session.html" %} - {% elif is_add_teacher %} - {% include "yaksh/addteacher.html" %} - {% elif is_teachers %} - {% include "yaksh/course_teachers.html" %} - {% else %} -
-

Manage Course

-
-

-

    -
  • - Students enrollments -
  • -
  • - Add and View Modules, Lessons and Quizzes -
  • -
  • - Send mail to the students -
  • -
  • - View Students course progress -
  • -
  • - Add and View Teachers/TAs -
  • -
-

-

- - - Learn more - -

-
- {% endif %} +
+ {% include "yaksh/course_detail_options.html" %} +
+
+

+
+
+ {% if messages %} + {% for message in messages %} +
+ + {{ message }} +
+ {% endfor %} + {% endif %} + {% if is_students %} + {% include "yaksh/course_students.html" %} + {% elif is_mail %} + {% include "yaksh/course_send_mail.html" %} + {% elif is_progress %} + {% include "yaksh/course_progress.html" %} + {% elif is_modules %} + {% include "yaksh/course_added_modules.html" %} + {% elif is_design_course %} + {% include "yaksh/design_course_session.html" %} + {% elif is_add_teacher %} + {% include "yaksh/addteacher.html" %} + {% elif is_teachers %} + {% include "yaksh/course_teachers.html" %} + {% else %} +
+

Manage Course

+
+

+

    +
  • + Students enrollments +
  • +
  • + Add and View Modules, Lessons and Quizzes +
  • +
  • + Send mail to the students +
  • +
  • + View Students course progress +
  • +
  • + Add and View Teachers/TAs +
  • +
+

+

+ + + Learn more + +

-
+ {% endif %}
{% endblock %} diff --git a/yaksh/templates/yaksh/course_detail_options.html b/yaksh/templates/yaksh/course_detail_options.html index 4dd4dda..84f78ce 100644 --- a/yaksh/templates/yaksh/course_detail_options.html +++ b/yaksh/templates/yaksh/course_detail_options.html @@ -1,46 +1,45 @@ -