summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhardythe12012-02-02 12:39:30 +0530
committerhardythe12012-02-02 12:39:30 +0530
commit6809186e406f96fa321b55060364bcaf7bfc4a99 (patch)
tree88f1bd400fe22ed88189a62d30604800e08bf3e9
parent8f829495ea4a74e3e777cd1f4214781b9c63776b (diff)
downloadonline_test-6809186e406f96fa321b55060364bcaf7bfc4a99.tar.gz
online_test-6809186e406f96fa321b55060364bcaf7bfc4a99.tar.bz2
online_test-6809186e406f96fa321b55060364bcaf7bfc4a99.zip
Updated user_data and grade_user forms (new UI)
-rw-r--r--testapp/templates/exam/grade_user.html31
-rw-r--r--testapp/templates/exam/user_data.html24
2 files changed, 49 insertions, 6 deletions
diff --git a/testapp/templates/exam/grade_user.html b/testapp/templates/exam/grade_user.html
index 75ed2e0..2237475 100644
--- a/testapp/templates/exam/grade_user.html
+++ b/testapp/templates/exam/grade_user.html
@@ -3,8 +3,17 @@
{% block title %} Grading papers for {{ data.user.get_full_name.title }} {% endblock title %}
{% block content %}
+<html lang="en">
+ <body>
+ <div class="container">
+ <div class="content">
+<div class="page-header">
+<h1><Strong><center>Online Test</center></strong></h1>
+</div>
+ <div class=row>
+ <div class=span14>
+<h3><center>Grading papers for {{ data.user.get_full_name.title }}</center></h3><br>
-<h1> Grading papers for {{ data.user.get_full_name.title }} </h1>
<p>
Name: {{ data.user.get_full_name.title }}
@@ -30,7 +39,7 @@ Start time: {{ paper.start_time }} <br/>
</p>
{% if paper.answers.count %}
-<h3> Answers </h3>
+<h3> Answers </h3><br>
<form id="q{{ paper.quiz.id }}_form"
action="{{URL_ROOT}}/exam/grade_user/{{data.user.username}}/" method="post">
{% csrf_token %}
@@ -54,14 +63,15 @@ Start time: {{ paper.start_time }} <br/>
{% with answers|last as answer %}
Marks: <input id="q{{ question.id }}" type="text"
name="q{{ question.id }}_marks" size="4"
- value="{{ answer.marks }}" />
+ value="{{ answer.marks }}"><br><br>
{% endwith %}
{% endfor %} {# for question, answers ... #}
<h3>Teacher comments: </h3>
<textarea id="comments_{{paper.quiz.id}}" rows="10" cols="80"
name="comments_{{ paper.quiz.id }}">{{ paper.comments }}</textarea>
-<br/>
-<input type="submit" name="submit_{{paper.quiz.id}}" value="Save marks" />
+<br>
+<br><button class="btn" type="submit" name="submit_{{paper.quiz.id}}">Save Marks</button>
+
</form>
{% endif %} {# if paper.answers.count #}
@@ -80,4 +90,15 @@ Marks: <input id="q{{ question.id }}" type="text"
{% endif %}
<br />
<a href="{{URL_ROOT}}/admin/">Admin</a>
+</div>
+ </div>
+ </div>
+<footer>
+ <p>&copy; FOSSEE group, IIT Bombay</p>
+ </footer>
+
+ </div> <!-- /container -->
+
+ </body>
+</html>
{% endblock content %}
diff --git a/testapp/templates/exam/user_data.html b/testapp/templates/exam/user_data.html
index 9fb442a..8026a73 100644
--- a/testapp/templates/exam/user_data.html
+++ b/testapp/templates/exam/user_data.html
@@ -3,8 +3,18 @@
{% block title %} Data for user {{ data.user.get_full_name.title }} {% endblock title %}
{% block content %}
+<html lang="en">
+ <body>
+ <div class="container">
+ <div class="content">
+<div class="page-header">
+<h1><Strong><center>Online Test</center></strong></h1>
+</div>
+ <div class=row>
+ <div class=span14>
+<h3><center>Data for user {{ data.user.get_full_name.title }}</center></h3><br>
+<form action="" method="post">
-<h1> Data for user {{ data.user.get_full_name.title }} </h1>
<p>
Name: {{ data.user.get_full_name.title }} <br/>
@@ -81,4 +91,16 @@ User IP address: {{ paper.user_ip }}
<br />
<a href="{{URL_ROOT}}/admin/">Admin</a>
+</div>
+ </div>
+ </div>
+<footer>
+ <p>&copy; FOSSEE group, IIT Bombay</p>
+ </footer>
+
+ </div> <!-- /container -->
+
+ </body>
+</html>
+
{% endblock content %}