From 3bbaff2ebca026042cce3deb025effb9e83e0859 Mon Sep 17 00:00:00 2001
From: adityacp
Date: Wed, 28 Feb 2018 16:54:22 +0530
Subject: Change forms.py, models.py, test_models.py and templates
- Add help text for timezone field in user registration form
- Add new method in course model to get days remaining to start a course
- Show start time and end time of a course to the students
- Disallow to enroll to a course which is not active
- Add model test for the new course method
---
yaksh/templates/yaksh/course_modules.html | 166 +++++++++++++++---------------
yaksh/templates/yaksh/quizzes_user.html | 35 +++++--
yaksh/templates/yaksh/view_profile.html | 4 +
3 files changed, 113 insertions(+), 92 deletions(-)
(limited to 'yaksh/templates')
diff --git a/yaksh/templates/yaksh/course_modules.html b/yaksh/templates/yaksh/course_modules.html
index fad1be0..afbae75 100644
--- a/yaksh/templates/yaksh/course_modules.html
+++ b/yaksh/templates/yaksh/course_modules.html
@@ -18,102 +18,100 @@
{% endif %}
{% if learning_modules %}
- {% for module in learning_modules %}
-