{% extends "egonomy_base.html" %}
{% load static %}
{% load i18n %}

{% block title %}{% trans "Login" %}{% endblock %}

{% block content %}
    {% if form.errors %}
    <p class="error">{% trans "Sorry, that's not a valid username or password." %}</p>
   {% endif %}
    <div class="fullwidth">
        <form action="" method='post' id="login-form">
            <div id="loginform_div" class="span-12">
            {% csrf_token %}
            <input type="hidden" name="next" value="{% if next %}{{ next }}{% else %}{% url 'home' %}{% endif %}" />
            <ul id="login_fields_list">
            {{form.as_ul}}
            </ul>
            <!--ul>
                <li><a href="" >{% trans "Forget password?" %}</a></li>
            </ul-->
            <div id="submitcontent-buttons-login" class="span-24 last">
                <button class="button"type="submit" value="login">{% trans "login" %}</button>
            </div>
            </div>
        </form>
    </div> 

{% endblock %}



