27 lines
1.9 KiB
HTML
27 lines
1.9 KiB
HTML
{% load staticfiles %}
|
|
{% load i18n %}
|
|
|
|
{% if 'nofc' not in request.GET %}
|
|
<div id="fc-button-wrapper">
|
|
<div id="fc-button">
|
|
{% if not fc_user_info %}
|
|
<a class="button" href="{% url 'fc-login-or-link' %}{% if request.GET.next or popup or registration %}?{% endif %}{% if next %}{{ next }}{% else %}{% if request.GET.next %}{{ request.GET.urlencode }}{% endif %}{% endif %}{% if popup %}&popup=1{% endif %}{% if registration %}®istration{% endif %}" title="{% trans 'Log in with FranceConnect' %}" class="connexion{% if popup %} js-oauth-popup{% endif %}"><div><img src="{% if registration %}{% static "authentic2_auth_fc/img/FC-register-button.svg" %}{% else %}{% static "authentic2_auth_fc/img/FC-connect-button.svg" %}{% endif %}" alt="{% trans 'Log in with FranceConnect' %}"></img></div></a>
|
|
{% block fc-explanation %}
|
|
<p><a href="{{ about_url }}" target="_blank">{% trans "What is FranceConnect?" %}</a></p>
|
|
<p>{% blocktrans %}
|
|
FranceConnect is the solution proposed by the French state to streamline
|
|
logging in online services. You can use to connect to your account.
|
|
{% endblocktrans %}</p>
|
|
{% endblock %}
|
|
{% else %}
|
|
<p class="highlight option first">Je n'ai pas encore de {{ account_label }}</p>
|
|
<p>Création de mon {{ account_label }} à partir des données reçues de FranceConnect.</p>
|
|
<span class="certified">{{ fc_user_info.given_name }} {{ fc_user_info.family_name }}{% if fc_user_info.email %}<br/>{{ fc_user_info.email }}{% endif %}</span>
|
|
<div class="center fc-connect">
|
|
<a href="{% url 'fc-registration' %}{% if request.GET.next or popup %}?{% endif %}{% if request.GET.next %}{{ request.GET.urlencode }}{% endif %}{% if popup %}&popup=1{% endif %}" title="Créez un compte avec FranceConnect" class="connexion{% if popup %} js-oauth-popup{% endif %} button">Valider</a>
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
{% endif %}
|