From 67d7e943cf3f724c5169de6f867f43b9352c5c90 Mon Sep 17 00:00:00 2001 From: CruiseDevice Date: Fri, 11 Jun 2021 19:41:57 +0530 Subject: Minor changes --- yaksh/templates/yaksh/courses.html | 549 ++++++++++++++++++------------------- 1 file changed, 263 insertions(+), 286 deletions(-) diff --git a/yaksh/templates/yaksh/courses.html b/yaksh/templates/yaksh/courses.html index 1d6ee7f..264101c 100644 --- a/yaksh/templates/yaksh/courses.html +++ b/yaksh/templates/yaksh/courses.html @@ -4,308 +4,285 @@ {% block pagetitle %} Courses {% endblock pagetitle %} {% block script %} - + {% endblock %} {% block content %}
-
- +
+ -
-
- {% if not objects %} -

-
-

No Courses Found

-
- {% else %} -
-
-
-
-
-

Search/Filter Courses

-
-
-
- {{form.search_tags}} -
- {{form.search_status}} -
-
- - -  Clear - -
-
-
+
+
+
+ {% if not objects %} +

+
+

No Courses Found

+
+ {% else %} +
+
+
+
+
+

Search/Filter Courses

+
+
+
+ {{form.search_tags}} +
+ {{form.search_status}}
-
-

{{ courses_found }} Course(s) Available

+
+ + +  Clear + +
+
+ +
+
+

{{ courses_found }} Course(s) Available

+ {% if messages %} + {% for message in messages %} +
+ + {{ message }} +
+ {% endfor %} + {% endif %} + {% with objects as courses %} +
+
+ {% include "yaksh/paginator.html" %} +
+
+ +
+
- {% if messages %} - {% for message in messages %} -
- - {{ message }} -
- {% endfor %} - {% endif %} - {% with objects as courses %} -
-
- {% include "yaksh/paginator.html" %} +
+
+ +
+
+
+ {% for course in courses %} +
+
+
+ + +   + {{course.name}} + + +
+ {% if user.id != course.creator.id %} + + Allotted Course + + {% else %} + + Created Course + + {% endif %}
-
- - -
-
- +
+
+
+
+ Status: + {% if course.active %} + + Active + + {% else %} + + Inactive + + {% endif %}
-
-
- {% for course in courses %} -
-
-
- - -   - {{course.name}} - - -
- {% if user.id != course.creator.id %} - - Allotted Course - - {% else %} - - Created Course - - {% endif %} -
- -
-
-
-
- Status: - {% if course.active %} - - Active - - {% else %} - - Inactive - - {% endif %} -
- Creator: - {{course.creator.get_full_name}} -
- Starts On: - {{course.start_enroll_time}} -
- Ends On: - {{course.end_enroll_time}} -
-
-
-
-
- {% endfor %} -
-
-
-
- + Creator: + {{course.creator.get_full_name}}
- {% for course in courses %} -
-
-
- -
- {% if user.id != course.creator.id %} - - Allotted Course - - {% else %} - - Created Course - - {% endif %} -
- -
-
-
-
-
- Status: - {% if course.active %} - - Active - - {% else %} - - Inactive - - {% endif %} -
- Creator: - {{course.creator.get_full_name}} -
- Starts On: - {{course.start_enroll_time}} -
- Ends On: - {{course.end_enroll_time}} -
-
-
-
-
- {% endfor %} + Starts On: + {{course.start_enroll_time}}
+ Ends On: + {{course.end_enroll_time}} +
+
- {% include "yaksh/paginator.html" %} - {% endwith %} +
+ {% endfor %} +
+
+
+
+ +
+ {% for course in courses %} +
+
+
+ +
+ {% if user.id != course.creator.id %} + + Allotted Course + + {% else %} + + Created Course + + {% endif %} +
+ +
+
+
+
+
+ Status: + {% if course.active %} + + Active + + {% else %} + + Inactive + + {% endif %} +
+ Creator: + {{course.creator.get_full_name}} +
+ Starts On: + {{course.start_enroll_time}} +
+ Ends On: + {{course.end_enroll_time}} +
+
+
+
+ {% endfor %} +
- {% endif %} -
+
+ {% include "yaksh/paginator.html" %} + {% endwith %} +
+
+ {% endif %} +
{% endblock %} \ No newline at end of file -- cgit