From 529c9b63bfe2ee7d6fe1667bf5c09a0b23ac374f Mon Sep 17 00:00:00 2001 From: Akshen Date: Wed, 31 Oct 2018 11:13:21 +0530 Subject: Allow participants to view and download solutions - view correct answers - download all dwsim files - remove 10 marks week --- static/website/templates/navbar.html | 1 + static/website/templates/question_list.html | 1 - static/website/templates/view_solutions.html | 40 ++++++++++++++++++++++++++++ 3 files changed, 41 insertions(+), 1 deletion(-) create mode 100644 static/website/templates/view_solutions.html (limited to 'static') diff --git a/static/website/templates/navbar.html b/static/website/templates/navbar.html index d820d5d..a196b05 100644 --- a/static/website/templates/navbar.html +++ b/static/website/templates/navbar.html @@ -54,6 +54,7 @@ {% else %}
  • Take Quiz
  • +
  • View Solutions
  • {% endif %}
  •  Logout
  • diff --git a/static/website/templates/question_list.html b/static/website/templates/question_list.html index cc11098..65b571a 100644 --- a/static/website/templates/question_list.html +++ b/static/website/templates/question_list.html @@ -13,7 +13,6 @@
    -

    diff --git a/static/website/templates/view_solutions.html b/static/website/templates/view_solutions.html new file mode 100644 index 0000000..2074dcb --- /dev/null +++ b/static/website/templates/view_solutions.html @@ -0,0 +1,40 @@ +{% extends "base.html" %} + +{% load static %} + {% block content %} +

    +

    + +
    + {% if set_visible %} +
    + {% csrf_token %} + +
    +

    + + + + + + + + + {% for q in question_ans_list %} + + + + + + + {% endfor %} +
    QuestionAnswer
    {{ q.question }} {{ q.correct_answer }}
    + + {% else %} +
    +

    This page will be visible from 15-11-2018

    +
    + {% endif %} +
    + +{% endblock %} \ No newline at end of file -- cgit From b42cc399fd70cc45ca7a5e075b39885eeec97d30 Mon Sep 17 00:00:00 2001 From: Akshen Date: Fri, 2 Nov 2018 15:24:00 +0530 Subject: Add instructions for dwsim flowsheet test --- static/website/templates/take_quiz.html | 75 ++++++++++++++++++++++++++++++++- 1 file changed, 73 insertions(+), 2 deletions(-) (limited to 'static') diff --git a/static/website/templates/take_quiz.html b/static/website/templates/take_quiz.html index 15bb05e..3e62018 100644 --- a/static/website/templates/take_quiz.html +++ b/static/website/templates/take_quiz.html @@ -3,7 +3,9 @@ {% load static %} {% block content %}



    -
    + +{% if set_visible %} +
    {% if messages %}
    + + {% else %} + +
    +

    DWSIM Flowsheeting Creation Competition

    +
    + +
    + +
    + +
    +
    +

    Leaderboard

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

    + + {% endif %} -
    {% endblock %} \ No newline at end of file -- cgit