{% extends "manage.html" %} {% block subtitle %}List of Questions {% endblock %} {% block script %} <script src="{{ URL_ROOT }}/static/exam/js/show_question.js"></script> {% endblock %} {% block manage %} <form name=frm action="" method="post"> {% csrf_token %} {% for i in questions %} <input type="checkbox" name="question" value="{{ i.id }}"> <a href="{{URL_ROOT}}/exam/manage/addquestion/{{ i.id }}">{{ i }}</a><br> {% endfor %} <br> <button class="btn" type="button" onclick='location.replace("{{URL_ROOT}}/exam/manage/addquestion/");'>Add Question</button> <button class="btn" type="submit" name='edit' value='edit' onClick="return confirm_edit(frm);">Edit Selected</button> <button class="btn" type="submit" onClick="return confirm_delete(frm);" name='delete' value='delete'>Delete Selected</button> </form> {% endblock %}