{% load i18n %}
<div class="register">
    {% if form.errors %}
    <p class="error">{% trans "Sorry, that's not a valid username or password." %}</p>
    {% endif %}
    <form action="{% url 'ajax_login' %}" method='post' id="login-form">
        {% csrf_token %}
        <input type="hidden" name="next" value="{% url 'ajax_login_ok' %}" />
        {{form.as_p}}
        <button class="button" type="submit" value="login">{% trans "login" %}</button>
    </form>
    <p>&nbsp;</p>
    <p><a target="_blank" href="{% url 'registration_register' %}">{% trans "Still not a user ? Create an account" %}</a>
    <p><a target="_blank" href="{% url 'auth_password_reset' %}">{% trans "Forgot password ?" %}</a>
</div>

