# HG changeset patch # User Madhusudan.C.S # Date 1249578396 -19800 # Node ID 38727da8a948f473dd221fa765ec01e65831e66c # Parent 294ff7ac9cb6344b4d03505145018e1a49a41252 Create Account diff -r 294ff7ac9cb6 -r 38727da8a948 app/projrev/views/login.py --- a/app/projrev/views/login.py Thu Aug 06 20:20:36 2009 +0530 +++ b/app/projrev/views/login.py Thu Aug 06 22:36:36 2009 +0530 @@ -78,11 +78,14 @@ """Resend the password if forgotten. """ + template = 'projrev/auth/forgot_password.html' if request.POST: - pass + context = { + 'password_sent': True, + } else: context = {} - template = 'projrev/auth/forgot_password.html' + return render_to_response(template, context) diff -r 294ff7ac9cb6 -r 38727da8a948 app/site-content/css/login.css --- a/app/site-content/css/login.css Thu Aug 06 20:20:36 2009 +0530 +++ b/app/site-content/css/login.css Thu Aug 06 22:36:36 2009 +0530 @@ -9,9 +9,9 @@ fieldset { border: 0; } -label { width: 115px; text-align: right; float: left; margin: 0 10px 0 0; padding: 9px 0 0 0; font-size: 16px; } +label { width: 115px; text-align: right; float: left; margin: 0 10px 0 0; padding: 9px 0 0 0; font-size: 14px; } -input { width: 220px; display: block; padding: 4px; margin: 0 0 10px 0; font-size: 18px; +input { width: 220px; display: block; padding: 4px; margin: 0 0 10px 0; font-size: 14px; color: #3a3a3a; font-family: Georgia, serif;} input[type=checkbox]{ width: 20px; margin: 0; display: inline-block; } diff -r 294ff7ac9cb6 -r 38727da8a948 app/templates/projrev/auth/create_account.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/templates/projrev/auth/create_account.html Thu Aug 06 22:36:36 2009 +0530 @@ -0,0 +1,50 @@ +{% extends "projrev/base.html" %} + +{% block stylesheets %} + + +{% endblock stylesheets %} + +{% block scripts %} +{{ block.super }} +{% if exits or password_err %} + +{% endif %} +{% endblock scripts %} + +{% block body %} +
+
+ + Log in + + +
+ + + +
+ + + +
+
+ +
+
+ +{% endblock body %} \ No newline at end of file diff -r 294ff7ac9cb6 -r 38727da8a948 app/templates/projrev/auth/forgot_password.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/templates/projrev/auth/forgot_password.html Thu Aug 06 22:36:36 2009 +0530 @@ -0,0 +1,21 @@ +{% extends "projrev/base.html" %} +{% block stylesheets %} + +{% endblock stylesheets %} +{% block body %} +
+
+ + Log in + {% if password_sent %} + The password has been mailed to your Email ID.
+ {% else %} + + +
+
+ + {% endif %} +
+
+{% endblock body %} \ No newline at end of file diff -r 294ff7ac9cb6 -r 38727da8a948 app/templates/projrev/auth/login.html --- a/app/templates/projrev/auth/login.html Thu Aug 06 20:20:36 2009 +0530 +++ b/app/templates/projrev/auth/login.html Thu Aug 06 22:36:36 2009 +0530 @@ -7,7 +7,11 @@
Log in - + {% if error %} +              +              + Wrong Email or password.
+ {% endif %}
diff -r 294ff7ac9cb6 -r 38727da8a948 app/templates/projrev/base.html --- a/app/templates/projrev/base.html Thu Aug 06 20:20:36 2009 +0530 +++ b/app/templates/projrev/base.html Thu Aug 06 22:36:36 2009 +0530 @@ -11,12 +11,15 @@ {% block stylesheets %} + {% endblock stylesheets %} {% block scripts %} + {% endblock scripts %} National Mission on Education through ICT