{% extends 'base.html' %} {% from "macros/_modals.html" import warningModal %} {% block main %}
Info
{{ form.hidden_tag() }}
{{ form.name() }} {{ form.name.label }}
{% if current_user.has_permission("delete_menu_category") %}

Delete {{ category.name }}


{% if category.menu_groups %}

This category is used by [{% for menu_group in category.menu_groups %} {{ menu_group.name }}, {% endfor %}].

You must remove any links before you can delete this category.

{% else %} {% call warningModal(url_for('menu.delete_category', category_id=category.id)) %}

Confirm Deletion

Are you sure you want to delete this category? This action cannot be undone.

Deleting this category will permanently remove it from the system.

{% endcall %} {% endif %}
{% endif %}
{% endblock %}