summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormaheshgudi2017-01-23 12:57:10 +0530
committermaheshgudi2017-01-23 15:10:51 +0530
commit643321cad6922be48bffc1727473f5885ef73670 (patch)
treea283f536ac5809fbfe337cb387206eefd3eec186
parentf276141ce8a30448026c5ed27622ef5b94fbc809 (diff)
downloadonline_test-643321cad6922be48bffc1727473f5885ef73670.tar.gz
online_test-643321cad6922be48bffc1727473f5885ef73670.tar.bz2
online_test-643321cad6922be48bffc1727473f5885ef73670.zip
moved activate/deactivate course button to the top. Removed instructions from create_demo_course
-rw-r--r--yaksh/models.py1
-rw-r--r--yaksh/templates/yaksh/course_detail.html9
2 files changed, 6 insertions, 4 deletions
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 @@
<script language="JavaScript" type="text/javascript" src="{{ URL_ROOT }}/static/yaksh/js/course.js"></script>
{% endblock %}
{% block content %}
+<br/>
+<div class="pull-right">
+ <a class="btn btn-primary" href="{{URL_ROOT}}/exam/manage/toggle_status/{{ course.id }}/">{% if course.active %}Deactivate Course {% else %} Activate Course {% endif %}</a>
+</div>
+<br/>
<div class="row">
<div class="col-md-6">
<center><b><u>Requests</u></b></center><br>
@@ -82,7 +87,5 @@
</form>
</div>
</div>
-<div class="pull-right">
- <a class="btn btn-primary" href="{{URL_ROOT}}/exam/manage/toggle_status/{{ course.id }}/">{% if course.active %}Deactivate Course {% else %} Activate Course {% endif %}</a>
-</div>
+
{% endblock %}