summaryrefslogtreecommitdiff
path: root/templates/exam
diff options
context:
space:
mode:
authorPrabhu Ramachandran2011-11-19 08:38:13 +0530
committerPrabhu Ramachandran2011-11-19 08:38:13 +0530
commit6fcc55a442d52c251408566f6bc924b15cef0bb3 (patch)
treed356677a0da1db3732693b487fea73d27a9c3fd7 /templates/exam
parent7e370f3017572fb202d48a9ca884bfd7d3880d63 (diff)
downloadonline_test-6fcc55a442d52c251408566f6bc924b15cef0bb3.tar.gz
online_test-6fcc55a442d52c251408566f6bc924b15cef0bb3.tar.bz2
online_test-6fcc55a442d52c251408566f6bc924b15cef0bb3.zip
ENH: Fixing login/registration forms and uname/pwd
The login and registration forms are now rendered as tables which looks much nicer. The username now can take letters, digits, period and underscore. The password can take letters, digits and punctuation.
Diffstat (limited to 'templates/exam')
-rw-r--r--templates/exam/login.html4
-rw-r--r--templates/exam/register.html4
2 files changed, 6 insertions, 2 deletions
diff --git a/templates/exam/login.html b/templates/exam/login.html
index b8594f4..8f0ef6c 100644
--- a/templates/exam/login.html
+++ b/templates/exam/login.html
@@ -9,7 +9,9 @@ Please login to proceed.</p>
<form action="" method="post">
{% csrf_token %}
-{{ form.as_p }}
+<table>
+{{ form.as_table }}
+</table>
<input type="submit" value="Login" />
</form>
diff --git a/templates/exam/register.html b/templates/exam/register.html
index d002570..921e7b5 100644
--- a/templates/exam/register.html
+++ b/templates/exam/register.html
@@ -7,7 +7,9 @@ Please provide the following details.
<form action="" method="post">
{% csrf_token %}
-{{ form.as_p }}
+<table>
+{{ form.as_table }}
+</table>
<input type="submit" value="Register" />
</form>