From 0143710e78ae01bae78a3b760fc8410bc86a3b2b Mon Sep 17 00:00:00 2001 From: prathamesh Date: Fri, 11 Jul 2014 14:14:19 +0530 Subject: Moved templates and static inside the app. --- testapp/templates/404.html | 5 - testapp/templates/500.html | 7 - testapp/templates/base.html | 46 ------ testapp/templates/exam/add_question.html | 41 ----- testapp/templates/exam/add_questionpaper.html | 28 ---- testapp/templates/exam/add_quiz.html | 25 --- testapp/templates/exam/ajax_marks.html | 4 - testapp/templates/exam/ajax_questions.html | 31 ---- .../templates/exam/automatic_questionpaper.html | 88 ---------- testapp/templates/exam/complete.html | 12 -- testapp/templates/exam/design_questionpaper.html | 184 --------------------- testapp/templates/exam/edit_question.html | 54 ------ testapp/templates/exam/edit_quiz.html | 39 ----- testapp/templates/exam/editquestionpaper.html | 21 --- testapp/templates/exam/grade_user.html | 94 ----------- testapp/templates/exam/intro.html | 34 ---- testapp/templates/exam/login.html | 22 --- testapp/templates/exam/manual_questionpaper.html | 81 --------- testapp/templates/exam/monitor.html | 69 -------- testapp/templates/exam/question.html | 138 ---------------- testapp/templates/exam/quit.html | 14 -- testapp/templates/exam/quizlist.html | 24 --- testapp/templates/exam/quizzes_user.html | 81 --------- testapp/templates/exam/register.html | 20 --- testapp/templates/exam/results_user.html | 28 ---- testapp/templates/exam/show_quiz.html | 33 ---- testapp/templates/exam/showquestionpapers.html | 23 --- testapp/templates/exam/showquestions.html | 21 --- testapp/templates/exam/showusers.html | 26 --- testapp/templates/exam/user_data.html | 80 --------- testapp/templates/manage.html | 88 ---------- testapp/templates/user.html | 58 ------- 32 files changed, 1519 deletions(-) delete mode 100644 testapp/templates/404.html delete mode 100644 testapp/templates/500.html delete mode 100644 testapp/templates/base.html delete mode 100644 testapp/templates/exam/add_question.html delete mode 100644 testapp/templates/exam/add_questionpaper.html delete mode 100644 testapp/templates/exam/add_quiz.html delete mode 100644 testapp/templates/exam/ajax_marks.html delete mode 100644 testapp/templates/exam/ajax_questions.html delete mode 100644 testapp/templates/exam/automatic_questionpaper.html delete mode 100644 testapp/templates/exam/complete.html delete mode 100644 testapp/templates/exam/design_questionpaper.html delete mode 100644 testapp/templates/exam/edit_question.html delete mode 100644 testapp/templates/exam/edit_quiz.html delete mode 100644 testapp/templates/exam/editquestionpaper.html delete mode 100644 testapp/templates/exam/grade_user.html delete mode 100644 testapp/templates/exam/intro.html delete mode 100644 testapp/templates/exam/login.html delete mode 100644 testapp/templates/exam/manual_questionpaper.html delete mode 100644 testapp/templates/exam/monitor.html delete mode 100644 testapp/templates/exam/question.html delete mode 100644 testapp/templates/exam/quit.html delete mode 100644 testapp/templates/exam/quizlist.html delete mode 100644 testapp/templates/exam/quizzes_user.html delete mode 100644 testapp/templates/exam/register.html delete mode 100644 testapp/templates/exam/results_user.html delete mode 100644 testapp/templates/exam/show_quiz.html delete mode 100644 testapp/templates/exam/showquestionpapers.html delete mode 100644 testapp/templates/exam/showquestions.html delete mode 100644 testapp/templates/exam/showusers.html delete mode 100644 testapp/templates/exam/user_data.html delete mode 100644 testapp/templates/manage.html delete mode 100644 testapp/templates/user.html (limited to 'testapp/templates') diff --git a/testapp/templates/404.html b/testapp/templates/404.html deleted file mode 100644 index 7d33dd3..0000000 --- a/testapp/templates/404.html +++ /dev/null @@ -1,5 +0,0 @@ -{% extends "base.html" %} - -{% block content %} -The requested page does not exist. -{% endblock %} diff --git a/testapp/templates/500.html b/testapp/templates/500.html deleted file mode 100644 index d02721f..0000000 --- a/testapp/templates/500.html +++ /dev/null @@ -1,7 +0,0 @@ -{% extends "base.html" %} - -{% block content %} -Internal Server error.
-This event will be reported.
-Sorry for the inconvinience. -{% endblock %} diff --git a/testapp/templates/base.html b/testapp/templates/base.html deleted file mode 100644 index 3dfbe10..0000000 --- a/testapp/templates/base.html +++ /dev/null @@ -1,46 +0,0 @@ - - - - - - {% block title %} - {% endblock %} - - - {% block meta %} - - - - {% endblock %} - - - {% block css %} - {% endblock %} - - {% block script %} - {% endblock %} - - - -
-
- -
-
-

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


- {% block content %} - {% endblock %} -
-
-
- -
- - - - diff --git a/testapp/templates/exam/add_question.html b/testapp/templates/exam/add_question.html deleted file mode 100644 index b0b22b1..0000000 --- a/testapp/templates/exam/add_question.html +++ /dev/null @@ -1,41 +0,0 @@ -{% extends "manage.html" %} - - -{% block subtitle %}Add Question{% endblock %} - -{% block css %} - - -{% endblock %} - -{% block script %} - - - - -{% 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}} -
Test: {{ form.test }}{{form.test.errors}} -
Snippet: {{ form.snippet }}{{ form.snippet.errors }}
Tags: {{ form.tags }} -
Options: {{ form.options }} {{form.options.errors}} - - -
-
-
-
-{% endblock %} - diff --git a/testapp/templates/exam/add_questionpaper.html b/testapp/templates/exam/add_questionpaper.html deleted file mode 100644 index 4cce8a9..0000000 --- a/testapp/templates/exam/add_questionpaper.html +++ /dev/null @@ -1,28 +0,0 @@ -{% extends "manage.html" %} - - -{% block subtitle %}Design Question Paper{% endblock %} - -{% block css %} - - -{% endblock %} -{% block script %} - - - -{% endblock %} - -{% block manage %} - -
-{% csrf_token %} -Select mode to design Question Paper: - -
- -{% endblock %} diff --git a/testapp/templates/exam/add_quiz.html b/testapp/templates/exam/add_quiz.html deleted file mode 100644 index c2533de..0000000 --- a/testapp/templates/exam/add_quiz.html +++ /dev/null @@ -1,25 +0,0 @@ -{% 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/templates/exam/ajax_marks.html b/testapp/templates/exam/ajax_marks.html deleted file mode 100644 index 716bb88..0000000 --- a/testapp/templates/exam/ajax_marks.html +++ /dev/null @@ -1,4 +0,0 @@ - -{% for mark in marks %} - -{% endfor %} diff --git a/testapp/templates/exam/ajax_questions.html b/testapp/templates/exam/ajax_questions.html deleted file mode 100644 index e343f9b..0000000 --- a/testapp/templates/exam/ajax_questions.html +++ /dev/null @@ -1,31 +0,0 @@ -
- {% if questions %} - - Select All - {% endif %} - -
- -
- -
diff --git a/testapp/templates/exam/automatic_questionpaper.html b/testapp/templates/exam/automatic_questionpaper.html deleted file mode 100644 index fcd3db5..0000000 --- a/testapp/templates/exam/automatic_questionpaper.html +++ /dev/null @@ -1,88 +0,0 @@ -{% extends "manage.html" %} - - -{% block subtitle %}Design Question Paper{% endblock %} - -{% block css %} - - - -{% endblock %} -{% block script %} - - - -{% 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/templates/exam/complete.html b/testapp/templates/exam/complete.html deleted file mode 100644 index 1d5df3c..0000000 --- a/testapp/templates/exam/complete.html +++ /dev/null @@ -1,12 +0,0 @@ -{% extends "base.html" %} - -{% block title %}Good bye!{% endblock %} - -{% block pagetitle %}Online Test{% endblock %} -{% block content %} -{% csrf_token %} -

Good bye!

-

{{message}}

-

You may now close the browser.


-
Login Again
-{% endblock content %} diff --git a/testapp/templates/exam/design_questionpaper.html b/testapp/templates/exam/design_questionpaper.html deleted file mode 100644 index 8994148..0000000 --- a/testapp/templates/exam/design_questionpaper.html +++ /dev/null @@ -1,184 +0,0 @@ -{% 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/templates/exam/edit_question.html b/testapp/templates/exam/edit_question.html deleted file mode 100644 index b28cc3e..0000000 --- a/testapp/templates/exam/edit_question.html +++ /dev/null @@ -1,54 +0,0 @@ -{% extends "manage.html" %} - -{% block subtitle %}Edit Question{% endblock %} - -{% block css %} - - -{% endblock %} -{% block script %} - - - -{% endblock %} - -{% block onload %} onload = 'javascript:textareaformat();' {% endblock %} - -{% block manage %} -
- {% csrf_token %} -

Click on the Question links to edit the question.

- - - - {% for form in forms %} - -
{{form.summary.value}} - - - {% endfor %} -
-{% for i in data %} - -{% endfor %} - -
-
- -{% endblock %} diff --git a/testapp/templates/exam/edit_quiz.html b/testapp/templates/exam/edit_quiz.html deleted file mode 100644 index 6445907..0000000 --- a/testapp/templates/exam/edit_quiz.html +++ /dev/null @@ -1,39 +0,0 @@ -{% 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/templates/exam/editquestionpaper.html b/testapp/templates/exam/editquestionpaper.html deleted file mode 100644 index 819ff06..0000000 --- a/testapp/templates/exam/editquestionpaper.html +++ /dev/null @@ -1,21 +0,0 @@ -{% 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/templates/exam/grade_user.html b/testapp/templates/exam/grade_user.html deleted file mode 100644 index ae9274e..0000000 --- a/testapp/templates/exam/grade_user.html +++ /dev/null @@ -1,94 +0,0 @@ -{% 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/templates/exam/intro.html b/testapp/templates/exam/intro.html deleted file mode 100644 index ec1888a..0000000 --- a/testapp/templates/exam/intro.html +++ /dev/null @@ -1,34 +0,0 @@ -{% 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/templates/exam/login.html b/testapp/templates/exam/login.html deleted file mode 100644 index 078e7a7..0000000 --- a/testapp/templates/exam/login.html +++ /dev/null @@ -1,22 +0,0 @@ -{% 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/templates/exam/manual_questionpaper.html b/testapp/templates/exam/manual_questionpaper.html deleted file mode 100644 index 1a1f95c..0000000 --- a/testapp/templates/exam/manual_questionpaper.html +++ /dev/null @@ -1,81 +0,0 @@ -{% 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/templates/exam/monitor.html b/testapp/templates/exam/monitor.html deleted file mode 100644 index ecdb852..0000000 --- a/testapp/templates/exam/monitor.html +++ /dev/null @@ -1,69 +0,0 @@ -{% 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/templates/exam/question.html b/testapp/templates/exam/question.html deleted file mode 100644 index a3e8629..0000000 --- a/testapp/templates/exam/question.html +++ /dev/null @@ -1,138 +0,0 @@ -{% extends "base.html" %} - - - -{% block title %} Answer question {% endblock %} - -{% block css %} - - -{% endblock %} - -{% block script %} - - - -{% 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 %} - - {% if success_msg %} - - {% endif %} -

-
- {% csrf_token %} - {% if question.type == "mcq" %} - {% for option in question.options.strip.splitlines %} - {{option}}
- {% endfor %} - {% 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 "%} -
   - {% else %} -    - {% endif %} - -
- - -{% endblock content %} diff --git a/testapp/templates/exam/quit.html b/testapp/templates/exam/quit.html deleted file mode 100644 index fee11ed..0000000 --- a/testapp/templates/exam/quit.html +++ /dev/null @@ -1,14 +0,0 @@ -{% extends "base.html" %} - -{% block title %}Quit exam {% endblock %} -{% block pagetitle %}Online Test {% endblock %} -{% block content %} - -

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/templates/exam/quizlist.html b/testapp/templates/exam/quizlist.html deleted file mode 100644 index 9b1fd73..0000000 --- a/testapp/templates/exam/quizlist.html +++ /dev/null @@ -1,24 +0,0 @@ -{% 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/templates/exam/quizzes_user.html b/testapp/templates/exam/quizzes_user.html deleted file mode 100644 index 914b6b4..0000000 --- a/testapp/templates/exam/quizzes_user.html +++ /dev/null @@ -1,81 +0,0 @@ -{% 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/templates/exam/register.html b/testapp/templates/exam/register.html deleted file mode 100644 index 5ff79cc..0000000 --- a/testapp/templates/exam/register.html +++ /dev/null @@ -1,20 +0,0 @@ -{% 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/templates/exam/results_user.html b/testapp/templates/exam/results_user.html deleted file mode 100644 index 2a2a309..0000000 --- a/testapp/templates/exam/results_user.html +++ /dev/null @@ -1,28 +0,0 @@ -{% 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/templates/exam/show_quiz.html b/testapp/templates/exam/show_quiz.html deleted file mode 100644 index cf3f552..0000000 --- a/testapp/templates/exam/show_quiz.html +++ /dev/null @@ -1,33 +0,0 @@ -{% 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/templates/exam/showquestionpapers.html b/testapp/templates/exam/showquestionpapers.html deleted file mode 100644 index e511472..0000000 --- a/testapp/templates/exam/showquestionpapers.html +++ /dev/null @@ -1,23 +0,0 @@ -{% 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/templates/exam/showquestions.html b/testapp/templates/exam/showquestions.html deleted file mode 100644 index 62b40e4..0000000 --- a/testapp/templates/exam/showquestions.html +++ /dev/null @@ -1,21 +0,0 @@ -{% extends "manage.html" %} - - -{% block subtitle %}List of Questions {% endblock %} - -{% block script %} - -{% endblock %} - -{% block manage %} -
-{% csrf_token %} -{% for i in questions %} -  {{ i }}
-{% endfor %} -
-   -   - -
-{% endblock %} diff --git a/testapp/templates/exam/showusers.html b/testapp/templates/exam/showusers.html deleted file mode 100644 index 01ecc37..0000000 --- a/testapp/templates/exam/showusers.html +++ /dev/null @@ -1,26 +0,0 @@ -{% 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/templates/exam/user_data.html b/testapp/templates/exam/user_data.html deleted file mode 100644 index 61a3a97..0000000 --- a/testapp/templates/exam/user_data.html +++ /dev/null @@ -1,80 +0,0 @@ -{% 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 %} diff --git a/testapp/templates/manage.html b/testapp/templates/manage.html deleted file mode 100644 index 1db8a78..0000000 --- a/testapp/templates/manage.html +++ /dev/null @@ -1,88 +0,0 @@ - - - - {% 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 %} -
-
-
-
-

© FOSSEE group, IIT Bombay

-
-
- - - diff --git a/testapp/templates/user.html b/testapp/templates/user.html deleted file mode 100644 index 22a9fac..0000000 --- a/testapp/templates/user.html +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - {% block title %} - {% endblock %} - - - {% block meta %} - - - - {% endblock %} - - - {% block css %} - {% endblock %} - - {% block script %} - {% endblock %} - - - -
-
-
-

Online Test

- - -
-
-
-
-
- -
-
- {% block manage %} - {% endblock %} -
-
-
- -
- - - -- cgit