{% extends "authentic2/login.html" %}

{% block content %}
<div id="login-page" class="methods{{ blocks|length }}">
  {% for name, content in methods reversed %}
  <div class="block">
    {% if name == "FranceConnect" %}
    <h3>Je m'identifie avec FranceConnect</h3>
    <div> {{ content|safe }} </div>
    <div class="separator"><span>OU</span></div>
    {% else %}
    {% if name == "Mot de passe" %}
    {% if methods|length == 1 %}
    <h2>{% if forloop.counter0 %}{{name}}{% else %}Connexion{% endif %}</h2>
    {% endif %}
    <div>
      {{ content|safe }}
    </div>
    {% endif %}
    {% endif %}
  </div>
  {% endfor %}
</div>
{% endblock %}
