2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-19 21:45:39 +00:00

Improved table rendering

This commit is contained in:
Oliver Walters
2019-05-04 00:02:53 +10:00
parent f286effd62
commit 2eb825b0e6
6 changed files with 6 additions and 12 deletions

View File

@ -40,6 +40,7 @@
$("#supplier-table").bootstrapTable({
sortable: true,
search: true,
formatNoMatches: function() { return "No supplier parts available for {{ part.name }}"; },
queryParams: function(p) {
return {
part: {{ part.id }}

View File

@ -6,21 +6,9 @@
<h3>Used In</h3>
{% if part.used_in_count > 0 %}
<p>
<b>{{ part.name }}</b> is used to make {{ part.used_in_count }} other parts.
</p>
<table class="table table-striped table-condensed" id='used-table'>
</table>
{% else %}
<p>
{{ part.name }} is not used to make any other parts.
</p>
{% endif %}
{% endblock %}
{% block js_ready %}
@ -29,6 +17,7 @@
$("#used-table").bootstrapTable({
sortable: true,
search: true,
formatNoMatches: function() { return "{{ part.name }} is not used to make any other parts"; },
queryParams: function(p) {
return {
sub_part: {{ part.id }}