summaryrefslogtreecommitdiff
path: root/yaksh/templates
diff options
context:
space:
mode:
authormaheshgudi2016-09-06 12:44:49 +0530
committermaheshgudi2016-09-06 12:47:26 +0530
commit848f7945811f1d16bdf8d5e2a99d157d9ed9a18c (patch)
tree5d106375e3f8613f1afc14caf0ebf51ddd4dab2b /yaksh/templates
parent01e08dd15b59ce353043d541c9be81592cda3fe0 (diff)
downloadonline_test-848f7945811f1d16bdf8d5e2a99d157d9ed9a18c.tar.gz
online_test-848f7945811f1d16bdf8d5e2a99d157d9ed9a18c.tar.bz2
online_test-848f7945811f1d16bdf8d5e2a99d157d9ed9a18c.zip
added 'add new quiz' button to each course
Diffstat (limited to 'yaksh/templates')
-rw-r--r--yaksh/templates/yaksh/courses.html17
1 files changed, 10 insertions, 7 deletions
diff --git a/yaksh/templates/yaksh/courses.html b/yaksh/templates/yaksh/courses.html
index 42f49d1..ba7d09f 100644
--- a/yaksh/templates/yaksh/courses.html
+++ b/yaksh/templates/yaksh/courses.html
@@ -65,13 +65,17 @@
<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/{{quiz.id}}/">{{ quiz.description }}</a><br>
+ <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>
+ <br/>
+ <button class="btn primary"type="button" onClick='location.replace("{{URL_ROOT}}/exam/manage/addquiz/{{course.id}}/");'>Add New Quiz</button>
+
</div>
</div>
<br><br>
@@ -130,22 +134,21 @@
<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/{{quiz.id}}/">{{ quiz.description }}</a><br>
+ <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>
+ <button class="btn primary"type="button" onClick='location.replace("{{URL_ROOT}}/exam/manage/addquiz/{{course.id}}/");'>Add New Quiz</button>
</div>
</div>
<br><br>
{% endfor %}
{% else %}
- <center><h4> No new Courses allotted </h4></center>
+ <center><h4> No new Courses allotted <br><br></h4></center>
{% endif %}
-<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>
-{% endif %}
+<center><button class="btn primary" type="button" onClick='location.replace("{{URL_ROOT}}/exam/manage/add_course");'>Add New Course</button></center>
+
{% endblock %}