diff options
author | ankitjavalkar | 2015-07-09 16:19:24 +0530 |
---|---|---|
committer | ankitjavalkar | 2015-09-07 17:58:59 +0530 |
commit | 81e119899ebc04b53ac9c15c66286c8dbc08726b (patch) | |
tree | 1eb648f180cfda74842b5a5addc378e9bf97d738 /testapp/yaksh_app/templates | |
parent | 31f5e743031d105b0406e9587dc33bb065cd6e4d (diff) | |
download | online_test-81e119899ebc04b53ac9c15c66286c8dbc08726b.tar.gz online_test-81e119899ebc04b53ac9c15c66286c8dbc08726b.tar.bz2 online_test-81e119899ebc04b53ac9c15c66286c8dbc08726b.zip |
Add Date-Time limits for exams
Diffstat (limited to 'testapp/yaksh_app/templates')
-rw-r--r-- | testapp/yaksh_app/templates/yaksh_app/intro.html | 27 |
1 files changed, 23 insertions, 4 deletions
diff --git a/testapp/yaksh_app/templates/yaksh_app/intro.html b/testapp/yaksh_app/templates/yaksh_app/intro.html index 592937a..9c5c14d 100644 --- a/testapp/yaksh_app/templates/yaksh_app/intro.html +++ b/testapp/yaksh_app/templates/yaksh_app/intro.html @@ -5,8 +5,21 @@ {% block formtitle %}Important instructions & rules {% endblock %} {% block content %} - - + {% if enable_quiz_time or disable_quiz_time %} + {% if quiz_expired %} + <div class="alert alert-error"> + This Quiz has expired. You can no longer attempt this Quiz. + <br/> + </div> + {% else %} + <div class="alert"> + You can attempt this Quiz at any time between {{ enable_quiz_time }} and {{ disable_quiz_time }} + <br/> + You are not allowed to attempt the Quiz before or after this duration + <br/> + </div> + {% endif %} + {% endif %} <p> Welcome <strong>{{user.first_name.title}} {{user.last_name.title}}</strong>, to the programming quiz! </p> <p> This examination system has been developed with the intention of making you @@ -27,8 +40,14 @@ </ul> <p> We hope you enjoy taking this exam !!!</p> - <form action="{{URL_ROOT}}/exam/start/{{ attempt_num }}/{{ paper_id }}/" method="post" align="center"> + <form action="{{URL_ROOT}}/exam/quizzes/" method="post" align="center"> {% csrf_token %} - <center><button class="btn" type="submit" name="start">Start Exam!</button></center> + <center><button class="btn" name="home">Home</button></center> </form> + {% if not quiz_expired %} + <form action="{{URL_ROOT}}/exam/start/{{ attempt_num }}/{{ paper_id }}/" method="post" align="center"> + {% csrf_token %} + <center><button class="btn" type="submit" name="start">Start Exam!</button></center> + </form> + {% endif %} {% endblock content %} |