From 4df6fb51be0661aaf0f852e4f2bedc2bb72e1eef Mon Sep 17 00:00:00 2001 From: Prabhu Ramachandran Date: Mon, 21 Nov 2011 15:46:54 +0530 Subject: ENH: Adding dept/insti/pos fields in profile. Adding institute/department/position fields, prettifying form with some help text. Also prettified monitor and user data. Updated commands to show/dump new fields. --- templates/exam/monitor.html | 2 ++ templates/exam/user_data.html | 29 ++++++++++++++++++----------- 2 files changed, 20 insertions(+), 11 deletions(-) (limited to 'templates') diff --git a/templates/exam/monitor.html b/templates/exam/monitor.html index a9eac24..1ce6c69 100644 --- a/templates/exam/monitor.html +++ b/templates/exam/monitor.html @@ -38,6 +38,7 @@ Name Username Roll number + Institute Questions answered Total marks Attempts @@ -47,6 +48,7 @@ {{ paper.name.title }} {{ paper.username }} {{ paper.rollno }} + {{ paper.institute }} {{ paper.answered }} {{ paper.total }} {{ paper.attempts }} diff --git a/templates/exam/user_data.html b/templates/exam/user_data.html index c180983..c2e8014 100644 --- a/templates/exam/user_data.html +++ b/templates/exam/user_data.html @@ -6,12 +6,17 @@

Data for user {{ user_data.name.title }}

-

Name: {{ user_data.name.title }}

-

Username: {{ user_data.username }}

-

Roll number: {{ user_data.rollno }}

-

Email: {{ user_data.email }}

-

Date joined: {{ user_data.date_joined }}

-

Last login: {{ user_data.last_login }}

+

+Name: {{ user_data.name.title }}
+Username: {{ user_data.username }}
+Roll number: {{ user_data.rollno }}
+Email: {{ user_data.email }}
+Position: {{ user_data.position }}
+Department: {{ user_data.department }}
+Institute: {{ user_data.institute }}
+Date joined: {{ user_data.date_joined }}
+Last login: {{ user_data.last_login }} +

{% if user_data.papers %} @@ -19,11 +24,13 @@

Quiz: {{ paper.name }}

-

Answered questions: {{ paper.answered }}

-

Total attempts at questions: {{ paper.attempts }}

-

Total marks: {{ paper.total }}

-

Start time: {{ paper.start_time }}

-

User IP address: {{ paper.user_ip }}

+

+Answered questions: {{ paper.answered }}
+Total attempts at questions: {{ paper.attempts }}
+Total marks: {{ paper.total }}
+Start time: {{ paper.start_time }}
+User IP address: {{ paper.user_ip }} +

{% if paper.answers %}

Answers

-- cgit