{% extends "base.html" %}
{% comment %}
SPDX-License-Identifier: GPL-3.0-or-later
{% endcomment %}
{% load i18n crispy_forms_tags %}

{% block content %}
    <div class="card bg-light">
        <div class="card-header text-center">
            <h4>{% trans "Delete dish" %}</h4>
        </div>
        <div class="card-body">
            <div class="alert alert-warning">
                {% blocktrans %}Are you sure you want to delete this dish? This action can't be undone.{% endblocktrans %}
            </div>
        </div>
        <div class="card-footer text-center">
            <form method="post">
                {% csrf_token %}
                <a class="btn btn-primary" href="{% url 'food:dish_detail' activity_pk=object.activity.pk pk=object.pk%}">{% trans "Return to dish detail" %}</a>
                <button class="btn btn-danger" type="submit">{% trans "Delete" %}</button>
            </form>
        </div>
    </div>
{% endblock %}
