From 861d2cc5e36835f60bace61a919e73b4bd27274b Mon Sep 17 00:00:00 2001 From: parth Date: Fri, 9 Dec 2011 04:02:19 +0530 Subject: Moved all the apps to testapp folder --- templates/404.html | 5 --- templates/500.html | 7 ---- templates/base.html | 25 ------------ templates/exam/complete.html | 12 ------ templates/exam/grade_user.html | 83 -------------------------------------- templates/exam/intro.html | 53 ------------------------ templates/exam/login.html | 20 ---------- templates/exam/monitor.html | 67 ------------------------------- templates/exam/question.html | 91 ------------------------------------------ templates/exam/quit.html | 14 ------- templates/exam/register.html | 17 -------- templates/exam/user_data.html | 84 -------------------------------------- 12 files changed, 478 deletions(-) delete mode 100644 templates/404.html delete mode 100644 templates/500.html delete mode 100644 templates/base.html delete mode 100644 templates/exam/complete.html delete mode 100644 templates/exam/grade_user.html delete mode 100644 templates/exam/intro.html delete mode 100644 templates/exam/login.html delete mode 100644 templates/exam/monitor.html delete mode 100644 templates/exam/question.html delete mode 100644 templates/exam/quit.html delete mode 100644 templates/exam/register.html delete mode 100644 templates/exam/user_data.html (limited to 'templates') diff --git a/templates/404.html b/templates/404.html deleted file mode 100644 index 7d33dd3..0000000 --- a/templates/404.html +++ /dev/null @@ -1,5 +0,0 @@ -{% extends "base.html" %} - -{% block content %} -The requested page does not exist. -{% endblock %} diff --git a/templates/500.html b/templates/500.html deleted file mode 100644 index d02721f..0000000 --- a/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/templates/base.html b/templates/base.html deleted file mode 100644 index c2bbabb..0000000 --- a/templates/base.html +++ /dev/null @@ -1,25 +0,0 @@ - - - - - -{% block title %} -{% endblock %} - -{% block meta %} -{% endblock %} - -{% block css %} -{% endblock %} -{% block script %} -{% endblock %} - - - -
-{% block content %} -{% endblock %} -
- - diff --git a/templates/exam/complete.html b/templates/exam/complete.html deleted file mode 100644 index 4c3f3d5..0000000 --- a/templates/exam/complete.html +++ /dev/null @@ -1,12 +0,0 @@ -{% extends "base.html" %} - -{% block title %}Good bye!{% endblock %} - -{% block content %} -

Good bye!

- -

{{message}}

-
-

You may now close the browser.

- -{% endblock content %} diff --git a/templates/exam/grade_user.html b/templates/exam/grade_user.html deleted file mode 100644 index 75ed2e0..0000000 --- a/templates/exam/grade_user.html +++ /dev/null @@ -1,83 +0,0 @@ -{% extends "base.html" %} - -{% block title %} Grading papers for {{ data.user.get_full_name.title }} {% endblock title %} - -{% block content %} - -

Grading papers for {{ data.user.get_full_name.title }}

- -

-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 }})

-{% 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 #} - -{% if data.papers.count > 1 %} - - Monitor quiz -{% else %} -{% with data.papers.0 as paper %} - - Monitor quiz -{% endwith %} -{% endif %} -
-Admin -{% endblock content %} diff --git a/templates/exam/intro.html b/templates/exam/intro.html deleted file mode 100644 index 1d3e5de..0000000 --- a/templates/exam/intro.html +++ /dev/null @@ -1,53 +0,0 @@ -{% extends "base.html" %} - -{% block title %}Instructions and Rules {% endblock %} - -{% block content %} -

Important rules and instructions

- -

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. -

- - - -

We hope you enjoy taking this exam.

- -
-{% csrf_token %} - -
- -{% endblock content %} \ No newline at end of file diff --git a/templates/exam/login.html b/templates/exam/login.html deleted file mode 100644 index 8e6352e..0000000 --- a/templates/exam/login.html +++ /dev/null @@ -1,20 +0,0 @@ -{% extends "base.html" %} - -{% block title %}Login{% endblock title %} - -{% block content %} -

Welcome to the Examination. -Please login to proceed.

- -
-{% csrf_token %} - - -{{ form.as_table }} -
- - -
- -New User Registration -{% endblock content %} \ No newline at end of file diff --git a/templates/exam/monitor.html b/templates/exam/monitor.html deleted file mode 100644 index fb6cb58..0000000 --- a/templates/exam/monitor.html +++ /dev/null @@ -1,67 +0,0 @@ -{% extends "base.html" %} - -{% block title %} Quiz results {% endblock title %} - -{% block meta %} {% endblock meta %} - -{% block content %} - -{% if not quizzes and not quiz %} -

Quiz results

- -

No quizzes available.

- -{% endif %} - -{# ############################################################### #} -{# This is rendered when we are just viewing exam/monitor #} -{% if quizzes %} -

Available quizzes

- - -{% endif %} - -{# ############################################################### #} -{# This is rendered when we are just viewing exam/monitor/quiz_num #} -{% if quiz %} -

{{ quiz.description }} results

-{% if papers %} -{#

Quiz: {{ quiz_name }}

#} -

Number of papers: {{ papers|length }}

- - - - - - - - - - - - {% for paper in papers %} - - - - - - - - - - {% endfor %} -
Name Username Roll number Institute Questions answered Total marks Attempts
- {{ paper.user.get_full_name.title }} - {{ paper.user.username }} {{ paper.profile.roll_number }} {{ paper.profile.institute }} {{ paper.get_answered_str }} {{ paper.get_total_marks }} {{ paper.answers.count }}
-{% else %} -

No answer papers so far.

-{% endif %} {# if papers #} -{% endif %} - -Admin - -{% endblock content %} diff --git a/templates/exam/question.html b/templates/exam/question.html deleted file mode 100644 index 8b589b6..0000000 --- a/templates/exam/question.html +++ /dev/null @@ -1,91 +0,0 @@ -{% extends "base.html" %} - -{% block title %} Answer question {% endblock %} - -{% block script %} - -{% endblock script %} - -{% block onload %} onload="update_time()" {% endblock %} - -{% block content %} -

{{ question.summary }}

- -

{{ question.description|safe }} -
-(Marks: {{ question.points }})

- -{% if error_message %}

ERROR:

{{ error_message }}
{% endif %} - -

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

{{ user.first_name.title }} {{ user.last_name.title }}, -you have {{ paper.questions_left }} question(s) left in {{ quiz_name }}.

- -

Time left:

- -
-
-{% csrf_token %} - -
- -{% endblock content %} diff --git a/templates/exam/quit.html b/templates/exam/quit.html deleted file mode 100644 index 37b5c08..0000000 --- a/templates/exam/quit.html +++ /dev/null @@ -1,14 +0,0 @@ -{% extends "base.html" %} - -{% block title %}Quit exam {% endblock %} - -{% block content %} -

Your current answers are saved.

-

Are you sure you wish to quit the exam?

- -
-{% csrf_token %} - - -
-{% endblock content %} \ No newline at end of file diff --git a/templates/exam/register.html b/templates/exam/register.html deleted file mode 100644 index 921e7b5..0000000 --- a/templates/exam/register.html +++ /dev/null @@ -1,17 +0,0 @@ -{% extends "base.html" %} - -{% block title %}Registration form {% endblock %} - -{% block content %} -Please provide the following details. -
-{% csrf_token %} - - -{{ form.as_table }} -
- - -
- -{% endblock content %} \ No newline at end of file diff --git a/templates/exam/user_data.html b/templates/exam/user_data.html deleted file mode 100644 index 9fb442a..0000000 --- a/templates/exam/user_data.html +++ /dev/null @@ -1,84 +0,0 @@ -{% extends "base.html" %} - -{% block title %} Data for user {{ data.user.get_full_name.title }} {% endblock title %} - -{% block content %} - -

Data for user {{ data.user.get_full_name.title }}

- -

-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 %} -
-Admin - -{% endblock content %} -- cgit