diff options
author | CruiseDevice | 2019-02-14 15:05:42 +0530 |
---|---|---|
committer | CruiseDevice | 2019-02-18 16:45:17 +0530 |
commit | 89c0367ba2364319e6febab191fd46b822b4f6bc (patch) | |
tree | a963a054c7c63bc1165bbd650a779fff195f7abc /yaksh/templates | |
parent | ed532c50d3f5c61ba3ce39d07c8c0c21e6c9c171 (diff) | |
download | online_test-89c0367ba2364319e6febab191fd46b822b4f6bc.tar.gz online_test-89c0367ba2364319e6febab191fd46b822b4f6bc.tar.bz2 online_test-89c0367ba2364319e6febab191fd46b822b4f6bc.zip |
Add Preview Question Paper button in add_quiz template
Diffstat (limited to 'yaksh/templates')
-rw-r--r-- | yaksh/templates/exam.html | 9 | ||||
-rw-r--r-- | yaksh/templates/yaksh/add_quiz.html | 11 |
2 files changed, 10 insertions, 10 deletions
diff --git a/yaksh/templates/exam.html b/yaksh/templates/exam.html index 0b292bb..29ad167 100644 --- a/yaksh/templates/exam.html +++ b/yaksh/templates/exam.html @@ -98,15 +98,6 @@ {% endfor %} </tbody> </table> - <br> - {% if user.profile.is_moderator %} - {% if quiz.questionpaper_set.get %} - <a href="{{URL_ROOT}}/exam/manage/preview_questionpaper/{{quiz.questionpaper_set.get.id}}" class="btn btn-primary active btn-xs" target="_blank"> - View Question Paper - </a> - <br> - {% endif %} - {% endif %} </div> <!--end of sidebar --> <a href="#sidebar" data-toggle="collapse" id="sidebaricon"><i class="fa fa-navicon fa-lg"></i></a> diff --git a/yaksh/templates/yaksh/add_quiz.html b/yaksh/templates/yaksh/add_quiz.html index c955e65..246e0fb 100644 --- a/yaksh/templates/yaksh/add_quiz.html +++ b/yaksh/templates/yaksh/add_quiz.html @@ -37,8 +37,17 @@ {% if quiz and course_id %} {% if quiz.questionpaper_set.get.id %} <center> - <h4>You can check the quiz by attempting it in the following modes:</h4> <a href="{{URL_ROOT}}/exam/manage/designquestionpaper/{{ quiz.id }}/{{quiz.questionpaper_set.get.id}}/{{course_id}}" class="btn btn-primary">View Question Paper</a> + {% if user.profile.is_moderator %} + {% if quiz.questionpaper_set.get %} + <a href="{{URL_ROOT}}/exam/manage/preview_questionpaper/{{quiz.questionpaper_set.get.id}}" class="btn btn-primary" target="_blank"> + Preview Question Paper + </a> + <br> + {% endif %} + {% endif %} + <br> + <h4>You can check the quiz by attempting it in the following modes:</h4> <button class="btn btn-outline-info" type="button" name="button" onClick='usermode("{{URL_ROOT}}/exam/manage/usermode/{{quiz.id}}/{{course_id}}/");'>User Mode</button> <button class="btn btn-outline-info" type="button" name="button" onClick='location.replace("{{URL_ROOT}}/exam/manage/godmode/{{quiz.id}}/{{course_id}}/");'> |