{% extends "part/part_base.html" %} {% block details %} {% include "part/tabs.html" with tab="allocation" %}

Part Allocation

{% if part.allocated_build_count > 0 %}

Allocated to Part Builds

{% for allocation in part.build_allocation %} {% endfor %}
Build Making Allocated Status
{{ allocation.build.title }} {{ allocation.build.quantity }} × {{ allocation.build.part.name }} {{ allocation.quantity }} {% include "build_status.html" with build=allocation.build %}
{% endif %} {% endblock %} {% block js_ready %} $("#build-table").bootstrapTable({ search: true, sortable: true, columns: [ { title: 'Build', sortable: true, }, { title: 'Making', sortable: true, }, { title: 'Allocated', sortable: false, }, { title: 'Status', sortable: false, } ] }); {% endblock %}