{% extends "pretixcontrol/organizers/base.html" %}
{% load i18n %}
{% load bootstrap3 %}
{% block inner %}
    <h1>{% trans "Delete SSO provider:" %} {{ provider.name }}</h1>
    <form action="" method="post" class="form-horizontal">
        {% csrf_token %}
        {% if is_allowed %}
            <p>{% blocktrans %}Are you sure you want to delete this SSO provider?{% endblocktrans %}
        {% else %}
            <p>{% blocktrans %}This SSO provider cannot be deleted since it has already been used.{% endblocktrans %}
        {% endif %}
        </p>
        <div class="form-group submit-group">
            <a href="{% url "control:organizer.ssoproviders" organizer=request.organizer.slug %}" class="btn btn-default btn-cancel">
                {% trans "Cancel" %}
            </a>
            {% if is_allowed %}
                <button type="submit" class="btn btn-danger btn-save">
                    {% trans "Delete" %}
                </button>
            {% endif %}
        </div>
    </form>
{% endblock %}
