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

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

{% block heading %}
{% trans "Required Parts" %}
{% endblock %}

{% block details %}
<table class='table table-striped table-condensed' id='parts-table'></table>

{% endblock %}

{% block js_ready %}

{{ block.super }}

loadBuildPartsTable($('#parts-table'), {
    part: {{ build.part.pk }},
    build: {{ build.pk }},
    build_quantity: {{ build.quantity }},
    build_remaining: {{ build.remaining }},
});

{% endblock %}