{% extends "modal_delete_form.html" %}

{% block pre_form_content %}

Are you sure you want to delete company '{{ company.name }}'?

<br>

{% if company.part_count > 0 %}
<p>There are {{ company.part_count }} parts sourced from this company.<br>
If this supplier is deleted, these supplier part entries will also be deleted.</p>
<ul class='list-group'>
{% for part in company.parts.all %}
<li class='list-group-item'><b>{{ part.SKU }}</b> - <i>{{ part.part.full_name }}</i></li>
{% endfor %}
</ul>
{% endif %}

{% endblock %}