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

{% block headerTitle 'Delete Deal Field' %}

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

    <div class="panel panel-danger">
        <div class="panel-heading">
            <h3 class="panel-title">Delete deal field</h3>
        </div>
        <div class="panel-body">
            <p>
                Delete <strong>{{ field.getLabel() }}</strong> (<code>{{ field.getAlias() }}</code>)?
            </p>
            <p class="text-muted mb-0">
                This removes the field definition and deletes stored values for this field from existing deals.
            </p>
        </div>
    </div>

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