summaryrefslogtreecommitdiff
path: root/yaksh
diff options
context:
space:
mode:
authorKing2019-02-27 15:46:36 +0530
committerGitHub2019-02-27 15:46:36 +0530
commite55ef58c5c131afd836ac32ed6a1034aa668fccf (patch)
treef515044a26de538ead483d3769a96d4958f5b20e /yaksh
parentf08a4cf7f5049eabfdc2ffff50e3084e69528aa2 (diff)
parent2880788d3743dd5c45b363ee80a2a4d4742d1253 (diff)
downloadonline_test-e55ef58c5c131afd836ac32ed6a1034aa668fccf.tar.gz
online_test-e55ef58c5c131afd836ac32ed6a1034aa668fccf.tar.bz2
online_test-e55ef58c5c131afd836ac32ed6a1034aa668fccf.zip
Merge pull request #565 from ankitjavalkar/fix-review-module-page
Make changes to View Module screen and Quiz screen interface for students
Diffstat (limited to 'yaksh')
-rw-r--r--yaksh/static/yaksh/css/yakshcustom.css4
-rw-r--r--yaksh/templates/exam.html34
-rw-r--r--yaksh/templates/yaksh/complete.html16
-rw-r--r--yaksh/templates/yaksh/question.html16
-rw-r--r--yaksh/templates/yaksh/quit.html16
-rw-r--r--yaksh/templates/yaksh/show_video.html31
6 files changed, 41 insertions, 76 deletions
diff --git a/yaksh/static/yaksh/css/yakshcustom.css b/yaksh/static/yaksh/css/yakshcustom.css
index e498970..1fbb50d 100644
--- a/yaksh/static/yaksh/css/yakshcustom.css
+++ b/yaksh/static/yaksh/css/yakshcustom.css
@@ -135,6 +135,10 @@ html {
min-height: 100%;
}
+.question-nav-bg {
+ background-color:#B4B8BA;
+}
+
.yaksh {
font-size: 15px;
font-family: 'Dosis', sans-serif;
diff --git a/yaksh/templates/exam.html b/yaksh/templates/exam.html
index 29ad167..d439c64 100644
--- a/yaksh/templates/exam.html
+++ b/yaksh/templates/exam.html
@@ -8,7 +8,7 @@
<span class="navbar-toggler-icon" style="color: white"></span>
</button>
<a class="navbar-brand">
- <img src="{{ URL_ROOT }}/static/yaksh/images/yaksh_banner.png" alt="YAKSH" style="margin-top: -3px; margin-left:-15px">
+ <img src="{{ URL_ROOT }}/static/yaksh/images/yaksh_banner.png" alt="YAKSH">
</img>
</a>
<div class="collapse navbar-collapse col-md-6" id="myNavbar">
@@ -24,8 +24,7 @@
{% endif %}
<span class="fa fa-power-off"></span></button></span>
</form>
-
- </div>
+ </div>
</div><!-- /.navbar -->
</div><!-- /.container -->
</nav><!-- /.navbar -->
@@ -57,15 +56,15 @@
{% endif %}
{% endif %}
{% if qid in paper.get_questions_answered %}
- <a class=" btn btn-outline-success " style="background-color:#B4B8BA;" href="#" data-toggle="tooltip"
+ <a class="btn btn-outline-light question-nav-bg" href="#" data-toggle="tooltip"
onclick="call_skip('{{ URL_ROOT }}/exam/{{ question.id }}/skip/{{ qid.id }}/{{ paper.attempt_number }}/{{ module.id }}/{{ paper.question_paper.id }}/{{course.id}}/')"
title="{{ qid.description }}">{{ forloop.counter }}</a>
{% endif %}
{% else %}
{% if qid.id == question.id %}
- <a class="active btn btn-outline-success " data-toggle="tooltip" title="{{ qid.description|striptags }}">{{ forloop.counter }}</a>
+ <a class="active btn btn-outline-success" data-toggle="tooltip" title="{{ qid.description|striptags }}">{{ forloop.counter }}</a>
{% elif qid in paper.get_questions_answered %}
- <a class=" btn btn-outline-success " style="background-color:#B4B8BA;" href="#" data-toggle="tooltip"
+ <a class="btn btn-outline-success question-nav-bg" href="#" data-toggle="tooltip"
onclick="call_skip('{{ URL_ROOT }}/exam/{{ question.id }}/skip/{{ qid.id }}/{{ paper.attempt_number }}/{{ module.id }}/{{ paper.question_paper.id }}/{{course.id}}/')"
title="{{ qid.description }}">{{ forloop.counter }}</a>
{% else %}
@@ -112,26 +111,3 @@
</div>
{% endblock %}
-
-{% block footer %}
- <!--footer-->
- <footer class="container-fluid yakshsidebarfooter text-center">
- <div class="row justify-content-center">
- <div class="col-sm-5 ">
- {% if user %}
- {% block info %}
- <b>{{user.get_full_name|title}}</b> with Roll no. <b>{{user.profile.roll_number}}</b> is logged in as <b>{{user.username}}</b>
- {% endblock %}
- {% endif %}
- </div>
- <div class="col-sm-2">
- |
- </div>
- <div class="col-sm-4 text-left">
- <b>Any Queries?</b> Email : info@fossee.in
- </div>
- </div>
- </footer>
- <!--footer end-->
-{% endblock %}
-
diff --git a/yaksh/templates/yaksh/complete.html b/yaksh/templates/yaksh/complete.html
index cced41c..a3324a6 100644
--- a/yaksh/templates/yaksh/complete.html
+++ b/yaksh/templates/yaksh/complete.html
@@ -1,11 +1,15 @@
{% extends "base.html" %}
-{% block pagetitle %}
-<div class="yakshnav fixed-top" style=" padding-top: 0.5%;padding-bottom: 0.5%;">
- <a class="navbar-brand" href="{{ URL_ROOT }}/exam/" >
- <img src="{{ URL_ROOT }}/static/yaksh/images/yaksh_banner.png" alt="YAKSH">
- </img>
- </a>
+{% block nav %}
+<div class="container-fluid yakshnav">
+ <nav class="navbar fixed-top navbar-expand-lg yakshheading yakshnav">
+ <div class="container">
+ <a class="navbar-brand">
+ <img src="{{ URL_ROOT }}/static/yaksh/images/yaksh_banner.png" alt="YAKSH">
+ </img>
+ </a>
+ </div><!-- /.container -->
+ </nav><!-- /.navbar -->
</div>
{% endblock %}
diff --git a/yaksh/templates/yaksh/question.html b/yaksh/templates/yaksh/question.html
index cb6d90a..f13de1a 100644
--- a/yaksh/templates/yaksh/question.html
+++ b/yaksh/templates/yaksh/question.html
@@ -122,8 +122,8 @@ question_type = "{{ question.type }}"
<div class="card ">
<div class="col-md-12 bg-light">
<div class="row align-items-center ">
- <div class="col yakshheading"> {{ question.summary }} </div>
- <div class="col-md-4 ml-auto yakshwell text-center">
+ <div class="col-md-6 yakshheading"> {{ question.summary }} </div>
+ <div class="col-md-3 ml-auto yakshwell text-center">
{% if question.type == "mcq" %}
SINGLE CORRECT CHOICE
{% elif question.type == "mcc" %}
@@ -147,8 +147,16 @@ question_type = "{{ question.type }}"
ARRANGE THE OPTIONS IN CORRECT ORDER
{% endif %}
</div>
- <div class="col-md-1 ml-auto text-center">
- <span class="badge badge-warning">{{ question.points }}</span><br>Marks
+ <div class="col-md-2 ml-auto text-center">
+ <div class="row">
+ <div class="col-md-6">
+ <h5>
+ <span class="badge badge-warning">
+ {{ question.points }} Marks
+ </span>
+ </h5>
+ </div>
+ </div>
</div>
</div>
</div>
diff --git a/yaksh/templates/yaksh/quit.html b/yaksh/templates/yaksh/quit.html
index 3d22746..dd06ff9 100644
--- a/yaksh/templates/yaksh/quit.html
+++ b/yaksh/templates/yaksh/quit.html
@@ -1,11 +1,15 @@
{% extends "base.html" %}
-{% block pagetitle %}
-<div class="yakshnav fixed-top" style=" padding-top: 0.5%;padding-bottom: 0.5%;">
- <a class="navbar-brand" href="{{ URL_ROOT }}/exam/" >
- <img src="{{ URL_ROOT }}/static/yaksh/images/yaksh_banner.png" alt="YAKSH">
- </img>
- </a>
+{% block nav %}
+<div class="container-fluid yakshnav">
+ <nav class="navbar fixed-top navbar-expand-lg yakshheading yakshnav">
+ <div class="container">
+ <a class="navbar-brand">
+ <img src="{{ URL_ROOT }}/static/yaksh/images/yaksh_banner.png" alt="YAKSH">
+ </img>
+ </a>
+ </div><!-- /.container -->
+ </nav><!-- /.navbar -->
</div>
{% endblock %}
diff --git a/yaksh/templates/yaksh/show_video.html b/yaksh/templates/yaksh/show_video.html
index 9f92bc3..9d24b44 100644
--- a/yaksh/templates/yaksh/show_video.html
+++ b/yaksh/templates/yaksh/show_video.html
@@ -94,37 +94,6 @@
{% if learning_module.html_data%}
{% endif %}
</div>
- <div class="yakshwell col-md-3">
- <div class="bg-light">
- {% if learning_module.get_learning_units %}
- <center><h4>Units in this module</h4></center><hr>
- {% for unit in learning_module.get_learning_units %}
- <div class="row justify-content-center">
- <span class="col-sm-2 yakshgreen">
- {% if unit.type == "quiz" %}
- {% if unit.quiz.is_exercise %}
- <span class="fa fa-pencil"></span>
- {% else %}
- <span class="fa fa-puzzle-piece"></span>
- {% endif %}
- {% else %}
- <span class="fa fa-book"></span>
- {% endif %}
- </span>
- <span class="col-sm-7">
- {% if unit.type == "quiz" %}
- {{unit.quiz.description}}
- {% else %}
- {{unit.lesson.name}}
- {% endif %}
- </span>
- </div>
- {% endfor %}
- {% else %}
- <center><h3>No Lessons/Quizzes Found</h3></center>
- {% endif %}
- </div>
- </div>
</div>
<div class="yakshwell text-center">
{% if first_unit %}