{% extends "dashboard/base.html" %} {% load i18n %} {% load mptt_tags %} {% block title %}{% trans "Delete category" %} - {{ block.super }}{% endblock %} {% block body_class %}body-categories{% endblock %} {% block content %}
{% csrf_token %}

{% blocktrans with category=category %} Are you sure you want to delete the category {{ category }}? {% endblocktrans %}

{% if descendants %} {% trans 'The following child categories will be deleted:' %}
    {% recursetree descendants %}
  • {{ node.name }} {% if not node.is_leaf_node %}
      {{ children }}
    {% endif %}
  • {% endrecursetree %}
{% endif %} {% if products_count %} {% blocktrans count counter=products_count %} There is one product in this category that will be deleted. {% plural %} There are {{ counter }} products in this category that will be deleted. {% endblocktrans %} {% endif %}
{% trans "Cancel" %}
{% endblock %}