project/templates/registration/registration_form.html
author Madhusudan.C.S <madhusudancs@gmail.com>
Wed, 11 Nov 2009 15:56:21 +0530
changeset 25 ad091ba95653
parent 24 bb1f31e9c3ab
permissions -rwxr-xr-x
Added i18 loader in one of the registration templates.

{% extends "base.html" %}

{% load i18n %}

{% block content %}
  <div class="post">
    <div class="title"><h2>{% trans "Register" %}</h2></div>
    <div id="search">
    <style type="text/css">
    ul.errorlist {
        margin: 0;
        padding: 0;
    }
    .errorlist li {        
        color: red;
        display: block;
        font-size: 10px;
        margin: 0 1 3px;
        padding: 0px 45px;
    }
</style>

      <form method="POST" action=".">
        <table>
          {{ form.as_table }}
        </table>
        <p><input type="submit" name="Register" value="{% trans "Register" %}" class="btn"></p>
      </form>
      <script type="text/javascript">
	document.getElementById('id_username').focus();
      </script>
   </div>
{% endblock %}