{% extends '@MauticCore/Default/content.html.twig' %}

{% block headerTitle 'Delete Inbound Webhook Source' %}

{% block content %}
    {{ include('@DealFlow/Deal/_nav.html.twig') }}

    <div class="panel panel-default">
        <div class="panel-heading"><strong>Delete {{ source.getName() }}</strong></div>
        <div class="panel-body">
            <p class="mb-md">
                This removes the source-specific endpoint <code>{{ path('mautic_public_dealflow_webhook_source', {'sourceKey': source.getSourceKey()}) }}</code>.
            </p>

            <form method="post">
                <input type="hidden" name="_token" value="{{ csrf_token('dealflow_inbound_webhook_delete_' ~ source.getId()) }}">
                <div class="btn-group">
                    <button class="btn btn-danger" type="submit">Delete Source</button>
                    <a class="btn btn-default" href="{{ cancelUrl }}">Cancel</a>
                </div>
            </form>
        </div>
    </div>
{% endblock %}
