{% 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 %}
{% blocktrans with count=category.children.all|length%}This category contains {{count}} child categories{% endblocktrans %}.
{% 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 %}
{% blocktrans with count=category.parts.all|length %}This category contains {{count}} parts{% endblocktrans %}.
{% if category.parent %}
{% blocktrans with path=category.parent.pathstring %}If this category is deleted, these parts will be moved to the parent category {{path}}{% endblocktrans %}
{% else %}
{% trans 'If this category is deleted, these parts will be moved to the top-level category Teile' %}
{% endif %}