diff templates/registration/login.html @ 24:2e7226e90157

Many fixes. See detailed description. - Style errors - Writer proper 404 and 500 templates - Make login page redirect back to page being viewed (still buggy?) - Provide a brief blurb about Agora - Use tables for registration and login forms (need to be styled) - Fix typos, grammatical errors. - Don't use .djhtml extension for some templates
author Jordi Gutiérrez Hermoso <jordigh@gmail.com>
date Mon, 28 Jun 2010 03:00:01 -0500
parents d9658d30b814
children e019ca8e14f6
line wrap: on
line diff
--- a/templates/registration/login.html	Sun Jun 27 21:56:57 2010 -0500
+++ b/templates/registration/login.html	Mon Jun 28 03:00:01 2010 -0500
@@ -2,6 +2,7 @@
 
 {% block content %}
 <div id="info">
+
   <h3>
     Login
   </h3>
@@ -17,21 +18,11 @@
 
     {% else %}
 
-    {% if form.errors %}
-    <p>{{form.errors}}</p>
-    {% endif %}
     <form method="post" action=".">
       {% csrf_token %}
-      <p>
-        <label for="id_username">Username:</label>
-        <br/>
-        <input id="id_username" type="text" name="username" maxlength="30" />
-      </p>
-      <p>
-        <label for="id_password">Password:</label> 
-        <br/>
-        <input type="password" name="password" id="id_password" />
-      </p>
+      <table>
+      {{form.as_table}}
+      </table>
       <input type="submit" value="Log in" />
       <input type="hidden" name="next" value="{{ next }}" />
     </form>
@@ -40,7 +31,7 @@
       Forgot password? <a href="{% url auth_password_reset %}">Reset it</a>!
     </p>
     <p>
-      Not member? <a href="{% url registration_register %}">Register</a>!
+      No login name? <a href="{% url registration_register %}">Register</a>!
     </p>
     {% endif %}