diff templates/registration/registration_form.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/registration_form.html	Sun Jun 27 21:56:57 2010 -0500
+++ b/templates/registration/registration_form.html	Mon Jun 28 03:00:01 2010 -0500
@@ -8,35 +8,19 @@
   </h3>
   <div class="whitebox">
     <p>
-      Please provide us some basic information to set up your account.
+      Please give us some basic information to set up your account.
+      Valid usernames consist of letters, numbers, and underscores.
     </p>
+    {% if form.errors %}
+    <p class="error">
+      Please correct the errors below.
+    </p>
+    {% endif %}
     <form action="." method="post">
       {% csrf_token %}
-      <p>
-        <label for="id_username">username: (letters, numbers, underscores)
-        </label>
-        <br />
-        <input id="id_username" type="text" class="required"
-               name="username" maxlength="30" />
-      </p>
-      <p>
-        <label for="id_email">email address:</label>
-        <br />
-        <input id="id_email" type="text" class="required" name="email"
-               maxlength="75" />
-      </p>
-      <p>
-        <label for="id_password1">password:</label>
-        <br />
-        <input id="id_password1" type="password" class="required"
-               name="password1" />
-      </p>
-      <p>
-        <label for="id_password2">password (again):</label>
-        <br />
-        <input id="id_password2" type="password" class="required"
-               name="password2" />
-      </p>      
+      <table>
+      {{form.as_table}}
+      </table>
       <input class="button" type="submit" value="Submit" />
     </form>
   </div>