{% extends "build/build_base.html" %}
{% load static %}
{% load i18n %}

{% block menubar %}
{% include "build/navbar.html" with tab="children" %}
{% endblock %}

{% block heading %}
{% trans "Child Build Orders" %}
{% endblock %}


{% block details %}
<div id='button-toolbar'>
    <div class='button-toolbar container-fluid float-right'>
        <div class='filter-list' id='filter-list-sub-build'>
            <!-- Empty div for filters -->
        </div>
    </div>

</div>

<table class='table table-striped table-condensed' id='sub-build-table' data-toolbar='#button-toolbar'></table>

{% endblock %}

{% block js_ready %}

{{ block.super }}

loadBuildTable($('#sub-build-table'), {
    url: '{% url "api-build-list" %}',
    filterTarget: "#filter-list-sub-build",
    params: {
        ancestor: {{ build.pk }},
    }
});

{% endblock %}