From f5568068a34e23208fb5b2a33dd806f10aab9806 Mon Sep 17 00:00:00 2001 From: ankitjavalkar Date: Wed, 19 Aug 2015 16:51:39 +0530 Subject: Change app name to yaksh --- testapp/yaksh_app/templates/404.html | 5 + testapp/yaksh_app/templates/500.html | 7 + testapp/yaksh_app/templates/base.html | 46 +++++ testapp/yaksh_app/templates/manage.html | 88 +++++++++ testapp/yaksh_app/templates/user.html | 58 ++++++ .../templates/yaksh_app/add_question.html | 57 ++++++ .../templates/yaksh_app/add_questionpaper.html | 33 ++++ .../yaksh_app/templates/yaksh_app/add_quiz.html | 25 +++ .../yaksh_app/templates/yaksh_app/ajax_marks.html | 4 + .../templates/yaksh_app/ajax_questions.html | 31 +++ .../yaksh_app/automatic_questionpaper.html | 93 +++++++++ .../yaksh_app/templates/yaksh_app/complete.html | 33 ++++ .../templates/yaksh_app/design_questionpaper.html | 182 ++++++++++++++++++ .../templates/yaksh_app/edit_question.html | 67 +++++++ .../yaksh_app/templates/yaksh_app/edit_quiz.html | 39 ++++ .../templates/yaksh_app/editquestionpaper.html | 21 +++ .../yaksh_app/templates/yaksh_app/grade_user.html | 94 +++++++++ testapp/yaksh_app/templates/yaksh_app/intro.html | 34 ++++ testapp/yaksh_app/templates/yaksh_app/login.html | 22 +++ .../templates/yaksh_app/manual_questionpaper.html | 80 ++++++++ testapp/yaksh_app/templates/yaksh_app/monitor.html | 69 +++++++ .../yaksh_app/templates/yaksh_app/question.html | 210 +++++++++++++++++++++ testapp/yaksh_app/templates/yaksh_app/quit.html | 35 ++++ .../yaksh_app/templates/yaksh_app/quizlist.html | 24 +++ .../templates/yaksh_app/quizzes_user.html | 81 ++++++++ .../yaksh_app/templates/yaksh_app/register.html | 20 ++ .../templates/yaksh_app/results_user.html | 28 +++ .../yaksh_app/templates/yaksh_app/show_quiz.html | 33 ++++ .../templates/yaksh_app/showquestionpapers.html | 23 +++ .../templates/yaksh_app/showquestions.html | 48 +++++ .../yaksh_app/templates/yaksh_app/showusers.html | 26 +++ .../yaksh_app/templates/yaksh_app/user_data.html | 80 ++++++++ 32 files changed, 1696 insertions(+) create mode 100644 testapp/yaksh_app/templates/404.html create mode 100644 testapp/yaksh_app/templates/500.html create mode 100644 testapp/yaksh_app/templates/base.html create mode 100644 testapp/yaksh_app/templates/manage.html create mode 100644 testapp/yaksh_app/templates/user.html create mode 100644 testapp/yaksh_app/templates/yaksh_app/add_question.html create mode 100644 testapp/yaksh_app/templates/yaksh_app/add_questionpaper.html create mode 100644 testapp/yaksh_app/templates/yaksh_app/add_quiz.html create mode 100644 testapp/yaksh_app/templates/yaksh_app/ajax_marks.html create mode 100644 testapp/yaksh_app/templates/yaksh_app/ajax_questions.html create mode 100644 testapp/yaksh_app/templates/yaksh_app/automatic_questionpaper.html create mode 100644 testapp/yaksh_app/templates/yaksh_app/complete.html create mode 100644 testapp/yaksh_app/templates/yaksh_app/design_questionpaper.html create mode 100644 testapp/yaksh_app/templates/yaksh_app/edit_question.html create mode 100644 testapp/yaksh_app/templates/yaksh_app/edit_quiz.html create mode 100644 testapp/yaksh_app/templates/yaksh_app/editquestionpaper.html create mode 100644 testapp/yaksh_app/templates/yaksh_app/grade_user.html create mode 100644 testapp/yaksh_app/templates/yaksh_app/intro.html create mode 100644 testapp/yaksh_app/templates/yaksh_app/login.html create mode 100644 testapp/yaksh_app/templates/yaksh_app/manual_questionpaper.html create mode 100644 testapp/yaksh_app/templates/yaksh_app/monitor.html create mode 100644 testapp/yaksh_app/templates/yaksh_app/question.html create mode 100644 testapp/yaksh_app/templates/yaksh_app/quit.html create mode 100644 testapp/yaksh_app/templates/yaksh_app/quizlist.html create mode 100644 testapp/yaksh_app/templates/yaksh_app/quizzes_user.html create mode 100644 testapp/yaksh_app/templates/yaksh_app/register.html create mode 100644 testapp/yaksh_app/templates/yaksh_app/results_user.html create mode 100644 testapp/yaksh_app/templates/yaksh_app/show_quiz.html create mode 100644 testapp/yaksh_app/templates/yaksh_app/showquestionpapers.html create mode 100644 testapp/yaksh_app/templates/yaksh_app/showquestions.html create mode 100644 testapp/yaksh_app/templates/yaksh_app/showusers.html create mode 100644 testapp/yaksh_app/templates/yaksh_app/user_data.html (limited to 'testapp/yaksh_app/templates') diff --git a/testapp/yaksh_app/templates/404.html b/testapp/yaksh_app/templates/404.html new file mode 100644 index 0000000..7d33dd3 --- /dev/null +++ b/testapp/yaksh_app/templates/404.html @@ -0,0 +1,5 @@ +{% extends "base.html" %} + +{% block content %} +The requested page does not exist. +{% endblock %} diff --git a/testapp/yaksh_app/templates/500.html b/testapp/yaksh_app/templates/500.html new file mode 100644 index 0000000..d02721f --- /dev/null +++ b/testapp/yaksh_app/templates/500.html @@ -0,0 +1,7 @@ +{% extends "base.html" %} + +{% block content %} +Internal Server error.
+This event will be reported.
+Sorry for the inconvinience. +{% endblock %} diff --git a/testapp/yaksh_app/templates/base.html b/testapp/yaksh_app/templates/base.html new file mode 100644 index 0000000..7b91978 --- /dev/null +++ b/testapp/yaksh_app/templates/base.html @@ -0,0 +1,46 @@ + + + + + + {% block title %} + {% endblock %} + + + {% block meta %} + + + + {% endblock %} + + + {% block css %} + {% endblock %} + + {% block script %} + {% endblock %} + + + +
+
+ +
+
+

{% block formtitle %} {% endblock formtitle %}


+ {% block content %} + {% endblock %} +
+
+
+ +
+ + + + diff --git a/testapp/yaksh_app/templates/manage.html b/testapp/yaksh_app/templates/manage.html new file mode 100644 index 0000000..a5b4cf3 --- /dev/null +++ b/testapp/yaksh_app/templates/manage.html @@ -0,0 +1,88 @@ + + + + {% block title %} + {% endblock %} + + + {% block meta %} + + + + {% endblock %} + + + + {% block css %} + {% endblock %} + + {% block script %} + {% endblock %} + + + +
+
+ +
+
+
+
+ +
+
+ {% block manage %} +

List of quizzes! Click on the given links to have a look at answer papers for a quiz.

+
+ + + + + + {% for paper, answer_papers, users_passed, users_failed in users_per_paper %} + + + + + + + {% endfor %} +
QuizTaken ByNo. of users PassedNo. of users Failed
+ {{ paper.quiz.description }} + + {{ answer_papers|length }} user(s) + + {{ users_passed }} + + {{ users_failed }} +
+
+
+

Moderator's Dashboard!

+
Click on the button given below to add a new quiz.
+ +
+{% endblock %} +
+
+
+ +
+ + + diff --git a/testapp/yaksh_app/templates/user.html b/testapp/yaksh_app/templates/user.html new file mode 100644 index 0000000..db2dc9e --- /dev/null +++ b/testapp/yaksh_app/templates/user.html @@ -0,0 +1,58 @@ + + + + + + {% block title %} + {% endblock %} + + + {% block meta %} + + + + {% endblock %} + + + {% block css %} + {% endblock %} + + {% block script %} + {% endblock %} + + + +
+
+
+

Online Test

+ + +
+
+
+
+
+ +
+
+ {% block manage %} + {% endblock %} +
+
+
+ +
+ + + diff --git a/testapp/yaksh_app/templates/yaksh_app/add_question.html b/testapp/yaksh_app/templates/yaksh_app/add_question.html new file mode 100644 index 0000000..bc0fd4c --- /dev/null +++ b/testapp/yaksh_app/templates/yaksh_app/add_question.html @@ -0,0 +1,57 @@ +{% extends "manage.html" %} + + +{% block subtitle %}Add Question{% endblock %} + +{% block css %} + + +{% endblock %} + +{% block script %} +<<<<<<< HEAD:testapp/exam/templates/exam/add_question.html + + +======= + + + + +>>>>>>> Change app name to yaksh:testapp/yaksh_app/templates/yaksh_app/add_question.html +{% endblock %} + +{% block onload %} onload='javascript:textareaformat();' {% endblock %} + +{% block manage %} +
+ {% csrf_token %} +
+ +
Summary: {{ form.summary }}{{ form.summary.errors }} +
Language: {{form.language}}{{form.language.errors}} +
Active: {{ form.active }}{{form.active.errors}}   Type:  {{ form.type }}{{form.type.errors}} +
Points:{{ form.points }}{{ form.points.errors }} +
Rendered:

+
Description: {{ form.description}} {{form.description.errors}} +
Snippet: {{ form.snippet }}{{ form.snippet.errors }}
Tags: {{ form.tags }} +
Options: {{ form.options }} {{form.options.errors}} +
Test: {{ form.test }} {{form.test.errors}} +
Reference Code Path: {{ form.ref_code_path }} {{form.ref_code_path.errors}} + + + {% if formset%} + {{ formset.management_form }} + {% for form in formset %} + {{ form }} + {% endfor %} + {% endif %} + +
+
+ +

+
+
+ +{% endblock %} + diff --git a/testapp/yaksh_app/templates/yaksh_app/add_questionpaper.html b/testapp/yaksh_app/templates/yaksh_app/add_questionpaper.html new file mode 100644 index 0000000..44b37ba --- /dev/null +++ b/testapp/yaksh_app/templates/yaksh_app/add_questionpaper.html @@ -0,0 +1,33 @@ +{% extends "manage.html" %} + + +{% block subtitle %}Design Question Paper{% endblock %} + +{% block css %} + + +{% endblock %} +{% block script %} +<<<<<<< HEAD:testapp/exam/templates/exam/add_questionpaper.html + + +======= + + + +>>>>>>> Change app name to yaksh:testapp/yaksh_app/templates/yaksh_app/add_questionpaper.html +{% endblock %} + +{% block manage %} + +
+{% csrf_token %} +Select mode to design Question Paper: + +
+ +{% endblock %} diff --git a/testapp/yaksh_app/templates/yaksh_app/add_quiz.html b/testapp/yaksh_app/templates/yaksh_app/add_quiz.html new file mode 100644 index 0000000..ded8e9b --- /dev/null +++ b/testapp/yaksh_app/templates/yaksh_app/add_quiz.html @@ -0,0 +1,25 @@ +{% extends "manage.html" %} + + +{% block subtitle %}Add Quiz{% endblock %} + +{% block css %} + +{% endblock %} +{% block script %} + +{% endblock %} +{% block onload %} onload="javascript:test();" {% endblock %} +{% block manage %} +
+ {% csrf_token %} +
+ + {{ form.as_table }} +
+
+ +
+
+
+{% endblock %} diff --git a/testapp/yaksh_app/templates/yaksh_app/ajax_marks.html b/testapp/yaksh_app/templates/yaksh_app/ajax_marks.html new file mode 100644 index 0000000..716bb88 --- /dev/null +++ b/testapp/yaksh_app/templates/yaksh_app/ajax_marks.html @@ -0,0 +1,4 @@ + +{% for mark in marks %} + +{% endfor %} diff --git a/testapp/yaksh_app/templates/yaksh_app/ajax_questions.html b/testapp/yaksh_app/templates/yaksh_app/ajax_questions.html new file mode 100644 index 0000000..e343f9b --- /dev/null +++ b/testapp/yaksh_app/templates/yaksh_app/ajax_questions.html @@ -0,0 +1,31 @@ +
+ {% if questions %} + + Select All + {% endif %} + +
+ +
+ +
diff --git a/testapp/yaksh_app/templates/yaksh_app/automatic_questionpaper.html b/testapp/yaksh_app/templates/yaksh_app/automatic_questionpaper.html new file mode 100644 index 0000000..8a82fa0 --- /dev/null +++ b/testapp/yaksh_app/templates/yaksh_app/automatic_questionpaper.html @@ -0,0 +1,93 @@ +{% extends "manage.html" %} + + +{% block subtitle %}Design Question Paper{% endblock %} + +{% block css %} + + + +{% endblock %} +{% block script %} +<<<<<<< HEAD:testapp/exam/templates/exam/automatic_questionpaper.html + + +======= + + + +>>>>>>> Change app name to yaksh:testapp/yaksh_app/templates/yaksh_app/automatic_questionpaper.html +{% endblock %} + +{% block manage %} + +
Automatic mode to design the Question Paper

+
+ {% csrf_token %} +
+ Tag Conditions: + + + + + + + + + +
+ +
+ +
Number of question:  
+ +
+
+

Below is the list of Questions fetched according to the given tag conditions

+
+
+ +
+ {% endfor %} +
Summary + Type + Points + Tags + {% for question in data.questions %} + +
{{ question.summary }} {{ question.type }} {{ question.points }} + {% for tag in question.tags.all %} + {{ tag }} + {% endfor %} +
+ {% if data.msg %}
{{ data.msg }}
{% endif %} +
+ + +{% endblock %} diff --git a/testapp/yaksh_app/templates/yaksh_app/complete.html b/testapp/yaksh_app/templates/yaksh_app/complete.html new file mode 100644 index 0000000..08abe76 --- /dev/null +++ b/testapp/yaksh_app/templates/yaksh_app/complete.html @@ -0,0 +1,33 @@ +{% extends "base.html" %} + +{% block title %}Good bye!{% endblock %} + +{% block pagetitle %}Online Test{% endblock %} +{% block content %} +{% csrf_token %} + {% if submitted or unattempted %} +
+ + + + +
Submitted Questions + {% if submitted %} + {{ submitted|join:", " }} + {% else %} +

No Questions have been Submitted

+ {% endif %} +
Unattempted Questions + {% if unattempted %} + {{ unattempted|join:", " }} + {% else %} +

All Questions have been Submitted

+ {% endif %} +
+ {% endif %} +

Good bye!

+

{{message}}

+

You may now close the browser.


+
Login Again
+{% endblock content %} diff --git a/testapp/yaksh_app/templates/yaksh_app/design_questionpaper.html b/testapp/yaksh_app/templates/yaksh_app/design_questionpaper.html new file mode 100644 index 0000000..4e24e09 --- /dev/null +++ b/testapp/yaksh_app/templates/yaksh_app/design_questionpaper.html @@ -0,0 +1,182 @@ +{% extends "manage.html" %} + +{% block subtitle %}Design Question Paper{% endblock %} + +{% block css %} + + + + + +{% endblock %} +{% block script %} + + + + + + +{% endblock %} + +{% block manage %} + +
Manual mode to design the {{lang}} Question Paper

+ + +
{% csrf_token %} +
+

Total Marks: 0

+
+
+ +
+
Please select Question type and Marks
+
+ {{ form.question_type }} +
+
+ {{ form.marks }} +
+
+
+
+
+

+ + +
+
+
+
+

Select questions to add:

+
+
+ Add to paper +
+
+
+
+

Fixed questions currently in paper:

+
+
+
+
+
+
+
+ Next > +
+ +
+ + +
+
+
+
+

Select questions to add to the pool:

+
+
+ Add to paper +
+
+
+
+

Pool of questions currently in paper:

+
+
+
+
+
+
+ +
+ Next > +
+
+ +
+
+
Almost finished creating your question paper
+

+ + +
+ +
+
+
+ +
+
+
+ + + + + + + + +{% endblock %} diff --git a/testapp/yaksh_app/templates/yaksh_app/edit_question.html b/testapp/yaksh_app/templates/yaksh_app/edit_question.html new file mode 100644 index 0000000..c95ce60 --- /dev/null +++ b/testapp/yaksh_app/templates/yaksh_app/edit_question.html @@ -0,0 +1,67 @@ +{% extends "manage.html" %} + +{% block subtitle %}Edit Question{% endblock %} + +{% block css %} + + +{% endblock %} +{% block script %} +<<<<<<< HEAD:testapp/exam/templates/exam/edit_question.html + + +======= + + + +>>>>>>> Change app name to yaksh:testapp/yaksh_app/templates/yaksh_app/edit_question.html +{% endblock %} + +{% block onload %} onload = 'javascript:textareaformat();' {% endblock %} + +{% block manage %} +
+ {% csrf_token %} +

Click on the Question links to edit the question.

+ + + + {% for question, test in data_list %} + +
{{question.summary.value}} + + + {% endfor %} +
+ + +{% for i in data %} + +{% endfor %} + +
+
+ +{% endblock %} diff --git a/testapp/yaksh_app/templates/yaksh_app/edit_quiz.html b/testapp/yaksh_app/templates/yaksh_app/edit_quiz.html new file mode 100644 index 0000000..c8a36e7 --- /dev/null +++ b/testapp/yaksh_app/templates/yaksh_app/edit_quiz.html @@ -0,0 +1,39 @@ +{% extends "manage.html" %} + + +{% block subtitle %}Edit Quiz(zes){% endblock %} + +{% block css %} + +{% endblock %} + +{% block script %} + +{% endblock %} + +{% block onload %} onload = 'javascript:form_load();' {% endblock %} + +{% block manage %} +
+ {% csrf_token %} +
+ + {% for form in forms %} +
Start Date: {{ form.start_date}} +
Duration: {{ form.duration }}
{{form.duration.help_text}} +
Active: {{ form.active }} +
Description: {{ form.description }} +
Passing Criteria: {{ form.pass_criteria }}
{{form.pass_criteria.help_text}} +
Language: {{ form.language }} +
Prerequisite: {{ form.prerequisite }} +
+ {% endfor %} +
+
+{% for i in data %} + +{% endfor %} +
+
+
+{% endblock %} diff --git a/testapp/yaksh_app/templates/yaksh_app/editquestionpaper.html b/testapp/yaksh_app/templates/yaksh_app/editquestionpaper.html new file mode 100644 index 0000000..90038b4 --- /dev/null +++ b/testapp/yaksh_app/templates/yaksh_app/editquestionpaper.html @@ -0,0 +1,21 @@ +{% extends "manage.html" %} + + +{% block subtitle %}Questions in "{{ papers.quiz.description }}"{% endblock %} + +{% block script %} + +{% endblock %} + +{% block manage %} +
+{% csrf_token %} + +{% for i in papers.questions %} +  {{ i.summary}}
+{% endfor %} +
+   + +
+{% endblock %} diff --git a/testapp/yaksh_app/templates/yaksh_app/grade_user.html b/testapp/yaksh_app/templates/yaksh_app/grade_user.html new file mode 100644 index 0000000..1447337 --- /dev/null +++ b/testapp/yaksh_app/templates/yaksh_app/grade_user.html @@ -0,0 +1,94 @@ +{% extends "manage.html" %} + +{% block title %} Grading papers for {{ data.user.get_full_name.title }} {% endblock title %} + +{% block subtitle %}Grading papers for {{ data.user.get_full_name.title }}{% endblock %} + +{% block css %} + +{% endblock %} + +{% block script %} + +{% endblock %} +{% block manage %} + +

+Name: {{ data.user.get_full_name.title }} +{% if data.profile %} +(roll number: {{ data.profile.roll_number }})
+{{ data.profile.position }}, +{{ data.profile.department }}, +{{ data.profile.institute }} +{% endif %} +

+ +{% if data.papers %} + +{% for paper in data.papers %} + +

Quiz: {{ paper.quiz.description }}

+ +

+Questions correctly answered: {{ paper.get_answered_str }}
+Total attempts at questions: {{ paper.answers.count }}
+Marks obtained: {{ paper.get_total_marks }}
+Start time: {{ paper.start_time }}
+

+ +{% if paper.answers.count %} +

Answers


+
+{% csrf_token %} +{% for question, answers in paper.get_question_answers.items %} +
+

+ Question: {{ question.id }}. {{ question.summary }} (Points: {{ question.points }}) + +Details

+
+ +
+
+ +{% if question.type == "mcq" %} +
+

Choices: +{% for option in question.options.strip.splitlines %} {{option}}, {% endfor %} +

+

Student answer: {{ answers.0 }}

+{% else %}{# non-mcq questions #} +
+{% for answer in answers %}################################################################################
+{{ answer.answer.strip }}
+# Autocheck: {{ answer.error }}
+{% endfor %}
+{% endif %} {# if question.type #} +{% with answers|last as answer %} +Marks:

+{% endwith %} +
+
+{% endfor %} {# for question, answers ... #} + + +

Teacher comments:

+ +
+
+ +
+{% endif %} {# if paper.answers.count #} + +{% endfor %} {# for paper in data.papers #} + +{% endif %} {# if data.papers #} + +{% endblock%} diff --git a/testapp/yaksh_app/templates/yaksh_app/intro.html b/testapp/yaksh_app/templates/yaksh_app/intro.html new file mode 100644 index 0000000..592937a --- /dev/null +++ b/testapp/yaksh_app/templates/yaksh_app/intro.html @@ -0,0 +1,34 @@ +{% extends "base.html" %} + +{% block title %}Instructions and Rules {% endblock %} +{% block pagetitle %}Online Test {% endblock %} +{% block formtitle %}Important instructions & rules {% endblock %} +{% block content %} + + + +

Welcome {{user.first_name.title}} {{user.last_name.title}}, to the programming quiz!

+

+ This examination system has been developed with the intention of making you + learn programming and be assessed in an interactive and fun manner. + You will be presented with a series of programming questions and problems that + you will answer online and get immediate feedback for. +

+

Here are some important instructions and rules that you should understand carefully.

+
    +
  • For any programming questions, you can submit solutions as many times as you want without a penalty. You may skip questions and solve them later. +
  • +
  • You may use your computer's Python/IPython shell or an editor to solve the problem and cut/paste the solution to the web interface. +
  • +
  • You are not allowed to use any internet resources, i.e. no google etc.
  • +
  • Do not copy or share the questions or answers with anyone until the exam is complete for everyone.
  • +
  • All your attempts at the questions are logged. Do not try to outsmart and break the testing system. If you do, we know who you are and we will expell you from the course. You have been warned. +
  • +
+

We hope you enjoy taking this exam !!!

+ +
+ {% csrf_token %} +
+
+{% endblock content %} diff --git a/testapp/yaksh_app/templates/yaksh_app/login.html b/testapp/yaksh_app/templates/yaksh_app/login.html new file mode 100644 index 0000000..341d7a7 --- /dev/null +++ b/testapp/yaksh_app/templates/yaksh_app/login.html @@ -0,0 +1,22 @@ +{% extends "base.html" %} + +{% block title %}Login{% endblock title %} +{% block pagetitle %} Online Test {% endblock %} +{% block formtitle %}Login{% endblock %} +{% block css %} + +{% endblock %} +{% block content %} + +
+ {% csrf_token %} + +
+ {{ form.as_table }} +
+
    
+
Forgot Password?

+
New User? Sign-Up
+
+ +{% endblock content %} diff --git a/testapp/yaksh_app/templates/yaksh_app/manual_questionpaper.html b/testapp/yaksh_app/templates/yaksh_app/manual_questionpaper.html new file mode 100644 index 0000000..66c83ed --- /dev/null +++ b/testapp/yaksh_app/templates/yaksh_app/manual_questionpaper.html @@ -0,0 +1,80 @@ +{% extends "manage.html" %} + + +{% block subtitle %}Design Question Paper{% endblock %} + +{% block css %} + + + +{% endblock %} +{% block script %} + + + +{% endblock %} + +{% block manage %} + +
Manual mode to design the Question Paper

+ +
+ {% csrf_token %} +
+ Tag Conditions: + + + + + +
+
+
+

Below is the list of Questions fetched according to the given tag conditions
+
+
+ +
+ {% endfor %} +
  + Summary + Type + Points + Tags + {% for question in data.questions %} +
{{ question.summary }} {{ question.type }} {{ question.points }} + {% for tag in question.tags.all %} + {{ tag }} + {% endfor %} +
+ {% if data.msg %}
{{ data.msg }}
{% endif %} +
+ + +{% endblock %} diff --git a/testapp/yaksh_app/templates/yaksh_app/monitor.html b/testapp/yaksh_app/templates/yaksh_app/monitor.html new file mode 100644 index 0000000..261dffd --- /dev/null +++ b/testapp/yaksh_app/templates/yaksh_app/monitor.html @@ -0,0 +1,69 @@ +{% extends "manage.html" %} + +{% block title %} Quiz results {% endblock title %} + +{% block meta %} {% endblock meta %} + +{% block css %} + +{% endblock %} +{% block subtitle %} + {% if not quizzes and not quiz %} + Quiz Results + {% endif %} + {% if quizzes %} + Available Quizzes + {% endif %} + {% if quiz %} + {{ quiz.description }} Results + {% endif %} +{% endblock %} +{% block manage %} + {% if not quizzes and not quiz %} +
No quizzes available.
+ {% endif %} + +{# ############################################################### #} +{# This is rendered when we are just viewing exam/monitor #} +{% if quizzes %} + +{% endif %} + +{# ############################################################### #} +{# This is rendered when we are just viewing exam/monitor/quiz_num #} +{% if quiz %} + +{% if papers %} +{#

Quiz: {{ quiz_name }}

#} +

Number of papers: {{ papers|length }}

+ + + + + + + + + + + {% for paper in papers %} + + + + + + + + + + {% endfor %} +
Name Username Roll number Institute Questions answered Marks obtained Attempts
{{ paper.user.get_full_name.title }} {{ paper.user.username }} {{ paper.profile.roll_number }} {{ paper.profile.institute }} {{ paper.get_answered_str }} {{ paper.marks_obtained }} {{ paper.answers.count }}
+{% else %} +

No answer papers so far.

+{% endif %} {# if papers #} +{% endif %} +{% endblock %} diff --git a/testapp/yaksh_app/templates/yaksh_app/question.html b/testapp/yaksh_app/templates/yaksh_app/question.html new file mode 100644 index 0000000..6a26527 --- /dev/null +++ b/testapp/yaksh_app/templates/yaksh_app/question.html @@ -0,0 +1,210 @@ +{% extends "base.html" %} + + + +{% block title %} Answer question {% endblock %} + +{% block css %} + + +{% endblock %} + +{% block script %} +<<<<<<< HEAD:testapp/exam/templates/exam/question.html + + + +======= + + + + +>>>>>>> Change app name to yaksh:testapp/yaksh_app/templates/yaksh_app/question.html + + +{% endblock script %} + + + +{% block onload %} onload="update_time();setSnippetHeight()" {% endblock %} + +{% block pagetitle %} + +
+
You have {{ paper.questions_left }} question(s) left in {{ quiz_name }}
+
+
+
+ +{% endblock %} + +{% block content %} +
+
+
+

Online Test

+ +
+ {% csrf_token %} + + +
+
+
+
+
+ +
+ +

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


+ {{ question.description|safe }} + {% if error_message %} +
+ {% for e in error_message.splitlines %} + {{ e|join:"" }} +
+ {% endfor%} +
{% endif %} + +

+ +
+ {% csrf_token %} + + + {% if question.type == "mcq" %} + {% for option in question.options.strip.splitlines %} + {{option}}
+ {% endfor %} + {% endif %} + {% if question.type == "upload" %} +

Upload assignment file for the said question

+ +


+ {% endif %} + {% if question.type == "mcc" %} + {% for option in question.options.strip.splitlines %} + {{ option }} +
+ {% endfor %} + {% endif %} + {% if question.type == "code" %} + + + + +
+ + + + {% endif %} + + {% if question.type == "mcq" or question.type == "mcc "%} +
   + {% elif question.type == "upload" %} +
   + {% else %} +    + {% endif %} + {% if to_attempt|length != 1 %} + + {% endif %} +
+ + + + + +{% endblock content %} diff --git a/testapp/yaksh_app/templates/yaksh_app/quit.html b/testapp/yaksh_app/templates/yaksh_app/quit.html new file mode 100644 index 0000000..91bce64 --- /dev/null +++ b/testapp/yaksh_app/templates/yaksh_app/quit.html @@ -0,0 +1,35 @@ +{% extends "base.html" %} + +{% block title %}Quit exam {% endblock %} +{% block pagetitle %}Online Test {% endblock %} +{% block content %} + {% if submitted or unattempted %} +
+ + + + +
Submitted Questions + {% if submitted %} + {{ submitted|join:", " }} + {% else %} +

No Questions have been Submitted

+ {% endif %} +
Unattempted Questions + {% if unattempted %} + {{ unattempted|join:", " }} + {% else %} +

All Questions have been Submitted

+ {% endif %} +
+ {% endif %} + +

Your current answers are saved.

+

Are you sure you wish to quit the exam?

+

Be sure, as you won't be able to restart this exam.

+
+ {% csrf_token %} +
 
+
+{% endblock content %} diff --git a/testapp/yaksh_app/templates/yaksh_app/quizlist.html b/testapp/yaksh_app/templates/yaksh_app/quizlist.html new file mode 100644 index 0000000..9b1fd73 --- /dev/null +++ b/testapp/yaksh_app/templates/yaksh_app/quizlist.html @@ -0,0 +1,24 @@ +{% extends "base.html" %} + +{% block title %} Quiz List {% endblock title %} + +{% block formtitle %} Quiz List {% endblock %} + +{% block pagetitle %} Online Test {% endblock %} + +{% block content %} +{% if not quizzes and not quiz %} +
No quizzes available.
+{% endif %} + +{% if quizzes %} +
+{% csrf_token %} + +{% for quiz in quizzes %} +{{ quiz.description }}
+{% endfor %} +
+{% endif %} + +{% endblock %} diff --git a/testapp/yaksh_app/templates/yaksh_app/quizzes_user.html b/testapp/yaksh_app/templates/yaksh_app/quizzes_user.html new file mode 100644 index 0000000..19618ec --- /dev/null +++ b/testapp/yaksh_app/templates/yaksh_app/quizzes_user.html @@ -0,0 +1,81 @@ +{% extends "user.html" %} + + +{% block subtitle %}Hello {{ user.first_name }}, welcome to your dashboard !{% endblock %} + +{% block css %} + +{% endblock %} + +{% block script %} + + +{% endblock %} + + +{% block manage %} + {% if cannot_attempt %} +

You have not passed the prerequisite & hence you cannot take the quiz.

+ {% endif %} +

List of quizzes availbale for you

+ {% if not quizzes %} +
No active quizzes for you
+ {% endif %} + + + + {% for paper in quizzes %} + + + + + {% endfor %} +
QuizPre requisite quiz
+ {{ paper.quiz.description }}
+
+ {% if paper.quiz.prerequisite %} + You have to pass {{ paper.quiz.prerequisite.description }} for taking {{ paper.quiz.description }} + {% else %} + No pre requisites for {{ paper.quiz.description }} + {% endif %} +
+
+

List of quizzes taken by you so far

+ {% if quizzes_taken %} + + + + + + + {% for paper in quizzes_taken %} + + + + + + + + {% endfor %} +
QuizResultMraks ObtainedTotal MarksPercentage
+ {{ paper.question_paper.quiz.description }} + + {% if paper.passed %} +

Pass

+ {% else %} +

Fail

+ {% endif %} +
+ {{ paper.marks_obtained }} + + {{ paper.question_paper.total_marks }} + + {{ paper.percent }} +
+ {% else %} +

You have not taken any quiz yet !!

+ {% endif %} + + +{% endblock %} + diff --git a/testapp/yaksh_app/templates/yaksh_app/register.html b/testapp/yaksh_app/templates/yaksh_app/register.html new file mode 100644 index 0000000..5ff79cc --- /dev/null +++ b/testapp/yaksh_app/templates/yaksh_app/register.html @@ -0,0 +1,20 @@ +{% extends "base.html" %} + +{% block title %}Registration form {% endblock %} + +{% block pagetitle %}Online Test {% endblock %} +{% block formtitle %}Please fill in the following details {% endblock %} + +{% block content %} + + + +
+ {% csrf_token %} +
+ {{ form.as_table }} +
+
  
+
+ +{% endblock content %} diff --git a/testapp/yaksh_app/templates/yaksh_app/results_user.html b/testapp/yaksh_app/templates/yaksh_app/results_user.html new file mode 100644 index 0000000..fa8284e --- /dev/null +++ b/testapp/yaksh_app/templates/yaksh_app/results_user.html @@ -0,0 +1,28 @@ +{% extends "user.html" %} + + +{% block subtitle %}Results{% endblock %} + +{% block css %} + +{% endblock %} + +{% block manage %} +
+ {% csrf_token %} +
+ + {% for i in paper %} +
Quiz Description + Obtained Marks + Maximum Marks + Percentage + {% for paper in papers %} +
{{ i }} + {% endfor %} +
+ {% endfor %} +
+
+{% endblock %} + diff --git a/testapp/yaksh_app/templates/yaksh_app/show_quiz.html b/testapp/yaksh_app/templates/yaksh_app/show_quiz.html new file mode 100644 index 0000000..a3c1c44 --- /dev/null +++ b/testapp/yaksh_app/templates/yaksh_app/show_quiz.html @@ -0,0 +1,33 @@ +{% extends "manage.html" %} + +{% block title %} Quiz List {% endblock title %} + +{% block script %} + +{% endblock %} + +{% block subtitle %} Quiz List {% endblock %} +{% block manage %} +{% if not quizzes and not quiz %} +
No quizzes available.
+   +{% endif %} + +{# ############################################################### #} +{# This is rendered when we are just viewing exam/monitor #} +{% if quizzes %} +
+{% csrf_token %} + +{% for quiz in quizzes %} +  {{ quiz.description }}
+{% endfor %} + +

+   +   + +
+{% endif %} + +{% endblock %} diff --git a/testapp/yaksh_app/templates/yaksh_app/showquestionpapers.html b/testapp/yaksh_app/templates/yaksh_app/showquestionpapers.html new file mode 100644 index 0000000..2a04717 --- /dev/null +++ b/testapp/yaksh_app/templates/yaksh_app/showquestionpapers.html @@ -0,0 +1,23 @@ +{% extends "manage.html" %} + + +{% block subtitle %}List of Question Papers {% endblock %} + +{% block script %} + +{% endblock %} + +{% block manage %} +{% if papers %} +
+{% csrf_token %} +{% for i in papers %} +  {{ i.quiz.description }}
+{% endfor %} +
+ +
+{% else %} +

No Question Papers available

+{% endif %} +{% endblock %} diff --git a/testapp/yaksh_app/templates/yaksh_app/showquestions.html b/testapp/yaksh_app/templates/yaksh_app/showquestions.html new file mode 100644 index 0000000..f0b53bc --- /dev/null +++ b/testapp/yaksh_app/templates/yaksh_app/showquestions.html @@ -0,0 +1,48 @@ +{% extends "manage.html" %} + + +{% block subtitle %}List of Questions {% endblock %} + +{% block script %} +<<<<<<< HEAD:testapp/exam/templates/exam/showquestions.html + + + +======= + +>>>>>>> Change app name to yaksh:testapp/yaksh_app/templates/yaksh_app/showquestions.html +{% endblock %} + +{% block manage %} +
+{% csrf_token %} +
+
Filters
+
+ {{ form.question_type }} +
+
+ {{ form.language }} +
+
+ {{ form.marks }} +
+
+
+
+
+ +
+
+
+
+{% for i in questions %} +  {{ i }}
+{% endfor %} +
+
+   +   + +
+{% endblock %} diff --git a/testapp/yaksh_app/templates/yaksh_app/showusers.html b/testapp/yaksh_app/templates/yaksh_app/showusers.html new file mode 100644 index 0000000..7b2bb6d --- /dev/null +++ b/testapp/yaksh_app/templates/yaksh_app/showusers.html @@ -0,0 +1,26 @@ +{% extends "manage.html" %} + + +{% block subtitle %} +List of Users +{% endblock %} + +{% block css %} + +{% endblock css %} + + +{% block manage %} +
+
Username +First Name +Last Name +Quiz Description +{% for papers in question %} +
{{ papers.user.username }}
+
{{ papers.user.first_name.title }} + {{ papers.user.last_name.title }} + {{ papers.question_paper.quiz.description }} +{% endfor %} +
+{% endblock %} diff --git a/testapp/yaksh_app/templates/yaksh_app/user_data.html b/testapp/yaksh_app/templates/yaksh_app/user_data.html new file mode 100644 index 0000000..61a3a97 --- /dev/null +++ b/testapp/yaksh_app/templates/yaksh_app/user_data.html @@ -0,0 +1,80 @@ +{% extends "manage.html" %} + +{% block title %} Data for user {{ data.user.get_full_name.title }} {% endblock title %} + +{% block manage %} + +{% block subtitle %}Data for user {{ data.user.get_full_name.title }}{% endblock %} +
+

+Name: {{ data.user.get_full_name.title }}
+Username: {{ data.user.username }}
+{% if data.profile %} +Roll number: {{ data.profile.roll_number }}
+Position: {{ data.profile.position }}
+Department: {{ data.profile.department }}
+Institute: {{ data.profile.institute }}
+{% endif %} +Email: {{ data.user.email }}
+Date joined: {{ data.user.date_joined }}
+Last login: {{ data.user.last_login }} +

+ +{% if data.papers %} +

+ Grade/correct paper +

+ +{% for paper in data.papers %} + +

Quiz: {{ paper.quiz.description }}

+ +

+Questions correctly answered: {{ paper.get_answered_str }}
+Total attempts at questions: {{ paper.answers.count }}
+Marks obtained: {{ paper.get_total_marks }}
+Start time: {{ paper.start_time }}
+User IP address: {{ paper.user_ip }} +

+ +{% if paper.answers.count %} +

Answers

+{% for question, answers in paper.get_question_answers.items %} +

Question: {{ question.id }}. {{ question.summary }} (Points: {{ question.points }})

+{% if question.type == "mcq" %} +

Choices: +{% for option in question.options.strip.splitlines %} {{option}}, {% endfor %} +

+

Student answer: {{ answers.0 }}

+{% else %}{# non-mcq questions #} +
 
+{% for answer in answers %}################################################################################
+{{ answer.answer.strip }}
+# Autocheck: {{ answer.error }}
+{% endfor %}
+{% endif %} +{% with answers|last as answer %} +

Marks: {{answer.marks}}

+{% endwith %} +{% endfor %} {# for question, answers ... #} +

Teacher comments:

+{{ paper.comments|default:"None" }} +{% endif %} {# if paper.answers.count #} + +{% endfor %} {# for paper in data.papers #} + +{% endif %} {# if data.papers #} +
+
+ + Grade/correct paper +
+{% if data.papers.count > 1 %} +Monitor quiz +{% else %} +{% with data.papers.0 as paper %} +Monitor quiz +{% endwith %} +{% endif %} + +{% endblock %} -- cgit