diff options
author | adityacp | 2016-09-20 14:53:01 +0530 |
---|---|---|
committer | adityacp | 2016-09-20 14:53:01 +0530 |
commit | 6d3ece46b9a6569c711e20db2c3220e32a82751c (patch) | |
tree | 41616ce7ef39ae290c9147336eb2016e3fa84f0b /yaksh | |
parent | 485f3a74a59402fa2adca7bbea025b856f12d854 (diff) | |
download | online_test-6d3ece46b9a6569c711e20db2c3220e32a82751c.tar.gz online_test-6d3ece46b9a6569c711e20db2c3220e32a82751c.tar.bz2 online_test-6d3ece46b9a6569c711e20db2c3220e32a82751c.zip |
changed manage and courses template
Diffstat (limited to 'yaksh')
-rw-r--r-- | yaksh/templates/manage.html | 20 | ||||
-rw-r--r-- | yaksh/templates/yaksh/courses.html | 47 |
2 files changed, 20 insertions, 47 deletions
diff --git a/yaksh/templates/manage.html b/yaksh/templates/manage.html index b628a44..ea587df 100644 --- a/yaksh/templates/manage.html +++ b/yaksh/templates/manage.html @@ -77,6 +77,26 @@ <h4>Moderator's Dashboard!</h4> <h5>Click on the button given below to add a new course.</h5> <button class="btn" type="button" onClick='location.replace("{{URL_ROOT}}/exam/manage/add_course");'>Add New Course</button> + <h5>Click on the button to Create a Demo course. + <a href="" onclick="$('#help').show(); return false;">Help </a></h5> + <button class="btn" type="button" onClick='location.replace("{{URL_ROOT}}/exam/manage/create_demo_course");'>Create Demo Course</button> + <div style="display: none;" id="help"> + <ol> + <ul> + <li>A Demo Course and Demo Quiz will be created (Click Courses link on nav bar to view courses).</li> + <li>Some Demo Questions are also created for you (Click Questions link on nav bar to view questions).</li> + <li>In Courses you can view Demo Quiz.</li> + <li>Click on the Demo Quiz and Click on User Mode or God Mode to take the quiz. + </li> + <li>You can also edit Demo quiz. + </li> + </ul> + </p> + <a href="" onclick="$('#help').hide(); return false"> Close </a> + </div> + {% if msg %} + <h4>{{ msg }}</h4> + {% endif %} </center> {% if trial_paper %} <h5/> You have trial papers. diff --git a/yaksh/templates/yaksh/courses.html b/yaksh/templates/yaksh/courses.html index bfc3cd8..43f323b 100644 --- a/yaksh/templates/yaksh/courses.html +++ b/yaksh/templates/yaksh/courses.html @@ -155,52 +155,5 @@ <br><br> {% endif %} <hr/> -{% if demo_course %} -{% with demo_course as course %} - <h5> 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> - <div class="row show-grid"> - <div class="span14"> - <div class="row"> - <div class="span6"> - <p> - <b><u>Course</u></b> - {% if course.active %} - <span class="label success">Active</span> - {% else %} - <span class="label important">Closed</span> - {% endif %} - </p> - <h5>{{ course.name }}<h5/> - </br></br> - </div> - <div class="span6"> - <p><b><u>Quiz(zes)</u></b></p> - {% if course.get_quizzes %} - {% for quiz in course.get_quizzes %} - <a href="{{URL_ROOT}}/exam/manage/addquiz/{{course.id}}/{{quiz.id}}/">{{ quiz.description }}</a><br> - {% endfor %} - {% else %} - <p><b>No quiz </b></p> - {% endif %} - </div> - </div> - </div> - </div> -{% endwith %} -<hr/> -{% endif %} <center><button class="btn primary" type="button" onClick='location.replace("{{URL_ROOT}}/exam/manage/add_course");'>Add New Course</button></center> {% endblock %} |