{% extends "base.html" %} {% load widget_tweaks i18n static dsfr_tags wagtail_dsfr_tags %} {% block title %} {% translate "Connection" %} — {{ settings.sites_conformes_content_manager.CmsDsfrConfig.site_title }} {% endblock title %} {% block content %}

{% translate "Connection" %}

{% settings_value "PROCONNECT_ACTIVATED" as use_proconnect %} {% settings_value "SF_DISABLE_LOCAL_LOGIN" as disable_local_login %} {% if use_proconnect %}

{% translate "Login with ProConnect" %}

ProConnect

{% translate "What is ProConnect?" as what_is_pro_connect %} {% translate "Opens a new window" as new_window %} {{ what_is_pro_connect }}

{% endif %} {% if use_proconnect and not disable_local_login %}

{% translate "or" %}

{% endif %} {% if not disable_local_login %}

{% translate "Log in with your account" %}

{% translate "Unless otherwise stated, all fields are mandatory." %}

{% if form.errors %}

{% translate "Error: Your username and password do not match, please try again." %}

{% endif %} {% if next %} {% if user.is_authenticated %}

{% translate "Error: Your account does not have access to this page. To continue, please log in with an authorized account." %}

{% endif %} {% endif %} {% dsfr_django_messages %}
{% csrf_token %} {% url 'wagtailadmin_home' as home_url %}
{{ form.username |attr:"autocomplete:username" |add_class:"fr-input" }}
{{ form.password |attr:"autocomplete:current-password" |add_class:"fr-password__input fr-input" }}
{% translate "Show password" as show_password %}
{% if show_password_reset %} {% translate "Forgotten password?" %} {% endif %}
{{ form.remember }}
{% translate "Connect" as connect_label %}
{% endif %}
{% endblock content %}