feat(templates): Tweak

This commit is contained in:
Tom Hubrecht 2024-09-18 22:20:17 +02:00
parent 97535a6bc0
commit 35d6a7fa8c
Signed by: thubrecht
SSH key fingerprint: SHA256:r+nK/SIcWlJ0zFZJGHtlAoRwq1Rm+WcKAm5ADYMoQPc
4 changed files with 21 additions and 3 deletions

View file

@ -21,7 +21,7 @@
</span>
</a>
{% else %}
<a href="{% url 'login' %}" class="button is-light is-pulled-right">
<a href="{% url 'account_login' %}" class="button is-light is-pulled-right">
<span>
<span>{% trans "Connexion" %}</span>
<span class="icon">

View file

@ -1 +1 @@
<a class="cell button is-primary is-light" title="{{ attrs.name }}" href="{{ attrs.href }}">{{ attrs.name }}</a>
<a class="cell button is-{{ attrs.color }} is-light py-4" title="{{ attrs.name }}" href="{{ attrs.href }}">{{ attrs.name }}</a>

View file

@ -15,7 +15,7 @@
</span>
</a>
<a href="{% provider_login_url 'kanidm' %}"
<a href="{% provider_login_url 'ens_cas' %}"
class="cell has-background-primary p-6 has-radius-normal has-text-centered has-text-white">
<span class="icon-text">
<span class="icon">

View file

@ -0,0 +1,18 @@
{% load allauth socialaccount %}
{% get_providers as socialaccount_providers %}
{% if socialaccount_providers %}
{% element provider_list %}
{% for provider in socialaccount_providers %}
{% if provider.id == "openid" %}
{% for brand in provider.get_brands %}
{% provider_login_url provider openid=brand.openid_url process=process as href %}
{% element provider name=brand.name provider_id=provider.id href=href color=provider.app.settings.color %}
{% endelement %}
{% endfor %}
{% endif %}
{% provider_login_url provider process=process scope=scope auth_params=auth_params as href %}
{% element provider name=provider.name provider_id=provider.id href=href color=provider.app.settings.color %}
{% endelement %}
{% endfor %}
{% endelement %}
{% endif %}