summaryrefslogtreecommitdiff
path: root/static/website/templates/take_quiz.html
diff options
context:
space:
mode:
authorSashi202018-10-10 15:03:02 +0530
committerGitHub2018-10-10 15:03:02 +0530
commitcfc007e023c5a0c3fcc2a534dd5c64ad37581e9b (patch)
tree8c13a8cd762971e86bb39a95029eb2a16784ded0 /static/website/templates/take_quiz.html
parent78e35b6ffa9ad3336484168b569e9f26c2d9a67e (diff)
parenta80d99243f843181c7356d71a1b3446d5cc80637 (diff)
downloadnccps-2018-cfc007e023c5a0c3fcc2a534dd5c64ad37581e9b.tar.gz
nccps-2018-cfc007e023c5a0c3fcc2a534dd5c64ad37581e9b.tar.bz2
nccps-2018-cfc007e023c5a0c3fcc2a534dd5c64ad37581e9b.zip
Merge pull request #24 from Akshen/develop
DWSIM Quiz NCCP-2018
Diffstat (limited to 'static/website/templates/take_quiz.html')
-rw-r--r--static/website/templates/take_quiz.html48
1 files changed, 48 insertions, 0 deletions
diff --git a/static/website/templates/take_quiz.html b/static/website/templates/take_quiz.html
new file mode 100644
index 0000000..15bb05e
--- /dev/null
+++ b/static/website/templates/take_quiz.html
@@ -0,0 +1,48 @@
+{% extends "base.html" %}
+
+{% load static %}
+ {% block content %}
+<br><br><br><br>
+<div class="container">
+
+ {% if messages %}
+ <ul class="messages">
+ {% for message in messages %}
+ <div class="alert alert-{{ message.tags }}">
+ <li {% if message.tags %} class="{{ message.tags }}"{% endif %}> {{ message }}
+ </li>
+ </div>
+ {% endfor %}
+ </ul>
+ {% endif %}
+
+ {% if question_list is None %}
+ <div class="alert alert-success">
+ <strong>You've Already taken the quiz, please come tomorrow for other questions!</strong>
+ </div>
+ {% else %}
+ <form method="POST">
+ {% csrf_token %}
+ <div class="question_one">
+ <strong>{{ question_list.0.question | safe }}</strong><br>
+ <input type="radio" value="{{question_list.0.option_1}}" name="q1"> {{ question_list.0.option_1 }}<br>
+ <input type="radio" value="{{question_list.0.option_2}}" name="q1"> {{ question_list.0.option_2 }}<br>
+ <input type="radio" value="{{question_list.0.option_3}}" name="q1"> {{ question_list.0.option_3 }}<br>
+ <input type="radio" value="{{question_list.0.option_4}}" name="q1"> {{ question_list.0.option_4 }}<br>
+ <br> <br> <br>
+ </div>
+
+ <div class="question_two">
+ <strong>{{ question_list.1.question | safe }}</strong><br>
+ <input type="radio" value="{{question_list.1.option_1}}" name="q2"> {{ question_list.1.option_1 }}<br>
+ <input type="radio" value="{{question_list.1.option_2}}" name="q2"> {{ question_list.1.option_2 }}<br>
+ <input type="radio" value="{{question_list.1.option_3}}" name="q2"> {{ question_list.1.option_3 }}<br>
+ <input type="radio" value="{{question_list.1.option_4}}" name="q2"> {{ question_list.1.option_4 }}<br>
+ <br>
+ </div>
+ <button class="btn btn-primary center-block" type="Submit">Submit</button> <br>
+ </form>
+ {% endif %}
+
+</div>
+ {% endblock %} \ No newline at end of file