summaryrefslogtreecommitdiff
path: root/testapp/templates/exam/user_data.html
diff options
context:
space:
mode:
authorPrabhu Ramachandran2013-04-27 15:28:28 +0530
committerPrabhu Ramachandran2013-04-27 15:28:28 +0530
commit8b6ac259503323bc3d8333382d3769e5d10f162a (patch)
tree5d260a3db043492ef731b4241cf0f07563591743 /testapp/templates/exam/user_data.html
parentfd044e4a9f08366c9425cb241b7452da2ba904e1 (diff)
parent5c7f66806e4be50985655b7c12bf3190ee91ae46 (diff)
downloadonline_test-8b6ac259503323bc3d8333382d3769e5d10f162a.tar.gz
online_test-8b6ac259503323bc3d8333382d3769e5d10f162a.tar.bz2
online_test-8b6ac259503323bc3d8333382d3769e5d10f162a.zip
Merge branch 'model_changes' of ...
https://github.com/hardythe1/online_test into master. Conflicts: production.cfg testapp/production.py
Diffstat (limited to 'testapp/templates/exam/user_data.html')
-rw-r--r--testapp/templates/exam/user_data.html22
1 files changed, 9 insertions, 13 deletions
diff --git a/testapp/templates/exam/user_data.html b/testapp/templates/exam/user_data.html
index 9fb442a..61a3a97 100644
--- a/testapp/templates/exam/user_data.html
+++ b/testapp/templates/exam/user_data.html
@@ -1,11 +1,11 @@
-{% extends "base.html" %}
+{% extends "manage.html" %}
{% block title %} Data for user {{ data.user.get_full_name.title }} {% endblock title %}
-{% block content %}
-
-<h1> Data for user {{ data.user.get_full_name.title }} </h1>
+{% block manage %}
+{% block subtitle %}Data for user {{ data.user.get_full_name.title }}{% endblock %}
+<form action="" method="post">
<p>
Name: {{ data.user.get_full_name.title }} <br/>
Username: {{ data.user.username }} <br/>
@@ -21,7 +21,7 @@ Last login: {{ data.user.last_login }}
</p>
{% if data.papers %}
-<p><a href="{{URL_ROOT}}/exam/grade_user/{{ data.user.username }}/">
+<p><a href="{{URL_ROOT}}/exam/manage/gradeuser/{{ data.user.username }}/">
Grade/correct paper</a>
</p>
@@ -66,19 +66,15 @@ User IP address: {{ paper.user_ip }}
{% endif %} {# if data.papers #}
<br />
<hr />
-<a href="{{URL_ROOT}}/exam/grade_user/{{ data.user.username }}/">
+<a href="{{URL_ROOT}}/exam/manage/gradeuser/{{ data.user.username }}/">
Grade/correct paper</a>
<br/>
{% if data.papers.count > 1 %}
-<a href="{{URL_ROOT}}/exam/monitor/">
- Monitor quiz</a>
+<a href="{{URL_ROOT}}/exam/manage/monitor/">Monitor quiz</a>
{% else %}
{% with data.papers.0 as paper %}
-<a href="{{URL_ROOT}}/exam/monitor/{{paper.quiz.id}}/">
- Monitor quiz</a>
+<a href="{{URL_ROOT}}/exam/manage/monitor/{{paper.quiz.id}}/">Monitor quiz</a>
{% endwith %}
{% endif %}
-<br />
-<a href="{{URL_ROOT}}/admin/">Admin</a>
-{% endblock content %}
+{% endblock %}