{% extends "collapse.html" %}

{% block collapse_title %}
Sub-Locations<span class='badge'>{{ children|length }}</span>
{% endblock %}

{% block collapse_content %}
<ul class="list-group">
{% for child in children %}
<li class="list-group-item"><a href="{% url 'stock-location-detail' child.id %}">{{ child.name }}</a> - <i>{{ child.description }}</i></li>
    <span class='badge'>{{ child.partcount }}</span>
</li>
{% endfor %}
</ul>
{% endblock %}