From 542d867e16ea89bfb5eccc44313278011f0463dd Mon Sep 17 00:00:00 2001 From: prathamesh Date: Thu, 17 Nov 2016 12:32:31 +0530 Subject: Improved Student Interface Student test interface improved. Made time-left component fixed at the top Reset button for code question shifted inside the editor panel. Reduced the empty space at the top and few improvement in look and feel. --- yaksh/templates/base.html | 4 +- yaksh/templates/yaksh/complete.html | 43 ++++++++++-------- yaksh/templates/yaksh/login.html | 27 +++++++++--- yaksh/templates/yaksh/question.html | 78 ++++++++++++++++++++------------- yaksh/templates/yaksh/quit.html | 46 ++++++++++--------- yaksh/templates/yaksh/quizzes_user.html | 2 + 6 files changed, 124 insertions(+), 76 deletions(-) (limited to 'yaksh/templates') diff --git a/yaksh/templates/base.html b/yaksh/templates/base.html index 00b0867..1609121 100644 --- a/yaksh/templates/base.html +++ b/yaksh/templates/base.html @@ -17,10 +17,12 @@ + + diff --git a/yaksh/templates/yaksh/complete.html b/yaksh/templates/yaksh/complete.html index 4fe9aba..01d5bf6 100644 --- a/yaksh/templates/yaksh/complete.html +++ b/yaksh/templates/yaksh/complete.html @@ -4,25 +4,30 @@ {% block content %} {% csrf_token %} {% if paper.questions_answered.all or paper.questions_unanswered.all %} -
- - - - -
Submitted Questions - {% if paper.questions_answered.all %} - {{ paper.questions_answered.all|join:", " }} - {% else %} -

No Questions have been Submitted

- {% endif %} -
Unattempted Questions - {% if paper.questions_unanswered.all %} - {{ paper.questions_unanswered.all|join:", " }} - {% else %} -

All Questions have been Submitted

- {% endif %} -
+
+ + + + + + + + + {% for question in paper.questions.all %} + + {% if question in paper.questions_answered.all %} + + + + {% else %} + + + + {% endif %} + + + {% endfor %} +
Submission Status
Question State
{{ question.summary }} Attempted
{{ question }} Not Attempted
{% endif %}

Good bye!

{{message}}

diff --git a/yaksh/templates/yaksh/login.html b/yaksh/templates/yaksh/login.html index e5cfcc4..6de848d 100644 --- a/yaksh/templates/yaksh/login.html +++ b/yaksh/templates/yaksh/login.html @@ -1,18 +1,19 @@ {% extends "base.html" %} -{% block pagetitle %}YAKSH Online Test {% endblock %} +{% block pagetitle %}YAKSH {% endblock %} {% block content %} - +
+
{% csrf_token %}
{{ form.as_table }}
-      - Forgot Password? - New User? Sign-Up + + Forgot Password? + New User? Sign-Up

Login with

@@ -21,5 +22,21 @@
+
+
+

Online Test Interface for conducting online programming quiz. +

+

+
+
{% endblock content %} diff --git a/yaksh/templates/yaksh/question.html b/yaksh/templates/yaksh/question.html index a8de448..1666eba 100644 --- a/yaksh/templates/yaksh/question.html +++ b/yaksh/templates/yaksh/question.html @@ -1,8 +1,20 @@ {% extends "base.html" %} {% load custom_filters %} -{% block pagetitle %} Hi {{ paper.user.first_name.title}} {{ paper.user.last_name.title}} Answer question {% endblock %} +{% block nav %} + +{% endblock %} {% block css %} @@ -89,11 +101,9 @@ function call_skip(url) {% block onload %} onload="updateTime();" {% endblock %} {% block content %} - You have {{ paper.questions_left }} question(s) left in {{ paper.question_paper.quiz.description }} -

-

Question Navigator

-
-
-
+
{% if question.type == "mcq" or question.type == "mcc"%}
   @@ -179,19 +203,12 @@ function call_skip(url)
   {% else %}    - - {% endif %} {% if paper.unanswered.all|length != 1 %} {% endif %}
-
- {% csrf_token %} - -
-