{% extends "modal_delete_form.html" %} {% load i18n %} {% block pre_form_content %} {% trans 'Are you sure you want to delete category' %} {{ category.name }}? {% if category.children.all|length > 0 %}

{% trans 'This category contains' %} {{ category.children.all|length }} {% trans 'child categories' %}.
{% trans 'If this category is deleted, these child categories will be moved to the' %} {% if category.parent %} {{ category.parent.name }} {% trans 'category' %}. {% else %} {% trans 'top level Parts category' %}. {% endif %}

{% endif %} {% if category.parts.all|length > 0 %}

{% trans 'This category contains' %} {{ category.parts.all|length }} {% trans 'parts' %}.
{% if category.parent %} {% trans 'If this category is deleted, these parts will be moved to the parent category' %} {{ category.parent.pathstring }} {% else %} {% trans 'If this category is deleted, these parts will be moved to the top-level category Teile' %} {% endif %}

{% endif %} {% endblock %}