From ef6d40bb6832ab7203675643acedd6c88ac60e0c Mon Sep 17 00:00:00 2001 From: Matthias Date: Wed, 1 Sep 2021 02:18:24 +0200 Subject: [PATCH] use btns for brand - names --- .../templates/InvenTree/settings/user.html | 5 +++-- .../socialaccount/snippets/provider_list.html | 17 +++++++++++++++++ 2 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 InvenTree/templates/socialaccount/snippets/provider_list.html diff --git a/InvenTree/templates/InvenTree/settings/user.html b/InvenTree/templates/InvenTree/settings/user.html index fec02b7b74..2002069c3b 100644 --- a/InvenTree/templates/InvenTree/settings/user.html +++ b/InvenTree/templates/InvenTree/settings/user.html @@ -136,10 +136,11 @@

{% trans 'Add a 3rd Party Account' %}

- + {% include "socialaccount/snippets/login_extra.html" %} +
diff --git a/InvenTree/templates/socialaccount/snippets/provider_list.html b/InvenTree/templates/socialaccount/snippets/provider_list.html new file mode 100644 index 0000000000..268134b35f --- /dev/null +++ b/InvenTree/templates/socialaccount/snippets/provider_list.html @@ -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 %} + {{brand.name}} +{% endfor %} +{% endif %} + {{provider.name}} +{% endfor %}