{% import "macros/buttons.html" as buttons %} {% import "macros/forms.html" as forms %} {% import "macros/modal.html" as modal %} {% import "macros/icons.html" as icons %} {% extends "admin/oauth_providers/list.html" %} {% block head_title_content %}Create OAuth Provider ยท {{ super() }}{% endblock %} {% set open_modal = true %} {% block modal %}
{% call modal.header() %} {% call modal.title() %}Create OAuth Provider{% endcall %} {% endcall %} {% call modal.body() %}
{{ forms.form_field(form.provider, **{"hx-post": url_for('dashboard.oauth_providers:create'), "hx-trigger": "change", "hx-target": "#modal"}) }} {{ forms.form_field(form.name) }} {% if form.openid_configuration_endpoint %} {{ forms.form_field(form.openid_configuration_endpoint) }} {% endif %} {{ forms.form_field(form.client_id) }} {{ forms.form_field(form.client_secret) }} {{ forms.form_field(form.scopes) }} {{ forms.form_csrf_token(form) }}
{% endcall %} {% call modal.footer() %} {% call buttons.submit('btn-sm') %} Create {% endcall %} {% endcall %}
{% endblock %}