{% extends "part/part_base.html" %}
{% load i18n %}

{% block menubar %}
{% include 'part/navbar.html' with tab='used' %}
{% endblock %}

{% block heading %}
{% trans "Assemblies" %}
{% endblock %}

{% block details %}

<div id='button-toolbar'>
    <div class='filter-list' id='filter-list-usedin'>
        <!-- Empty div (will be filled out with avilable BOM filters) -->
    </div>
</div>

<table class="table table-striped table-condensed" id='used-table' data-toolbar='#button-toolbar'>
</table>

{% endblock %}

{% block js_ready %}
{{ block.super }}

    loadPartTable('#used-table',
        '{% url "api-part-list" %}',
        {
            params: {
                uses: {{ part.pk }},
            },
            filterTarget: '#filter-list-usedin',
        }
    );


{% endblock %}