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

{{ 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'), {'btn_size' : 'xs'}) }}
{% else %}
{{ csrf() }} {{ f.submit(__('form.disconnect'), {'btn_type': 'danger', 'btn_size' : 'xs'}) }}
{% endif %}
{% endblock %}