diff options
Diffstat (limited to 'yaksh/templates')
-rw-r--r-- | yaksh/templates/manage.html | 15 | ||||
-rw-r--r-- | yaksh/templates/yaksh/add_quiz.html | 28 | ||||
-rw-r--r-- | yaksh/templates/yaksh/intro.html | 5 | ||||
-rw-r--r-- | yaksh/templates/yaksh/showquestions.html | 3 |
4 files changed, 48 insertions, 3 deletions
diff --git a/yaksh/templates/manage.html b/yaksh/templates/manage.html index 4b9e2ba..334f6a2 100644 --- a/yaksh/templates/manage.html +++ b/yaksh/templates/manage.html @@ -77,6 +77,21 @@ <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> </center> + {% if trial_quiz %} + <h5/> You have trial papers. + <table class="bordered-table zebra-striped"> + <form action="" method="post"> + {% csrf_token %} + {% for quiz in trial_quiz %} + <tr> + <td> <input type = "checkbox" name="delete_quiz" value = {{quiz.id}}></input></td> + <td> <a href="{{URL_ROOT}}/exam/manage/gradeuser/{{quiz.id}}">{{quiz.description}}</td> + </tr> + {% endfor %} + </table> + <center><button class="btn" type="submit">Delete Selected</button></center> + </form> + {% endif %} {% endblock %} </div> </div> diff --git a/yaksh/templates/yaksh/add_quiz.html b/yaksh/templates/yaksh/add_quiz.html index c47d1f7..5a0bee4 100644 --- a/yaksh/templates/yaksh/add_quiz.html +++ b/yaksh/templates/yaksh/add_quiz.html @@ -11,6 +11,7 @@ {% endblock %} {% block onload %} onload="javascript:test();" {% endblock %} {% block manage %} + <form name=frm id=frm action="" method="post" > {% csrf_token %} <center> @@ -18,8 +19,33 @@ {{ form.as_table }} </table> </center> - + <center><button class="btn" type="submit" id="submit" name="questionpaper">Design Question Paper</button> + <button class="btn" type="button" name="button" onClick='location.replace("{{URL_ROOT}}/exam/manage/courses/");'>Cancel</button> </center> + </form> +{% if quiz_id %} + + <h5>You can check the quiz by attempting it in the following modes:</h5> + <center> + <button class="btn" type="button" name="button" onClick='usermode("{{URL_ROOT}}/exam/manage/usermode/{{quiz_id}}");'>User Mode</button> + + <button class="btn" type="button" name="button" onClick='location.replace("{{URL_ROOT}}/exam/manage/godmode/{{quiz_id}}");'>God Mode</button> + <a href="" onclick="$('#help').show(); return false;">Help </a> + </center> + <br/> + <div style="display: none;" id="help"> + <ol> + <li><b>User Mode:</b> Attempt quiz the way normal users will attempt i.e. - + <ul> + <li><i>Quiz will have the same duration as that of the original quiz.</li> + <li>Quiz won't start if the course is inactive or the quiz time has expired.</li> + <li>You will be notified about quiz prerequisites.(You can still attempt the quiz though)</i></li> + </ul> + </p> + <li> <b>God Mode:</b> Attempt quiz without any time or eligibilty constraints.</p> + <a href="" onclick="$('#help').hide(); return false"> Close </a> + </div> + {% endif %} {% endblock %} diff --git a/yaksh/templates/yaksh/intro.html b/yaksh/templates/yaksh/intro.html index f05e9a1..b4bc6d7 100644 --- a/yaksh/templates/yaksh/intro.html +++ b/yaksh/templates/yaksh/intro.html @@ -39,8 +39,11 @@ </li> </ul> <p> We hope you enjoy taking this exam !!!</p> - + {% if user == "moderator" %} + <form action="{{URL_ROOT}}/exam/manage/" method="post" align="center"> + {%else%} <form action="{{URL_ROOT}}/exam/quizzes/" method="post" align="center"> + {% endif %} {% csrf_token %} <center><button class="btn" name="home">Home</button></center> </form> diff --git a/yaksh/templates/yaksh/showquestions.html b/yaksh/templates/yaksh/showquestions.html index ea42797..2f4d218 100644 --- a/yaksh/templates/yaksh/showquestions.html +++ b/yaksh/templates/yaksh/showquestions.html @@ -57,7 +57,8 @@ <button class="btn" type="button" onclick='location.replace("{{URL_ROOT}}/exam/manage/addquestion/");'>Add Question</button> <button class="btn" type="submit" onClick="return confirm_delete(frm);" name='delete' value='delete'>Delete Selected</button> {% if questions %} -<button class="btn" type="submit" name='download' value='download'>Download Selected</button> +<button class="btn" type="submit" name='download' value='download'>Download Selected</button> +<button class="btn" type="submit" name="test" value="test">Test Selected</button> {% endif %} </form> {% endblock %} |