diff options
author | adityacp | 2017-11-28 12:36:24 +0530 |
---|---|---|
committer | adityacp | 2017-11-28 12:36:24 +0530 |
commit | e6a8284696d2092a398ebd3567e835cb790d792f (patch) | |
tree | 5d44f6def2ea1e40e15ef0bab5c87caaf4fa3a29 /yaksh/templates | |
parent | 9ea1d9e02f9395815669f3ab5f8c2e5cae768247 (diff) | |
download | online_test-e6a8284696d2092a398ebd3567e835cb790d792f.tar.gz online_test-e6a8284696d2092a398ebd3567e835cb790d792f.tar.bz2 online_test-e6a8284696d2092a398ebd3567e835cb790d792f.zip |
Change template to display error messages and change design and urls redirection
Diffstat (limited to 'yaksh/templates')
-rw-r--r-- | yaksh/templates/yaksh/complete.html | 2 | ||||
-rw-r--r-- | yaksh/templates/yaksh/question.html | 6 | ||||
-rw-r--r-- | yaksh/templates/yaksh/quit.html | 2 | ||||
-rw-r--r-- | 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 %} <center><table class="table table-bordered" > - <caption> <center><h2>Submission Status</h2> </center></caption> + <caption> <center><h3>Submission Status</h3> </center></caption> <thead> <tr> <th> Question</th> 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 %} - <span class="glyphicon glyphicon-pencil" data-toggle="tooltip" title="Current Unit"></span> + <span class="glyphicon glyphicon-pencil" data-toggle="tooltip" title="Currently on"></span> {% endif %} {% if unit.learning_type == "quiz" %} - <a href="{{ URL_ROOT }}/exam/start/{{unit.quiz.questionpaper_set.get.id}}/{{learning_module.id}}/{{course.id}}"> + <a href="{{ URL_ROOT }}/exam/start/{{unit.quiz.questionpaper_set.get.id}}/{{module.id}}/{{course.id}}"> {{ unit.quiz.description }} </a> {% else %} - <a href="{{ URL_ROOT }}/exam/show_video/{{unit.lesson.id}}/{{learning_module.id}}/{{course.id}}"> + <a href="{{ URL_ROOT }}/exam/show_lesson/{{unit.lesson.id}}/{{module.id}}/{{course.id}}"> {{ unit.lesson.name }} </a> {% 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 %} <center><table class="table table-bordered" > - <caption> Submission Status </caption> + <caption> <center><h3>Submission Status</h3> </center> </caption> <thead> <tr> <th> Question</th> 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 }} </a> {% else %} - <a href="{{ URL_ROOT }}/exam/show_video/{{unit.lesson.id}}/{{learning_module.id}}/{{course.id}}"> + <a href="{{ URL_ROOT }}/exam/show_lesson/{{unit.lesson.id}}/{{learning_module.id}}/{{course.id}}"> {{ unit.lesson.name }} </a> {% endif %} @@ -42,7 +42,8 @@ {% block main %} {% if msg %} <center> -<div class="alert alert-warning">{{msg}}</div> +<div class="col-md-12 col-md-offset-1 main"> +<div class="alert alert-warning">{{msg}}</div></div> </center> {% endif %} <div class="col-md-12 col-md-offset-1 main"> |