From c067ad85ff8d51296d632a008d56091422fe9b91 Mon Sep 17 00:00:00 2001 From: Shelsy Date: Thu, 5 Jul 2018 18:35:26 +0530 Subject: Change templates with new UI --- yaksh/templates/exam.html | 165 +++++++++++++++++++++++++++++++--------------- 1 file changed, 113 insertions(+), 52 deletions(-) (limited to 'yaksh/templates/exam.html') diff --git a/yaksh/templates/exam.html b/yaksh/templates/exam.html index 012adbe..e6b4154 100644 --- a/yaksh/templates/exam.html +++ b/yaksh/templates/exam.html @@ -1,86 +1,147 @@ {% extends "base.html" %} {% load custom_filters %} -{% block css%} - -{% endblock %} + + + + +{% load custom_filters %} {% block nav %} - + + + + + + + + {% endblock %} {% block content %}
- -
-
- {% block main %} - {% endblock %} +
+
+

Question(s) left: {{ paper.questions_left }}

+
+
+
+
+
+ {% for types in question_types %} + {% get_questions_by_type paper.get_all_ordered_questions types as questions_by_type %} + {% if types == "mcq" %} Single Correct Choice + {% elif types == "mcc" %} Multiple Correct Choice + {% elif types == "code" %} Programming + {% elif types == "upload" %} Assignment Upload + {% elif types == "integer" %} Integer Blanks + {% elif types == "string" %} String Blanks + {% elif types == "float" %} Float Blanks + {% elif types == "arrange" %} Arranging Options + {% endif %} + ---> + {% for question in questions_by_type %} {{question.id}} {%endfor%} +
+ {%endfor%} +
+
+ + +
+ + +
+
+ + {% block main %} + {% endblock %}
- +
+ + + +{% endblock %} +{% block footer %} + + + {% endblock %} + -- cgit From 9fb9fd3d5afc257cb9c2f6e15b5a3f96b2ec8d51 Mon Sep 17 00:00:00 2001 From: ankitjavalkar Date: Fri, 12 Oct 2018 15:24:44 +0530 Subject: Make changes as per PR review --- yaksh/templates/exam.html | 3 --- 1 file changed, 3 deletions(-) (limited to 'yaksh/templates/exam.html') diff --git a/yaksh/templates/exam.html b/yaksh/templates/exam.html index e6b4154..c452929 100644 --- a/yaksh/templates/exam.html +++ b/yaksh/templates/exam.html @@ -104,9 +104,6 @@ - -- cgit