{% extends "base.html" %} {% load static %} {% block content %}

Allocate Parts for Build

{{ build.title }}


{% endblock %} {% block js_load %} {{ block.super }} {% endblock %} {% block js_ready %} {{ block.super }} $('#build-table').bootstrapTable({ sortable: true, columns: [ { field: 'sub_part.name', title: 'Part', }, { title: 'Source', }, { field: 'quantity', title: 'Quantity', } ], }); getBomList({part: {{ build.part.id }}}).then(function(response) { $("#build-table").bootstrapTable('load', response); }); {% endblock %}