This repository has been archived on 2023-02-21. You can view files and clone it, but cannot push or open issues or pull requests.
authentic2-auth-fc/src/authentic2_auth_fc/templates/authentic2_auth_fc/linking.html

56 lines
2.5 KiB
HTML

{% load i18n %}
{% load sekizai_tags %}
{% load staticfiles %}
{% addtoblock "css" %}<link rel="stylesheet" type="text/css" href="{% static 'authentic2_auth_fc/css/screen.fc.css' %}"></link>{% endaddtoblock %}
{% addtoblock "js" %}<script type="text/javascript" src="{% static "authentic2_auth_fc/js/domready.js" %}"></script>{% endaddtoblock %}
{% addtoblock "js" %}<script type="text/javascript" src="{% static "authentic2_auth_fc/js/getElementsByClassName-1.0.1.js" %}"></script>{% endaddtoblock %}
{% addtoblock "js-endpage" %}<script type="text/javascript" src="{% static "authentic2_auth_fc/js/oauth.js" %}"></script>{% endaddtoblock %}
<div id="fc-linking">
{% if user.is_authenticated and user.fcaccount and user.fcaccount.refresh_token %}
<div class="fc">
<div class="cadre">
<p class="centrer">
<img src="{% static "authentic2_auth_fc/img/toutes_vos_demarches.png" %}" width="140" height="35" alt="Vous &ecirc;tes actuellement en connexion avec" />
<img src="{% static "authentic2_auth_fc/img/mon_service-public.fr.png" %}" width="125" height="30" alt="mon.Service-Public.fr" />
</p>
<ul class="fond">
<li class="picto">
<p class="lien">
<a href="{% url "fc-more-redirect" %}" target="_blank" class="roll">En savoir plus</a>
</p>
</li>
<li class="picto utilisateur">
<p class="lien">
<a href="{% url "fc-link-management" %}?next={{ request.get_full_path|urlencode }}" class="roll">G&eacute;rer mes liaisons</a>
</p>
</li>
</ul>
</div>
</div>
{% else %}
<div class="fc" style="width: 300px">
<div class="cadre">
<p class="centrer">
<img src="{% static "authentic2_auth_fc/img/toutes_vos_demarches.png" %}" width="140" height="35" alt="Vous &ecirc;tes actuellement en connexion avec" />
<img src="{% static "authentic2_auth_fc/img/mon_service-public.fr.png" %}" width="125" height="30" alt="mon.service-public.fr" />
</p>
<ul class="fond">
<li class="picto">
<p class="lien">
<a href="{% url "fc-more-redirect" %}" target="_blank" class="roll">En savoir plus</a>
</p>
</li>
<li class="picto utilisateur">
<p class="lien">
<a href="{% url 'fc-link' %}?next={{ request.get_full_path }}{% if popup %}&popup=1{% endif %}"
class="{% if popup %}js-oauth-popup{% endif %} roll db">Cr&eacute;er une liaison avec mon.service-public.fr</a>
</p>
</li>
</ul>
</div>
</div>
{% endif %}
</div>