Forgot pasword.
authorMadhusudan.C.S <madhusudancs@gmail.com>
Thu, 06 Aug 2009 22:43:02 +0530
changeset 10 393d0030945b
parent 9 38727da8a948
child 11 dfc069c2d35d
Forgot pasword.
app/templates/projrev/auth/create_account.html
app/templates/projrev/auth/forgot_password.html
app/templates/projrev/auth/login.html
--- a/app/templates/projrev/auth/create_account.html	Thu Aug 06 22:36:36 2009 +0530
+++ b/app/templates/projrev/auth/create_account.html	Thu Aug 06 22:43:02 2009 +0530
@@ -10,7 +10,7 @@
 {% if exits or password_err %}
 <script type="text/javascript">
   $(document).ready(function () {
-    $("#inline").colorbox({width:"50%", inline:true, open: true, href:"#message", title:"hello"});
+    $("#inline").colorbox({width:"50%", inline:true, open: true, href:"#message", title:"Error"});
   });
 </script>
 {% endif %}
--- a/app/templates/projrev/auth/forgot_password.html	Thu Aug 06 22:36:36 2009 +0530
+++ b/app/templates/projrev/auth/forgot_password.html	Thu Aug 06 22:43:02 2009 +0530
@@ -1,7 +1,20 @@
 {% extends "projrev/base.html" %}
 {% block stylesheets %}
 <link rel="stylesheet" href="/site-content/css/login.css" type="text/css"/>
+<link type="text/css" rel="stylesheet" href="/site-content/css/colorbox.css" />
 {% endblock stylesheets %}
+
+{% block scripts %}
+{{ block.super }}
+{% if exits %}
+<script type="text/javascript">
+  $(document).ready(function () {
+    $("#inline").colorbox({width:"50%", inline:true, open: true, href:"#message", title:"Error"});
+  });
+</script>
+{% endif %}
+{% endblock scripts %}
+
 {% block body %}
   <form id="login-form" action="#" method="POST">
     <fieldset>
@@ -18,4 +31,12 @@
       {% endif %} 
     </fieldset>
   </form>
+  <div class='hidden' style="display: none;">
+    <p><a id="inline" href="#"></a></p>
+    <div id='message' style='padding:10px; background:#fff;'>
+      {% if exits %}
+      The Email ID already exists. Please close this box and enter the correct ID.<br/>
+      {% endif %}
+    </div>
+  </div>
 {% endblock body %}
\ No newline at end of file
--- a/app/templates/projrev/auth/login.html	Thu Aug 06 22:36:36 2009 +0530
+++ b/app/templates/projrev/auth/login.html	Thu Aug 06 22:43:02 2009 +0530
@@ -1,17 +1,25 @@
 {% extends "projrev/base.html" %}
 {% block stylesheets %}
 <link rel="stylesheet" href="/site-content/css/login.css" type="text/css"/>
+<link type="text/css" rel="stylesheet" href="/site-content/css/colorbox.css" />
 {% endblock stylesheets %}
+
+{% block scripts %}
+{{ block.super }}
+{% if error %}
+<script type="text/javascript">
+  $(document).ready(function () {
+    $("#inline").colorbox({width:"50%", inline:true, open: true, href:"#message", title:"Error"});
+  });
+</script>
+{% endif %}
+{% endblock scripts %}
+
 {% block body %}
   <form id="login-form" action="#" method="POST">
     <fieldset>
     
       <legend>Log in</legend>
-      {% if error %}
-      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
-      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
-      Wrong Email or password.<br/>
-      {% endif %}
       <label for="login">Email</label>
       <input type="text" id="login" name="username"/>
       <div class="clear"></div>
@@ -30,4 +38,12 @@
       <input type="submit" style="margin: -20px 0 0 287px;" class="button" name="commit" value="Log in"/> 
     </fieldset>
   </form>
+  <div class='hidden' style="display: none;">
+    <p><a id="inline" href="#"></a></p>
+    <div id='message' style='padding:10px; background:#fff;'>
+      {% if error %}
+      You have entered a wrong Email address or password. Please close this box and enter correct credentials.<br/>
+      {% endif %}
+    </div>
+  </div>
 {% endblock body %}
\ No newline at end of file