summaryrefslogtreecommitdiff
path: root/yaksh/templates
diff options
context:
space:
mode:
authorPrabhu Ramachandran2016-09-08 08:37:07 +0530
committerGitHub2016-09-08 08:37:07 +0530
commit68db5b034de8e3fe021a84ed4f64b60679fa3255 (patch)
tree770b9067974b572e3378c40a613567c1c49f4029 /yaksh/templates
parent01e08dd15b59ce353043d541c9be81592cda3fe0 (diff)
parent6e2a0db4d67902cca52277d22dd7a67ebd059268 (diff)
downloadonline_test-68db5b034de8e3fe021a84ed4f64b60679fa3255.tar.gz
online_test-68db5b034de8e3fe021a84ed4f64b60679fa3255.tar.bz2
online_test-68db5b034de8e3fe021a84ed4f64b60679fa3255.zip
Merge pull request #132 from maheshgudi/course_changes
added add quiz button to each course
Diffstat (limited to 'yaksh/templates')
-rw-r--r--yaksh/templates/yaksh/courses.html18
1 files changed, 11 insertions, 7 deletions
diff --git a/yaksh/templates/yaksh/courses.html b/yaksh/templates/yaksh/courses.html
index 42f49d1..109b996 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,22 @@
<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</h4></center>
+ <br><br>
{% 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 %}