diff options
-rw-r--r-- | exam/management/commands/dump_user_data.py | 4 | ||||
-rw-r--r-- | templates/exam/monitor.html | 2 | ||||
-rw-r--r-- | templates/exam/user_data.html | 8 |
3 files changed, 7 insertions, 7 deletions
diff --git a/exam/management/commands/dump_user_data.py b/exam/management/commands/dump_user_data.py index 24863eb..bd8f566 100644 --- a/exam/management/commands/dump_user_data.py +++ b/exam/management/commands/dump_user_data.py @@ -8,9 +8,9 @@ from exam.models import User data_template = Template('''\ =============================================================================== -Data for {{ user_data.name }} ({{ user_data.username }}) +Data for {{ user_data.name.title }} ({{ user_data.username }}) -Name: {{ user_data.name }} +Name: {{ user_data.name.title }} Username: {{ user_data.username }} Roll number: {{ user_data.rollno }} Email: {{ user_data.email }} diff --git a/templates/exam/monitor.html b/templates/exam/monitor.html index 201e5db..a9eac24 100644 --- a/templates/exam/monitor.html +++ b/templates/exam/monitor.html @@ -44,7 +44,7 @@ </tr> {% for paper in paper_list %} <tr> - <td> <a href="{{URL_ROOT}}/exam/user_data/{{paper.username}}">{{ paper.name }}</a> </td> + <td> <a href="{{URL_ROOT}}/exam/user_data/{{paper.username}}">{{ paper.name.title }}</a> </td> <td> <a href="{{URL_ROOT}}/exam/user_data/{{paper.username}}">{{ paper.username }}</a> </td> <td> {{ paper.rollno }} </td> <td> {{ paper.answered }} </td> diff --git a/templates/exam/user_data.html b/templates/exam/user_data.html index a2649fb..c180983 100644 --- a/templates/exam/user_data.html +++ b/templates/exam/user_data.html @@ -1,12 +1,12 @@ {% extends "base.html" %} -{% block title %} Data for user {{ user_data.name }} {% endblock title %} +{% block title %} Data for user {{ user_data.name.title }} {% endblock title %} {% block content %} -<h1> Data for user {{ user_data.name }} </h1> +<h1> Data for user {{ user_data.name.title }} </h1> -<p> Name: {{ user_data.name }} </p> +<p> Name: {{ user_data.name.title }} </p> <p> Username: {{ user_data.username }} </p> <p> Roll number: {{ user_data.rollno }} </p> <p> Email: {{ user_data.email }} </p> @@ -28,7 +28,7 @@ {% if paper.answers %} <h3> Answers </h3> {% for question, answer in paper.answers.items %} -<h4> Question summary: {{ question }} </h4> +<p><strong> Question: {{ question }} </strong> </p> <pre> {{ answer|safe }} </pre> |