{% extends "part/part_base.html" %} {% load static %} {% block details %} {% include 'part/tabs.html' with tab='suppliers' %}

Part Suppliers


{% endblock %} {% block js_load %} {{ block.super }} {% endblock %} {% block js_ready %} {{ block.super }} $('#supplier-create').click(function () { launchModalForm( "{% url 'supplier-part-create' %}", { reload: true, data: {part: {{ part.id }} } }); }); $("#supplier-table").bootstrapTable({ sortable: true, search: true, queryParams: function(p) { return { part: {{ part.id }} } }, columns: [ { checkbox: true, }, { sortable: true, field: 'supplier', title: 'Supplier', formatter: function(value, row, index, field) { return renderLink(value.name, value.url); } }, { sortable: true, field: 'SKU', title: 'SKU', formatter: function(value, row, index, field) { return renderLink(value, row.url); } }, { sortable: true, field: 'manufacturer', title: 'Manufacturer', }, { sortable: true, field: 'MPN', title: 'MPN', } ], url: "{% url 'api-part-supplier-list' %}" }); {% endblock %}