From e6a8284696d2092a398ebd3567e835cb790d792f Mon Sep 17 00:00:00 2001 From: adityacp Date: Tue, 28 Nov 2017 12:36:24 +0530 Subject: Change template to display error messages and change design and urls redirection --- yaksh/templates/yaksh/complete.html | 2 +- yaksh/templates/yaksh/question.html | 6 +++--- yaksh/templates/yaksh/quit.html | 2 +- yaksh/templates/yaksh/show_video.html | 5 +++-- 4 files changed, 8 insertions(+), 7 deletions(-) diff --git a/yaksh/templates/yaksh/complete.html b/yaksh/templates/yaksh/complete.html index c99b8f0..6c0d878 100644 --- a/yaksh/templates/yaksh/complete.html +++ b/yaksh/templates/yaksh/complete.html @@ -5,7 +5,7 @@ {% csrf_token %} {% if paper.questions_answered.all or paper.questions_unanswered.all %}
- + diff --git a/yaksh/templates/yaksh/question.html b/yaksh/templates/yaksh/question.html index 186a40b..674fafc 100644 --- a/yaksh/templates/yaksh/question.html +++ b/yaksh/templates/yaksh/question.html @@ -106,15 +106,15 @@ module_id = "{{module.id}}" {% get_unit_status course module unit user as status %} {% if unit.quiz.id == paper.question_paper.quiz.id %} - + {% endif %} {% if unit.learning_type == "quiz" %} - + {{ unit.quiz.description }} {% else %} - + {{ unit.lesson.name }} {% endif %} diff --git a/yaksh/templates/yaksh/quit.html b/yaksh/templates/yaksh/quit.html index b168724..b38c21e 100644 --- a/yaksh/templates/yaksh/quit.html +++ b/yaksh/templates/yaksh/quit.html @@ -3,7 +3,7 @@ {% block pagetitle %} Yaksh Online Test {% endblock %} {% block content %}

Submission Status

Submission Status

Question
- + diff --git a/yaksh/templates/yaksh/show_video.html b/yaksh/templates/yaksh/show_video.html index 8191f49..ff79808 100644 --- a/yaksh/templates/yaksh/show_video.html +++ b/yaksh/templates/yaksh/show_video.html @@ -23,7 +23,7 @@ {{ unit.quiz.description }} {% else %} - + {{ unit.lesson.name }} {% endif %} @@ -42,7 +42,8 @@ {% block main %} {% if msg %}
-
{{msg}}
+
+
{{msg}}
{% endif %}
-- cgit
Submission Status

Submission Status

Question