mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-11-04 15:15:42 +00:00 
			
		
		
		
	Updates for various part views
This commit is contained in:
		@@ -181,6 +181,9 @@
 | 
				
			|||||||
    <div class='panel-content'>
 | 
					    <div class='panel-content'>
 | 
				
			||||||
        <div id='param-button-toolbar'>
 | 
					        <div id='param-button-toolbar'>
 | 
				
			||||||
            <div class='button-toolbar container-fluid' style='float: right;'>
 | 
					            <div class='button-toolbar container-fluid' style='float: right;'>
 | 
				
			||||||
 | 
					                <div class='btn-group' role='group'>
 | 
				
			||||||
 | 
					                    {% include "filter_list.html" with id="parameters" %}
 | 
				
			||||||
 | 
					                </div>
 | 
				
			||||||
            </div>
 | 
					            </div>
 | 
				
			||||||
        </div>
 | 
					        </div>
 | 
				
			||||||
        <table id='parameter-table' class='table table-condensed table-striped' data-toolbar="#param-button-toolbar"></table>
 | 
					        <table id='parameter-table' class='table table-condensed table-striped' data-toolbar="#param-button-toolbar"></table>
 | 
				
			||||||
@@ -217,7 +220,7 @@
 | 
				
			|||||||
        </div>
 | 
					        </div>
 | 
				
			||||||
    </div>
 | 
					    </div>
 | 
				
			||||||
    <div class='panel-content'>
 | 
					    <div class='panel-content'>
 | 
				
			||||||
        <div id='related-button-bar'>
 | 
					        <div id='related-button-toolbar'>
 | 
				
			||||||
            <div class='btn-group' role='group'>
 | 
					            <div class='btn-group' role='group'>
 | 
				
			||||||
                {% include "filter_list.html" with id="related" %}
 | 
					                {% include "filter_list.html" with id="related" %}
 | 
				
			||||||
            </div>
 | 
					            </div>
 | 
				
			||||||
@@ -344,6 +347,7 @@
 | 
				
			|||||||
                        <li><a class='dropdown-item' href='#' id='supplier-part-delete' title='{% trans "Delete supplier parts" %}'>{% trans "Delete" %}</a></li>
 | 
					                        <li><a class='dropdown-item' href='#' id='supplier-part-delete' title='{% trans "Delete supplier parts" %}'>{% trans "Delete" %}</a></li>
 | 
				
			||||||
                    </ul>
 | 
					                    </ul>
 | 
				
			||||||
                </div>
 | 
					                </div>
 | 
				
			||||||
 | 
					                {% include "filter_list.html" with id="supplier-part" %}
 | 
				
			||||||
            </div>
 | 
					            </div>
 | 
				
			||||||
        </div>
 | 
					        </div>
 | 
				
			||||||
        
 | 
					        
 | 
				
			||||||
@@ -371,6 +375,7 @@
 | 
				
			|||||||
                        <ul class="dropdown-menu">
 | 
					                        <ul class="dropdown-menu">
 | 
				
			||||||
                            <li><a class='dropdown-item' href='#' id='manufacturer-part-delete' title='{% trans "Delete manufacturer parts" %}'><span class='fas fa-trash-alt icon-red'></span> {% trans "Delete" %}</a></li>
 | 
					                            <li><a class='dropdown-item' href='#' id='manufacturer-part-delete' title='{% trans "Delete manufacturer parts" %}'><span class='fas fa-trash-alt icon-red'></span> {% trans "Delete" %}</a></li>
 | 
				
			||||||
                        </ul>
 | 
					                        </ul>
 | 
				
			||||||
 | 
					                        {% include "filter_list.html" with id="manufacturer-part" %}
 | 
				
			||||||
                    </div>
 | 
					                    </div>
 | 
				
			||||||
                </div>
 | 
					                </div>
 | 
				
			||||||
            </div>
 | 
					            </div>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -621,7 +621,9 @@ function loadPartParameterTable(table, url, options) {
 | 
				
			|||||||
        filters[key] = params[key];
 | 
					        filters[key] = params[key];
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    // setupFilterList("#part-parameters", $(table));
 | 
					    var filterTarget = options.filterTarget || '#filter-list-parameters';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    setupFilterList('part-parameters', $(table), filterTarget);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    $(table).inventreeTable({
 | 
					    $(table).inventreeTable({
 | 
				
			||||||
        url: url,
 | 
					        url: url,
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user