From dbe52125fd83370dea94ac9c8d870f572f0a14a7 Mon Sep 17 00:00:00 2001 From: CruiseDevice Date: Thu, 20 Jun 2019 15:39:48 +0530 Subject: UI improvements - show lessons in tree structure on sidebar menu. - Use div inplace of table in index.html to show modules and lessons. --- yaksh/static/yaksh/css/offline.css | 9 ++++++++ yaksh/templates/yaksh/index.html | 46 ++++++++++++++++++++------------------ yaksh/templates/yaksh/quiz.html | 38 +++++++++++++++++-------------- yaksh/templates/yaksh/unit.html | 38 +++++++++++++++++-------------- 4 files changed, 75 insertions(+), 56 deletions(-) diff --git a/yaksh/static/yaksh/css/offline.css b/yaksh/static/yaksh/css/offline.css index 66d805e..79584e0 100644 --- a/yaksh/static/yaksh/css/offline.css +++ b/yaksh/static/yaksh/css/offline.css @@ -71,6 +71,15 @@ text-transform: uppercase; } +section{ + padding: 2rem; +} + +.bg-grey{ + background-color:#dbf9f2; +} + + /*.footer { position: fixed; left: 0; diff --git a/yaksh/templates/yaksh/index.html b/yaksh/templates/yaksh/index.html index 05ade47..cf5f35c 100644 --- a/yaksh/templates/yaksh/index.html +++ b/yaksh/templates/yaksh/index.html @@ -30,30 +30,32 @@
{% block content %} - - {% for module in modules %} - - - - - - {% endfor %} -
- {{module.name}} -
-
    + {% for module in modules %} +
    +
    +
    + {{module.name}} +
    +
    + +
    + +
    +
    +
    +
    +
      {% for lesson in module.get_lesson_units %} -
    • {{lesson.name}}
    • +
    • {{lesson.name}}
    • {% endfor %} -
    -
    -
- - - Go to Module -
+ +
+
+ {% endfor %} {% endblock %}
diff --git a/yaksh/templates/yaksh/quiz.html b/yaksh/templates/yaksh/quiz.html index 256b282..fca0cad 100644 --- a/yaksh/templates/yaksh/quiz.html +++ b/yaksh/templates/yaksh/quiz.html @@ -31,24 +31,28 @@ {{ module.name }} - - - {% for unit in module.get_learning_units %} - {% if unit.type == 'lesson' %} - - {% else %} - - {% endif %} - {% endfor %} - + diff --git a/yaksh/templates/yaksh/unit.html b/yaksh/templates/yaksh/unit.html index 1526454..1ceffe8 100644 --- a/yaksh/templates/yaksh/unit.html +++ b/yaksh/templates/yaksh/unit.html @@ -31,24 +31,28 @@ {{ module.name }} - - - {% for unit in module.get_learning_units %} - {% if unit.type == 'lesson' %} - - {% else %} - - {% endif %} - {% endfor %} - + -- cgit