-
- {{ course }}
+
+ {{ course }}
|
{% get_course_details course as course_details %}
{% if course_details %}
-
+
+
Quiz |
Taken By |
No. of users Passed |
No. of users Failed |
+
{% for quiz, users_no, passed, failed in course_details %}
- {{ quiz.description }}
+ {{ quiz.description }}
|
{{users_no}} user(s)
@@ -54,17 +58,18 @@
|
{% endfor %}
+
-
+
Add New Course
-
+
Create Demo Course
-
- What's This
+
+ What's This
@@ -75,9 +80,11 @@
- You can also edit the Demo quiz.
+
{% if msg %}
- {{ msg }}
+ {{ msg }}
{% endif %}
+
{% if trial_paper %}
@@ -85,7 +92,7 @@
Select all
-
+
-
+
{% endif %}
+
+
{% endblock %}
-{% if user %}
- {% block info %}
- {{user.get_full_name|title}}({{user.profile.roll_number}}) Logged in as {{user.username}}
- {% endblock %}
-{% endif %}
+
diff --git a/yaksh/templates/yaksh/monitor.html b/yaksh/templates/yaksh/monitor.html
index e40293b..1f85938 100644
--- a/yaksh/templates/yaksh/monitor.html
+++ b/yaksh/templates/yaksh/monitor.html
@@ -28,136 +28,151 @@ $(document).ready(function()
{% endblock %}
{% block content %}
+
+
+ {# ############################################################### #}
+ {# This is rendered when we are just viewing exam/monitor #}
-{# ############################################################### #}
-{# This is rendered when we are just viewing exam/monitor #}
+ {% if course_details %}
+
+
+
+ Courses |
+ Quizzes |
+
-{% if course_details %}
-
-
- Courses |
- Quizzes |
-
+ {% for course in course_details %}
+
+ |
- {% for course in course_details %}
-
- |
-
- {% if course.get_quizzes %}
-
- {% for quiz in course.get_quizzes %}
-
- {{quiz.description}}
-
- {% endfor %}
- |
- {% else %}
- No quiz |
- {% endif %}
-
- {% endfor %}
-
-{% endif %}
-
-{# ############################################################### #}
-{# This is rendered when we are just viewing exam/monitor/quiz_num #}
-{% if msg != "Monitor" %}
-{% if quiz %}
-{% if papers %}
-Course Name: {{ course.name }}
-Quiz Name: {{ quiz.description }}
-Number of papers: {{ papers|length }}
-{% completed papers as completed_papers %}
- {# template tag used to get the count of completed papers #}
- Papers completed: {{ completed_papers }}
-
-{% inprogress papers as inprogress_papers %}
- {# template tag used to get the count of inprogress papers #}
- Papers in progress: {{ inprogress_papers }}
-
-Question Statisitics
-
-
-
-
-
- Name |
- Username |
- Roll number |
- Institute |
- Questions answered |
- Marks obtained |
- Attempts |
- Time Remaining |
- Status |
-
-
-
- {% for paper in latest_attempts %}
-
- {{ paper.user.get_full_name.title }} |
- {{ paper.user.username }} |
- {{ paper.user.profile.roll_number }} |
- {{ paper.user.profile.institute }} |
- {{ paper.get_answered_str }} |
- {{ paper.marks_obtained }} |
- {{ paper.answers.count }} |
- {{ paper.time_left }} |
- {{ paper.status }} |
+ {% if course.get_quizzes %}
+
+ {% for quiz in course.get_quizzes %}
+
+ {{quiz.description}}
+
+ {% endfor %}
+ |
+ {% else %}
+ No quiz |
+ {% endif %}
+
+ {% endfor %}
+
-
- {% endfor %}
-
-
-{% else %}
- No answer papers found for {{ quiz.description }}
-{% endif %} {# if papers #}
-{% else %}
- No Quiz Found
-{% endif %}
-{% endif %}
-
-
-
-
+ {% endif %}
-
-
-
-
{% endblock %}
diff --git a/yaksh/templates/yaksh/preview_questionpaper.html b/yaksh/templates/yaksh/preview_questionpaper.html
index 123218f..7293351 100644
--- a/yaksh/templates/yaksh/preview_questionpaper.html
+++ b/yaksh/templates/yaksh/preview_questionpaper.html
@@ -3,30 +3,31 @@
{% block pagetitle %} Quiz: {{ paper.quiz.description }} {% endblock pagetitle %}
{% block content %}
-
-
+
+
+
Maximum Mark(s): {{ paper.total_marks }}
Total Time: {{ paper.quiz.duration }} minutes
-
- Instructions
-
+
+ Instructions
+
{{ paper.quiz.instructions|safe }}
{% for question in questions %}
-
-
+
+
{{forloop.counter}}. {{ question.summary }}
Mark(s): {{ question.points }}
-
+
Question: {{ question.description|safe }}
Answer:
{% if question.type == "code" %}
- {{ question.snippet }}
+ {{ question.snippet }}
{% endif %}
{% if question.type == "mcq" or question.type == "mcc" %}
Choices:
@@ -39,4 +40,5 @@
{% endfor %}
+
{% endblock %}
diff --git a/yaksh/templates/yaksh/profile_updated.html b/yaksh/templates/yaksh/profile_updated.html
index 2a2c7c5..2247004 100644
--- a/yaksh/templates/yaksh/profile_updated.html
+++ b/yaksh/templates/yaksh/profile_updated.html
@@ -1,4 +1,12 @@
{% extends "base.html" %}
+{% block pagetitle %}
+
+{% endblock %}
{% block title %} Profile {% endblock %}
@@ -8,6 +16,14 @@
{% endblock script %}
{% block content %}
- Your Profile is changed {{ user.first_name }}
- Redirecting...
+
+
+
+ Your Profile is changed {{ user.first_name }}
+ Redirecting...
+
+
+
+
+
{% endblock content %}
diff --git a/yaksh/templates/yaksh/question.html b/yaksh/templates/yaksh/question.html
index ebfe066..30797b9 100644
--- a/yaksh/templates/yaksh/question.html
+++ b/yaksh/templates/yaksh/question.html
@@ -1,9 +1,8 @@
{% extends "exam.html" %}
{% load custom_filters %}
-{% block pagetitle %} {{ paper.question_paper.quiz.description }} {% endblock pagetitle %}
+
{% block css %}
-
@@ -114,6 +113,9 @@ question_type = "{{ question.type }}"
{% block onload %} onload="updateTime();" {% endblock %}
+
{% block main %}
|