Fix display of location list

This commit is contained in:
Oliver Walters 2019-09-08 19:21:40 +10:00
parent 3eb3c43e5c
commit b554af5f10

View File

@ -7,8 +7,8 @@ Sub-Locations<span class='badge'>{{ children|length }}</span>
{% block collapse_content %} {% block collapse_content %}
<ul class="list-group"> <ul class="list-group">
{% for child in children %} {% 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> <li class="list-group-item"><a href="{% url 'stock-location-detail' child.id %}">{{ child.name }}</a> - <i>{{ child.description }}</i>
<span class='badge'>{{ child.partcount }}</span> <span class='badge'>{{ child.item_count }}</span>
</li> </li>
{% endfor %} {% endfor %}
</ul> </ul>