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

{% block css_import %}
	{{ block.super }}
	<link rel="stylesheet" href='{% static "ldt/css/ldt.css" %}' />
	<link rel="stylesheet" href='{% static "ldt/css/ldtform.css" %}' />
{% 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 %}
  	<div class="span-24 last">
        <form action="" method='post' id="login-form">
        	<div id="loginform_div" class="span-12">
            {% csrf_token %}
            <input type="hidden" name="next" value="{{ next }}" />
                        
	        <ul id="login_fields_list">
	        {{form.as_ul}}
	        </ul>
	        </div>
	       	<div id="login_links" class="span-12 last">
		       	<div id="login_links_list" class="span-12 last">
		       	<ul>
		       		<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>
	            </div>
        	</div>
	        <div id="submitcontent" class="span-24 last">
				<div id="submitcontent-buttons" class="span-24 last">
	        		<button class="button"type="submit" value="login">{% trans "login" %}</button>
	        	</div>
	        </div>
	    </form>
	</div> 

{% endblock %}


