auth_fc: cleanup templates and styles (#52737)
This commit is contained in:
parent
be41211556
commit
7a5c58542d
|
@ -57,9 +57,8 @@ div#methods div#fc-button-wrapper {
|
|||
}
|
||||
}
|
||||
a.button {
|
||||
border: 0;
|
||||
background: transparent;
|
||||
padding: 0;
|
||||
padding-top: 23%;
|
||||
margin: 0;
|
||||
}
|
||||
p:last-child {
|
||||
display: none;
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
{% extends "authentic2_auth_fc/explanation.html" %}
|
||||
{% load i18n %}
|
||||
{% block fc-explanation %}
|
||||
<div id="fc-explanation-text">
|
||||
|
|
|
@ -1,17 +0,0 @@
|
|||
{% load staticfiles %}
|
||||
{% load i18n %}
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="{% static 'authentic2_auth_fc/css/fc.css' %}">
|
||||
<div id="fc-button-wrapper">
|
||||
<div id="fc-button">
|
||||
<a href="{{ login_url }}"
|
||||
title="{% trans 'Log in with FranceConnect' %}"
|
||||
class="button connexion{% if popup %} js-fc-popup{% endif %}">
|
||||
<div>
|
||||
<img src="{% static "authentic2_auth_fc/img/FC-connect-button.svg" %}"></img>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
{% include "authentic2_auth_fc/explanation.html" %}
|
||||
{% if popup %}<script src="{% static 'authentic2_auth_fc/js/fc.js' %}" type="text/javascript"></script>{% endif %}
|
|
@ -1,15 +0,0 @@
|
|||
{% load staticfiles %}
|
||||
{% load i18n %}
|
||||
<link rel="stylesheet" type="text/css" href="{% static 'authentic2_auth_fc/css/fc.css' %}">
|
||||
<div id="fc-button-wrapper">
|
||||
<div id="fc-button">
|
||||
<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="{{ registration_url }}" title="Créez un compte avec FranceConnect" class="button connexion{% if popup %} js-fc-popup{% endif %} button">Valider</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% include "authentic2_auth_fc/explanation.html" %}
|
||||
{% if popup %}<script src="{% static 'authentic2_auth_fc/js/fc.js' %}" type="text/javascript"></script>{% endif %}
|
|
@ -1,36 +0,0 @@
|
|||
{% extends "authentic2_auth_fc/base.html"%}
|
||||
{% load staticfiles %}
|
||||
{% load i18n %}
|
||||
|
||||
{% block content %}
|
||||
<div class="a2-container">
|
||||
<p>
|
||||
{% blocktrans %}
|
||||
You're about to delete the link between your user account and your FranceConnect account.
|
||||
{% endblocktrans %}
|
||||
</p>
|
||||
<p>
|
||||
{% blocktrans %}
|
||||
Deleting this link won't delete those accounts. However, once all the links with FranceConnect
|
||||
are deleted, it's no more possible to use the FranceConnect to automatically login to your
|
||||
user account. It is still possible to link those accounts once again by using the
|
||||
button FranceConnect on the login page.
|
||||
{% endblocktrans %}
|
||||
</p>
|
||||
{% if no_password %}
|
||||
<p>
|
||||
{% blocktrans %}
|
||||
Your user account has no password and removing this link may make this account inaccessible.
|
||||
To avoid this situation, please provide a password.
|
||||
{% endblocktrans %}
|
||||
</p>
|
||||
{% endif %}
|
||||
<form method="post">
|
||||
{% csrf_token %}
|
||||
{{ form.as_p }}
|
||||
<input type="submit" name="unlink" value="{% trans "Unlink" %}"/>
|
||||
<input type="submit" name="cancel" value="{% trans "Cancel" %}"/>
|
||||
</form>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
Reference in New Issue