{% extends 'pages/settings/settings.twig' %} {% import 'macros/form.twig' as f %} {% block title %}{{ __('settings.oauth') }}{% endblock %} {% block container_title %}

{{ __('settings.settings') }} {{ block('title') }}

{% endblock %} {% block row_content %} {% for name,config in providers %} {% endfor %}
{{ __('settings.oauth.identity-provider') }}
{% if config.url|default %} {{ __(config.name|default(name|capitalize)) }} {% else %} {{ __(config.name|default(name|capitalize)) }} {% endif %} {% if not user.oauth.contains('provider', name) %}
{{ csrf() }} {{ f.submit(__('form.connect'), {'size' : 'sm', 'icon_left': 'box-arrow-in-right'}) }}
{% else %}
{{ csrf() }} {{ f.submit(__('form.disconnect'), {'btn_type': 'danger', 'size' : 'sm', 'icon_left': 'box-arrow-right'}) }}
{% endif %}
{% endblock %}