{% extends "modal_delete_form.html" %}
{% block pre_form_content %}
Are you sure you want to delete stock location '{{ location.name }}'?
{% if location.children.all|length > 0 %}
This location contains {{ location.children.all|length }} child locations.
If this location is deleted, these child locations will be moved to
{% if location.parent %}
the '{{ location.parent.name }}' location.
{% else %}
the top level 'Stock' location.
{% endif %}
This location contains {{ location.stock_items.all|length }} stock items.
{% if location.parent %}
If this location is deleted, these items will be moved to the '{{ location.parent.name }}' location.
{% else %}
If this location is deleted, these items will be moved to the top level 'Stock' location.
{% endif %}