{% extends "base.html" %} {% load static %} {% load i18n %} {% block page_title %} InvenTree | {% trans "Supplier List" %} {% endblock %} {% block content %}

{% trans "Supplier List" %}


{% endblock %} {% block js_ready %} {{ block.super }} $('#new-company').click(function () { launchModalForm( "{% url 'company-create' %}", { follow: true }); }); $("#company-table").inventreeTable({ formatNoMatches: function() { return "No company information found"; }, columns: [ { field: 'pk', title: '{% trans "ID" %}', visible: false, }, { field: 'name', title: '{% trans "Supplier" %}', sortable: true, formatter: function(value, row, index, field) { return imageHoverIcon(row.image) + renderLink(value, row.url); } }, { field: 'description', title: '{% trans "Description" %}', sortable: true, }, { field: 'website', title: '{% trans "Website" %}', formatter: function(value, row, index, field) { if (value) { return renderLink(value, value); } return ''; } }, { field: 'part_count', title: '{% trans "Parts" %}', sortable: true, formatter: function(value, row, index, field) { return renderLink(value, row.url + 'parts/'); } }, ], url: "{% url 'api-company-list' %}" }); {% endblock %}