{% extends "modal_delete_form.html" %} {% load i18n %} {% block pre_form_content %}
{% trans "Are you sure you want to delete this part category?" %}
{% if category.children.all|length > 0 %}
{% blocktrans with n=category.children.all|length %}This category contains {{ n }} child categories{% endblocktrans %}.
{% if category.parent %} {% blocktrans with category=category.parent.name %}If this category is deleted, these child categories will be moved to {{ category }}{% endblocktrans %}. {% else %} {% trans "If this category is deleted, these child categories will be moved to the top level part category" %}. {% endif %}
{% endif %} {% if category.parts.all|length > 0 %}
{% blocktrans with n=category.parts.all|length %}This category contains {{ n }} parts{% endblocktrans %}.
{% if category.parent %} {% blocktrans with category=category.parent.name %}If this category is deleted, these parts will be moved to {{ category }}{% endblocktrans %}. {% else %} {% trans "If this category is deleted, these parts will be moved to the top level part category" %}. {% endif %}
{% endif %} {% endblock %}