From 6f66effc7e829401e01d4df5891f5b585cd94e76 Mon Sep 17 00:00:00 2001 From: Nishanth Amuluru Date: Thu, 10 Nov 2011 19:01:59 +0530 Subject: ENH: User registration and login --- templates/exam/login.html | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 templates/exam/login.html (limited to 'templates/exam') diff --git a/templates/exam/login.html b/templates/exam/login.html new file mode 100644 index 0000000..c8e27e4 --- /dev/null +++ b/templates/exam/login.html @@ -0,0 +1,12 @@ +

Welcome to the Examination. +Please login to proceed.

+ +
+{% csrf_token %} + +{{ form.as_p }} + + +
+ +New User Registration -- cgit From aeb50765bdcb5e94bcd07d22f2cfa8f692e13911 Mon Sep 17 00:00:00 2001 From: Nishanth Amuluru Date: Thu, 10 Nov 2011 19:05:10 +0530 Subject: ENH: created user registration and login --- templates/exam/register.html | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'templates/exam') 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.
{% csrf_token %} {{ form.as_p }} - + +
+{% else %} +Congratulations {{ full_name }}! You have successfully registered.
+Please proceed to Login. +{% endif %} -- cgit From f569c1f1cea65f744f42941b5d7e75b49350d442 Mon Sep 17 00:00:00 2001 From: Nishanth Amuluru Date: Thu, 10 Nov 2011 22:10:26 +0530 Subject: Users will be directed to the exam automatically after they register --- templates/exam/register.html | 5 ----- 1 file changed, 5 deletions(-) (limited to 'templates/exam') diff --git a/templates/exam/register.html b/templates/exam/register.html index c0d0cb7..2ffc140 100644 --- a/templates/exam/register.html +++ b/templates/exam/register.html @@ -1,4 +1,3 @@ -{% if form %} Please provide the following details.
{% csrf_token %} @@ -7,7 +6,3 @@ Please provide the following details.
-{% else %} -Congratulations {{ full_name }}! You have successfully registered.
-Please proceed to Login. -{% endif %} -- cgit