templates: use different ids for link and its container (#17421)
This commit is contained in:
parent
ffdf6047dc
commit
6bf6ff6c8c
|
@ -28,20 +28,20 @@ div#fc-button:active {
|
|||
box-shadow: 0px 1px rgba(0, 0, 0, 0.6) inset, -1px 0px rgba(0, 0, 0, 0.1) inset, 1px 0px rgba(0, 0, 0, 0.3) inset, 0px -1px rgba(0, 0, 0, 0.05) inset;
|
||||
}
|
||||
|
||||
div#fc-button a#fc-button{
|
||||
div#fc-button a.button {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
div#fc-button a#fc-button:focus{
|
||||
div#fc-button a.button:focus {
|
||||
outline:0;
|
||||
}
|
||||
|
||||
div#fc-button a#fc-button div{
|
||||
div#fc-button a.button div {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
div#fc-button-wrapper.small div#fc-button a#fc-button div img{
|
||||
div#fc-button-wrapper.small div#fc-button a.button div img {
|
||||
height: 50px;
|
||||
}
|
||||
|
||||
|
|
|
@ -8,9 +8,9 @@
|
|||
<div id="fc-button-wrapper">
|
||||
<div id="fc-button">
|
||||
{% if not fc_user_info %}
|
||||
<a id="fc-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="{% static "authentic2_auth_fc/img/FCboutons-10.svg" %}"></img></div></a>
|
||||
<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="{% static "authentic2_auth_fc/img/FCboutons-10.svg" %}"></img></div></a>
|
||||
{% else %}
|
||||
<a id="fc-button" 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="{% trans 'Create your account with FranceConnect' %}" class="connexion{% if popup %} js-oauth-popup{% endif %}">
|
||||
<a class="button" 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="{% trans 'Create your account with FranceConnect' %}" class="connexion{% if popup %} js-oauth-popup{% endif %}">
|
||||
<div>{% trans "Create your account with FranceConnect" %}<br/><br/><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><br/><br/><img src="{% static 'authentic2_auth_fc/img/fc_logo_micro.png' %}"></img></div></a>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
<p>
|
||||
<div id="fc-button-wrapper">
|
||||
<div id="fc-button">
|
||||
<a id="fc-button" href="{% url 'fc-login-or-link' %}?next={% url 'account_management' %}" title="{% trans 'Link with a FranceConnect account' %}" class="connexion"><div>{% trans "Link with a FranceConnect account" %}<img src="{% static 'authentic2_auth_fc/img/fc_logo_mini.png' %}"></img></div></a>
|
||||
<a class="button" href="{% url 'fc-login-or-link' %}?next={% url 'account_management' %}" title="{% trans 'Link with a FranceConnect account' %}" class="connexion"><div>{% trans "Link with a FranceConnect account" %}<img src="{% static 'authentic2_auth_fc/img/fc_logo_mini.png' %}"></img></div></a>
|
||||
</div>
|
||||
</div>
|
||||
</p>
|
||||
|
|
Loading…
Reference in New Issue