diff options
author | adityacp | 2020-03-04 17:11:20 +0530 |
---|---|---|
committer | adityacp | 2020-03-04 17:11:20 +0530 |
commit | 674c81d9e1d3499e255e8995701fb65d1358a0ac (patch) | |
tree | 72a46393825b06607cc81cc0c8d3af1f50babbbf /yaksh | |
parent | f85fbae3c76595a8f2039a60c0e7051d39dfe643 (diff) | |
download | online_test-674c81d9e1d3499e255e8995701fb65d1358a0ac.tar.gz online_test-674c81d9e1d3499e255e8995701fb65d1358a0ac.tar.bz2 online_test-674c81d9e1d3499e255e8995701fb65d1358a0ac.zip |
Change settings
- Add messages in grading systems page
- Add password validator in settings
- Fix naming in templates
Diffstat (limited to 'yaksh')
-rw-r--r-- | yaksh/templates/yaksh/add_course.html | 2 | ||||
-rw-r--r-- | yaksh/templates/yaksh/add_quiz.html | 12 | ||||
-rw-r--r-- | yaksh/templates/yaksh/courses.html | 2 | ||||
-rw-r--r-- | yaksh/templates/yaksh/lessons.html | 2 | ||||
-rw-r--r-- | yaksh/templates/yaksh/modules.html | 2 | ||||
-rw-r--r-- | yaksh/templates/yaksh/quizzes.html | 2 | ||||
-rw-r--r-- | yaksh/views.py | 2 |
7 files changed, 13 insertions, 11 deletions
diff --git a/yaksh/templates/yaksh/add_course.html b/yaksh/templates/yaksh/add_course.html index 72403ce..97c6f56 100644 --- a/yaksh/templates/yaksh/add_course.html +++ b/yaksh/templates/yaksh/add_course.html @@ -23,7 +23,7 @@ </li> <li class="nav-item"> <a class="nav-link active" href="{% url 'yaksh:add_course' %}"> - Add New Course + Add/Edit Course </a> </li> <li class="nav-item dropdown hide"> diff --git a/yaksh/templates/yaksh/add_quiz.html b/yaksh/templates/yaksh/add_quiz.html index 57b4d77..5497eeb 100644 --- a/yaksh/templates/yaksh/add_quiz.html +++ b/yaksh/templates/yaksh/add_quiz.html @@ -14,6 +14,12 @@ <script src="{% static 'yaksh/js/jquery-3.3.1.min.js' %}"></script> <script src="{% static 'yaksh/js/add_quiz.js' %}"></script> <script src="{% static 'yaksh/js/jquery.datetimepicker.full.min.js' %}"></script> +<script type="text/javascript"> + $(document).ready(function() { + $("#id_start_date_time").datetimepicker({format: 'Y-m-d H:i:s'}); + $("#id_end_date_time").datetimepicker({format: 'Y-m-d H:i:s'}); + }); +</script> {% endblock %} {% block onload %} onload="javascript:test();" {% endblock %} @@ -44,13 +50,9 @@ <form name=frm id=frm action="" method="post" > {% csrf_token %} <center> - <table class="table"> + <table class="table table-responsive-sm"> {{ form.as_table }} </table> - <script type="text/javascript"> - $("#id_start_date_time").datetimepicker({format: 'Y-m-d H:i:s'}); - $("#id_end_date_time").datetimepicker({format: 'Y-m-d H:i:s'}); - </script> <br/> <button class="btn btn-success btn-lg" id="submit" name="questionpaper"> <i class="fa fa-save"> Save</i> diff --git a/yaksh/templates/yaksh/courses.html b/yaksh/templates/yaksh/courses.html index 0eb9a38..33d44ac 100644 --- a/yaksh/templates/yaksh/courses.html +++ b/yaksh/templates/yaksh/courses.html @@ -29,7 +29,7 @@ </li> <li class="nav-item"> <a class="nav-link" href="{% url 'yaksh:add_course' %}"> - Add New Course + Add/Edit Course </a> </li> <li class="nav-item dropdown hide"> diff --git a/yaksh/templates/yaksh/lessons.html b/yaksh/templates/yaksh/lessons.html index 0146a6b..4b5d18e 100644 --- a/yaksh/templates/yaksh/lessons.html +++ b/yaksh/templates/yaksh/lessons.html @@ -13,7 +13,7 @@ </li> <li class="nav-item"> <a class="nav-link" href="{% url 'yaksh:add_course' %}"> - Add New Course + Add/Edit Course </a> </li> <li class="nav-item dropdown hide"> diff --git a/yaksh/templates/yaksh/modules.html b/yaksh/templates/yaksh/modules.html index 4fafbf1..e835cff 100644 --- a/yaksh/templates/yaksh/modules.html +++ b/yaksh/templates/yaksh/modules.html @@ -14,7 +14,7 @@ </li> <li class="nav-item"> <a class="nav-link" href="{% url 'yaksh:add_course' %}"> - Add New Course + Add/Edit Course </a> </li> <li class="nav-item dropdown hide"> diff --git a/yaksh/templates/yaksh/quizzes.html b/yaksh/templates/yaksh/quizzes.html index 7e53d31..9b40647 100644 --- a/yaksh/templates/yaksh/quizzes.html +++ b/yaksh/templates/yaksh/quizzes.html @@ -14,7 +14,7 @@ </li> <li class="nav-item"> <a class="nav-link" href="{% url 'yaksh:add_course' %}"> - Add New Course + Add/Edit Course </a> </li> <li class="nav-item dropdown hide"> diff --git a/yaksh/views.py b/yaksh/views.py index 3aeaada..23c5a88 100644 --- a/yaksh/views.py +++ b/yaksh/views.py @@ -127,7 +127,7 @@ def user_register(request): Create a user and corresponding profile and store roll_number also.""" user = request.user - if user.is_authenticated(): + if user.is_authenticated: return my_redirect("/exam/quizzes/") context = {} if request.method == "POST": |