mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
use btns for brand - names
This commit is contained in:
parent
1595b7e516
commit
ef6d40bb68
@ -136,10 +136,11 @@
|
|||||||
|
|
||||||
<br>
|
<br>
|
||||||
<h4>{% trans 'Add a 3rd Party Account' %}</h4>
|
<h4>{% trans 'Add a 3rd Party Account' %}</h4>
|
||||||
<ul>
|
<div>
|
||||||
{% include "socialaccount/snippets/provider_list.html" with process="connect" %}
|
{% include "socialaccount/snippets/provider_list.html" with process="connect" %}
|
||||||
</ul>
|
</div>
|
||||||
{% include "socialaccount/snippets/login_extra.html" %}
|
{% include "socialaccount/snippets/login_extra.html" %}
|
||||||
|
<br>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -0,0 +1,17 @@
|
|||||||
|
{% load socialaccount %}
|
||||||
|
|
||||||
|
{% get_providers as socialaccount_providers %}
|
||||||
|
|
||||||
|
{% for provider in socialaccount_providers %}
|
||||||
|
{% if provider.id == "openid" %}
|
||||||
|
{% for brand in provider.get_brands %}
|
||||||
|
<a title="{{brand.name}}"
|
||||||
|
class="btn btn-primary 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}}" class="btn btn-primary 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>
|
||||||
|
{% endfor %}
|
Loading…
Reference in New Issue
Block a user