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/exam/user_data.html | 80 ----------------------------------- 1 file changed, 80 deletions(-) delete mode 100644 testapp/templates/exam/user_data.html (limited to 'testapp/templates/exam/user_data.html') 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 %} -- cgit