web/ldt_utils/user/templates/registration/login.html
author ymh <ymh.work@gmail.com>
Tue, 08 Jun 2010 15:31:42 +0200
changeset 4 7c994c98d1df
parent 0 web/ldt/user/templates/registration/login.html@ecdfc63274bf
permissions -rw-r--r--
change ldt.ldt to ldt.ldt_utils

{% extends "registration/base.html" %}
{% load i18n %}
{% block js_declaration %}{{ block.super }}
    <script type="text/javascript">
        $(document).ready(function() {
            $("#login-form").validate();
        });
    </script>
{% endblock %}

{% block login %}
{% endblock %}

{% block content_title %}{% trans 'Log in' %}{% endblock %}
{% block iricontent %}
    {% if form.errors %}
   <p class="error">{% trans "Sorry, that's not a valid username or password." %}</p>
   {% endif %}

        <form action="" method='post' id="login-form">
            {% csrf_token %}
            <input type="hidden" name="next" value="{% url ldt.user.views.profile%}" />            
        <ul id="login_fields_list">
        {{form.as_ul}}
        <li><input class="button"type="submit" value="{% trans "login" %}" /></li>
        </ul>
        </form>        
        <ul id="login_links_list">
            <li><a href="{% url registration.views.register  %}" >{% trans "Create an account" %}</a></li>
            <li><a href="{% url django.contrib.auth.views.password_reset  %}" >{% trans "Forget password?" %}</a></li>
        </ul>
{% endblock %}