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

Company Parts

{% endblock %} {% block js_load %} {% endblock %} {% block js_ready %} {{ block.super }} $("#part-create").click(function () { launchModalForm("#modal-form", "{% 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); } }, { sortable: true, field: 'SKU', title: 'SKU', formatter: function(value, row, index, field) { return renderLink(value, row.url); } }, { sortable: true, field: 'manufacturer', title: 'Manufacturer', } ], url: "{% url 'api-part-supplier-list' %}" }); {% endblock %}