{% load i18n %}
<div>
<form method="post" action="">
{% csrf_token %}
{{ form.as_p }}
<input type="submit" name="{{ submit_name }}" value="{% trans "Log in" %}"/>
{% if cancel %}
<input type="submit" name="cancel" value="{% trans 'Cancel' %}"/>
{% endif %}
</form>
</div>

<div class="login-actions">
{% if can_reset_password %}
  <p>→ {% trans "Forgot password?" %} <a href="{% url 'auth_password_reset' %}">Ré-initialisez-le&nbsp;!</a></p>
{% endif %}
{% if registration_authorized %}
  <p>→ Pas de compte citoyen&nbsp;? <a href="{% url 'registration_register' %}">Enregistrez-vous&nbsp;!</a></p>
{% endif %}
</div>
