summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorNishanth Amuluru2011-11-10 19:05:10 +0530
committerNishanth Amuluru2011-11-10 20:50:26 +0530
commitaeb50765bdcb5e94bcd07d22f2cfa8f692e13911 (patch)
tree0051c70b666fac571450e9a9a7e219e23a7611a3 /templates
parent6f66effc7e829401e01d4df5891f5b585cd94e76 (diff)
downloadonline_test-aeb50765bdcb5e94bcd07d22f2cfa8f692e13911.tar.gz
online_test-aeb50765bdcb5e94bcd07d22f2cfa8f692e13911.tar.bz2
online_test-aeb50765bdcb5e94bcd07d22f2cfa8f692e13911.zip
ENH: created user registration and login
Diffstat (limited to 'templates')
-rw-r--r--templates/exam/register.html10
1 files changed, 8 insertions, 2 deletions
diff --git a/templates/exam/register.html b/templates/exam/register.html
index 414da72..c0d0cb7 100644
--- a/templates/exam/register.html
+++ b/templates/exam/register.html
@@ -1,7 +1,13 @@
-Please provide the following details before you start the test.
+{% if form %}
+Please provide the following details.
<form action="" method="post">
{% csrf_token %}
{{ form.as_p }}
-<input type="submit" value="submit">
+
+<input type="submit" value="Register" />
</form>
+{% else %}
+Congratulations {{ full_name }}! You have successfully registered.<br />
+Please proceed to <a href="/exam/login/">Login</a>.
+{% endif %}