summaryrefslogtreecommitdiff
path: root/yaksh
diff options
context:
space:
mode:
authoradityacp2016-09-16 19:25:33 +0530
committeradityacp2016-09-16 19:25:33 +0530
commit2efd65cb2dd276e1560c8993e13d9db95e6c8ba0 (patch)
treed066278b3e46cbf02f793958bb24fb4697216780 /yaksh
parent671eaf98c8bfe38db19867e29e5047973099b1cf (diff)
downloadonline_test-2efd65cb2dd276e1560c8993e13d9db95e6c8ba0.tar.gz
online_test-2efd65cb2dd276e1560c8993e13d9db95e6c8ba0.tar.bz2
online_test-2efd65cb2dd276e1560c8993e13d9db95e6c8ba0.zip
changed courses template
Diffstat (limited to 'yaksh')
-rw-r--r--yaksh/templates/yaksh/courses.html22
1 files changed, 18 insertions, 4 deletions
diff --git a/yaksh/templates/yaksh/courses.html b/yaksh/templates/yaksh/courses.html
index 4852d25..df46ba6 100644
--- a/yaksh/templates/yaksh/courses.html
+++ b/yaksh/templates/yaksh/courses.html
@@ -15,11 +15,24 @@
{% else %}
<center><h3> Course(s) Created</h3></center>
{% for course in courses %}
- {% if user != course.creator and course.name != "Demo_course"%}
+ {% if user != course.creator and course.name != "Yaksh_Demo_course"%}
<h4> {{course.creator.get_full_name}} added you to this course</h4>
{% endif %}
- {% if course.name == "Demo_course" %}
- <h4> This is Demo Course </h4>
+ {% if course.name == "Yaksh_Demo_course" %}
+ <h5> This is a Demo Course
+ <a href="" onclick="$('#help').show(); return false;">Help
+ </a></h5>
+ <div style="display: none;" id="help">
+ <ol>
+ <li> This is a Demo Course
+ <ul>
+ <li><i>You will not be able to edit Demo course and Demo Quiz.</li>
+ <li>You can only take Demo Quiz by User Mode or God Mode.</li>
+ <li>This is for you to get familiar with the interface.</i></li>
+ </ul>
+ </p>
+ <a href="" onclick="$('#help').hide(); return false"> Close </a>
+ </div>
{% endif %}
<div class="row show-grid">
<div class="span14">
@@ -83,7 +96,7 @@
<br><br>
{% endfor %}
{% endif %}
-
+<hr/>
{% if allotted_courses %}
<center><h3> Course(s) Allotted </h3></center>
@@ -150,6 +163,7 @@
{% else %}
<center><h4> No new Courses allotted </h4></center>
{% endif %}
+<hr/>
<button class="btn primary" type="button" onClick='location.replace("{{URL_ROOT}}/exam/manage/add_course");'>Add New Course</button>
{% if courses or allotted_courses %}
<button class="btn primary" type="button" onClick='location.replace("{{URL_ROOT}}/exam/manage/addquiz");'>Add New Quiz</button>