From bed6d3bec534ec5cd207e1fa00580749aaa14112 Mon Sep 17 00:00:00 2001 From: Akshen Date: Wed, 10 Oct 2018 10:50:20 +0530 Subject: Add DWSIM Online Quiz - Moderator can add, edit questions and view leaderboard - Participant can take quiz specified for that day --- static/website/templates/add_question.html | 30 ++++++++++++++++ static/website/templates/edit_question.html | 30 ++++++++++++++++ static/website/templates/header.html | 2 ++ static/website/templates/leaderboard.html | 36 +++++++++++++++++++ static/website/templates/navbar.html | 6 ++++ static/website/templates/question_list.html | 20 +++++++++++ static/website/templates/quiz_intro.html | 55 +++++++++++++++++++++++++++++ static/website/templates/take_quiz.html | 48 +++++++++++++++++++++++++ 8 files changed, 227 insertions(+) create mode 100644 static/website/templates/add_question.html create mode 100644 static/website/templates/edit_question.html create mode 100644 static/website/templates/leaderboard.html create mode 100644 static/website/templates/question_list.html create mode 100644 static/website/templates/quiz_intro.html create mode 100644 static/website/templates/take_quiz.html (limited to 'static/website/templates') diff --git a/static/website/templates/add_question.html b/static/website/templates/add_question.html new file mode 100644 index 0000000..a8b3440 --- /dev/null +++ b/static/website/templates/add_question.html @@ -0,0 +1,30 @@ +{% extends "base.html" %} + + {% block content %} +


+ + {% if messages %} + + {% endif %} + + +
+

Avoid using '+ % &' symbols instead use it's equivalent string. Eg use 'plus' instead of '+'

+
+ {% csrf_token %} + + {{ questions.as_p }} + +
+ +

+
+
+ {% endblock %} \ No newline at end of file diff --git a/static/website/templates/edit_question.html b/static/website/templates/edit_question.html new file mode 100644 index 0000000..9b45d5b --- /dev/null +++ b/static/website/templates/edit_question.html @@ -0,0 +1,30 @@ +{% extends "base.html" %} + + {% block content %} +


+ + {% if messages %} + + {% endif %} + + +
+

Avoid using '+ % &' symbols instead use it's equivalent string. Eg use 'plus' instead of '+'

+
+ {% csrf_token %} + + {{ form.as_p }} + +
+ +

+
+
+ {% endblock %} \ No newline at end of file diff --git a/static/website/templates/header.html b/static/website/templates/header.html index 9ac59e0..6a6152c 100644 --- a/static/website/templates/header.html +++ b/static/website/templates/header.html @@ -14,6 +14,8 @@ + + diff --git a/static/website/templates/leaderboard.html b/static/website/templates/leaderboard.html new file mode 100644 index 0000000..7b56ee8 --- /dev/null +++ b/static/website/templates/leaderboard.html @@ -0,0 +1,36 @@ +{% extends "base.html" %} + +{% load static %} + {% block content %} +


+ +
+
+ + + + +   + + + + + {% for participant in leaderboard %} + + + + + + + + {% endfor %} +
Participant NameScore
+   {{ participant.0.user.get_full_name }} + +   {{ participant.1 }} +
+ +
+
+

+ {% endblock %} \ No newline at end of file diff --git a/static/website/templates/navbar.html b/static/website/templates/navbar.html index 427ca42..43f8d72 100644 --- a/static/website/templates/navbar.html +++ b/static/website/templates/navbar.html @@ -49,6 +49,12 @@ diff --git a/static/website/templates/question_list.html b/static/website/templates/question_list.html new file mode 100644 index 0000000..65b571a --- /dev/null +++ b/static/website/templates/question_list.html @@ -0,0 +1,20 @@ +{% extends "base.html" %} + +{% load static %} + {% block content %} +

+
+

+ + {% for question in question_list %} + {{ question.question | safe }}

+ {% endfor %} +
+
+ + +

+
+ + +{% endblock %} \ No newline at end of file diff --git a/static/website/templates/quiz_intro.html b/static/website/templates/quiz_intro.html new file mode 100644 index 0000000..ca66825 --- /dev/null +++ b/static/website/templates/quiz_intro.html @@ -0,0 +1,55 @@ +{% extends "base.html" %} +{% load static %} + + +{% include 'header.html' %} + +
+ + {% include 'navbar.html' %} + {% block content %} +
+
+ +
+
+

DWSIM Online Quiz

+
+
+
+
+

About the Quiz

+

As a part of the National Conference on Chemical Process Simulation (NCCPS) - 2018, FOSSEE Team is conducting a national level online daily quiz competition called DWSIM Online Quiz . The quiz will comprise of questions based on chemical process simulator DWSIM. This competition will be held from 15-10-2018 to 13-11-2018. The primary objective of this competition is to allow chemical engineering practitioners to enhance their simulation skills. Competitors standing at top 3 position in the leaderboard will stand a chance to win attractive prizes on the day of the conference.

+
Procedure to Participate in the Quiz:
+
    +
  • Go to NCCPS - 2018 website and log in with your registered credentials.
  • +
  • If not already registered in the conference website, please register with your details to start participating in the DWSIM Online Quiz.
  • +
  • Once you are in DWSIM Online Quiz page, please read the quiz instructions carefully.
  • +
  • Click on Start Online Quiz to view the questions assigned for the day.
  • +
  • Two Multiple Choice Questions (MCQs) with 4 options will be displayed for that day.
  • +
  • Simulate the displayed problem statement in DWSIM (Version 5.3).
  • +
  • Select your option for the displayed questions.
  • +
  • Submit the Quiz by clicking on Submit button.
  • +
+
Guidelines
+
    +
  • Use DWSIM Version 5.3 for simulating the problem statement. This version will be followed throughout the competition.
  • +
  • Correct option for the displayed questions will be based on problem statement simulated using DWSIM Version 5.3.
  • +
  • The new questions for the day will be available to attempt from 12:00 AM of that day to 11:59 PM of the same day.
  • +
  • In case you are logged out of the session before clicking on Submit button, please go and re-attempt the quiz.
  • +
  • There will be only one correct answer for each displayed question.
  • +
  • It is mandatory to register in the NCCPS - 2018 website to participate in the quiz.
  • +
  • Participants are strictly restricted to attempt the quiz by logging in through multiple accounts registered for the same person. If anyone is found to follow such unethical practice will be disqualified.
  • +
  • Participant cannot re-attempt the quiz for the day once they have submitted their answers for that day.
  • +
  • Every correct answer will carry +1 mark and wrong answers will not be rewarded any marks.
  • +
  • Winners will be declared based on highest score obtained throughout the competition.
  • +
+
+
+
+ +
+
+ + + {% endblock %} \ No newline at end of file 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 %} +



+
+ + {% if messages %} + + {% endif %} + + {% if question_list is None %} +
+ You've Already taken the quiz, please come tomorrow for other questions! +
+ {% else %} +
+ {% csrf_token %} +
+ {{ question_list.0.question | safe }}
+ {{ question_list.0.option_1 }}
+ {{ question_list.0.option_2 }}
+ {{ question_list.0.option_3 }}
+ {{ question_list.0.option_4 }}
+


+
+ +
+ {{ question_list.1.question | safe }}
+ {{ question_list.1.option_1 }}
+ {{ question_list.1.option_2 }}
+ {{ question_list.1.option_3 }}
+ {{ question_list.1.option_4 }}
+
+
+
+
+ {% endif %} + +
+ {% endblock %} \ No newline at end of file -- cgit