{% load static %}
{% load i18n %}

<div class="register">
	<h1>{% trans "Identifiants" %}</h1>
	{% 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' %}" />
		<p>
			<label for="username">{% trans "Nom d'utilisateur" %}</label>
			{{form.username}}
		</p>
		<p>
            <label for="password">{% trans "Mot de passe" %}</label>
            {{form.password}}
        </p>
        <div class="btn-submit">
        	<p><a id="login-popup-close" class="btn-previous" href="#">{% trans "Cancel" %}</a><input type="submit" value="{% trans 'Login' %}" /></p>
	  	</div>
	</form>
	<p class="champs"><a href="{% url 'auth_password_reset' %}" target="_blank">{% trans "Forgot password ?" %}</a></p>
	<p class="champs"><a href="{% url 'registration_register' %}" target="_blank">{% trans "Still not a user ? Create an account" %}</a></p>
</div>
