From 1ddc29e1cb703557ab43d14318c279fce8fc609e Mon Sep 17 00:00:00 2001 From: adityacp Date: Fri, 19 Feb 2016 16:19:14 +0530 Subject: Frontend design changes remove older change Remove further changes interface changes interface changes small views.py change change in code evaluator code evaluator changes python code evaluator change exception changes in code evaluator and test cases for python Update test_python_evaluation.py changed variable name in test case Views.py conflict resolve --- yaksh/templates/base.html | 2 +- yaksh/templates/yaksh/add_question.html | 1 - yaksh/templates/yaksh/question.html | 113 ++++++++++++++++---------------- 3 files changed, 59 insertions(+), 57 deletions(-) (limited to 'yaksh/templates') diff --git a/yaksh/templates/base.html b/yaksh/templates/base.html index 5284a77..d3e4f91 100644 --- a/yaksh/templates/base.html +++ b/yaksh/templates/base.html @@ -37,7 +37,7 @@ diff --git a/yaksh/templates/yaksh/add_question.html b/yaksh/templates/yaksh/add_question.html index b896081..61b146c 100644 --- a/yaksh/templates/yaksh/add_question.html +++ b/yaksh/templates/yaksh/add_question.html @@ -47,4 +47,3 @@ {% endblock %} - diff --git a/yaksh/templates/yaksh/question.html b/yaksh/templates/yaksh/question.html index a0b74fa..0d1daee 100644 --- a/yaksh/templates/yaksh/question.html +++ b/yaksh/templates/yaksh/question.html @@ -45,6 +45,7 @@ function updateClock(){ var ss = ('0' + t.seconds).slice(-2); if(t.total<0){ + document.forms["code"].submit(); clearInterval(timeinterval); return null; @@ -89,58 +90,58 @@ function call_skip(url) form.action = url form.submit(); } - + {% if question.type == 'code' and success == 'True'%} + {% if to_attempt|length != 0 %} + window.setTimeout(function() + { + {% for qid, num in questions.items %} + location.href="{{ URL_ROOT }}/exam/{{ qid.id }}/{{ paper.attempt_number }}/{{ paper.question_paper.id }}/" + {% endfor %} + }, 1000); + {% else %} + window.setTimeout(function() + { + location.href="{{ URL_ROOT }}/exam/{{ question.id }}/check/{{ paper.attempt_number }}/{{ paper.question_paper.id }}/" + }, 1000); + {% endif %} + {% endif %} -{% endblock script %} - +{% endblock script %} {% block onload %} onload="updateTime();setSnippetHeight()" {% endblock %} -{% block pagetitle %} - -
-
You have {{ paper.questions_left }} question(s) left in {{ quiz_name }}
-
-
-
- -{% endblock %} - {% block content %}

Online Test

-
- {% csrf_token %} - - -
+
  • Hi {{user.first_name.title}} {{user.last_name.title}}
  • +
    +
    +
    You have {{ paper.questions_left }} question(s) left in {{ quiz_name }}
    -
    +
    @@ -149,22 +150,22 @@ function call_skip(url)

    {{ question.summary }} (Marks : {{ question.points }})


    {{ question.description|safe }}
    Language: {{ question.language }}
    -
    -{% if error_message %} -
    - {% for e in error_message.splitlines %} - {{ e|join:"" }} -
    - {% endfor%} -
    -{% endif %} - + {% if question.type == "code" %} +

    Output:


    + {% if error_message %} +
    + + {% else %} + + {% endif %} +
    + {% endif %} +

    -
    - {% csrf_token %} - + {% csrf_token %} + {% if question.type == "mcq" %} {% for option in question.options.strip.splitlines %} @@ -183,10 +184,9 @@ function call_skip(url) {% endfor %} {% endif %} {% if question.type == "code" %} - - - - +

    Program:

    + +
    {% endif %} - + {% if question.type == "mcq" or question.type == "mcc "%}
       {% elif question.type == "upload" %} @@ -206,7 +206,7 @@ function call_skip(url) {% endif %}
    - + - +
    + {% csrf_token %} + +
    {% endblock content %} -- cgit From 7691c6f9331d414e214ea6a0e9a8154bb3d07a27 Mon Sep 17 00:00:00 2001 From: adityacp Date: Fri, 11 Mar 2016 16:08:57 +0530 Subject: small login page change --- yaksh/templates/yaksh/login.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'yaksh/templates') diff --git a/yaksh/templates/yaksh/login.html b/yaksh/templates/yaksh/login.html index dfeac1e..d679748 100644 --- a/yaksh/templates/yaksh/login.html +++ b/yaksh/templates/yaksh/login.html @@ -14,7 +14,7 @@
    {{ form.as_table }}
    -
        
    +
        

    Forgot Password?

    New User? Sign-Up
    -- cgit