{% 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 django.contrib.auth.views.password_reset  %}" >{% trans "Forget password?" %}</a></li>
        </ul>
{% endblock %}



