2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-18 21:15:41 +00:00
Files
InvenTree/InvenTree/templates/socialaccount/snippets/provider_list.html
Matthias Mair 10c3d101e8 Replace mklint with djlint (#4746)
* remove markuplint

* remove dedicated html step - will be done by pre-commit

* add djlint for django template linting

* Fix T003: Endblock should have name

* Fix H013: Img tag should have an alt attribute

* Fix H014: Found extra blank lines

* Fix T003: Endblock should have name

* Fix H013: Img tag should have an alt attribute

* small fixes

* Fix T001: Variables should be wrapped in a single whitespace

* Fix T003: Endblock should have name

* small fixes

* fix form method

* add entry to contributing

* fix template changes

* another fix

* use current version
2023-05-02 20:03:52 +10:00

23 lines
955 B
HTML

{% load socialaccount %}
{% get_providers as socialaccount_providers %}
<ul class='sso-provider-list'>
{% for provider in socialaccount_providers %}
<li class='sso-provider-link'>
{% if provider.id == "openid" %}
{% for brand in provider.get_brands %}
<a title="{{ brand.name }}" brand_name='{{ provider.id }}'
class="btn btn-light socialaccount_provider {{ provider.id }} {{ brand.id }}"
href="{% provider_login_url provider.id openid=brand.openid_url process=process %}">
<span class='brand-icon' brand_name='{{ provider.id }}'></span> {{ brand.name }}</a>
{% endfor %}
{% endif %}
<a title="{{ provider.name }}" brand_name='{{ provider.id }}'
class="btn btn-light socialaccount_provider {{ provider.id }}"
href="{% provider_login_url provider.id process=process scope=scope auth_params=auth_params %}"
><span class='brand-icon' brand_name='{{ provider.id }}'></span> {{ provider.name }}</a>
</li>
{% endfor %}
</ul>