From 643321cad6922be48bffc1727473f5885ef73670 Mon Sep 17 00:00:00 2001 From: maheshgudi Date: Mon, 23 Jan 2017 12:57:10 +0530 Subject: moved activate/deactivate course button to the top. Removed instructions from create_demo_course --- yaksh/models.py | 1 - yaksh/templates/yaksh/course_detail.html | 9 ++++++--- 2 files changed, 6 insertions(+), 4 deletions(-) (limited to 'yaksh') diff --git a/yaksh/models.py b/yaksh/models.py index b888ddc..a86250b 100644 --- a/yaksh/models.py +++ b/yaksh/models.py @@ -572,7 +572,6 @@ class Quiz(models.Model): end_date_time=timezone.now() + timedelta(176590), duration=30, active=True, attempts_allowed=-1, - instructions=instructions_data, time_between_attempts=0, description='Yaksh Demo quiz', pass_criteria=0, language='Python', prerequisite=None, diff --git a/yaksh/templates/yaksh/course_detail.html b/yaksh/templates/yaksh/course_detail.html index c54f153..57193fe 100644 --- a/yaksh/templates/yaksh/course_detail.html +++ b/yaksh/templates/yaksh/course_detail.html @@ -8,6 +8,11 @@ {% endblock %} {% block content %} +
+
+ {% if course.active %}Deactivate Course {% else %} Activate Course {% endif %} +
+
Requests

@@ -82,7 +87,5 @@
-
- {% if course.active %}Deactivate Course {% else %} Activate Course {% endif %} -
+ {% endblock %} -- cgit