{% extends "company/company_base.html" %} {% load static %} {% block details %} {% include 'company/tabs.html' with tab='parts' %}

Supplier Parts


{% endblock %} {% block js_ready %} {{ block.super }} $("#part-create").click(function () { launchModalForm( "{% url 'supplier-part-create' %}", { data: { supplier: {{ company.id }} }, reload: true, }); }); $("#part-table").bootstrapTable({ sortable: true, search: true, queryParams: function(p) { return { supplier: {{ company.id }} } }, columns: [ { checkbox: true, }, { sortable: true, field: 'part', title: 'Part', formatter: function(value, row, index, field) { return renderLink(value.name, value.url + 'suppliers/'); } }, { 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 %}