mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-10-30 20:55:42 +00:00 
			
		
		
		
	Show child builds
This commit is contained in:
		| @@ -10,7 +10,28 @@ | ||||
|  | ||||
| <hr> | ||||
|  | ||||
| <div id='button-toolbar'> | ||||
|     <div class='button-toolbar container-fluid float-right'> | ||||
|         <div class='filter-list' id='filter-list-sub-build'> | ||||
|             <!-- Empty div for filters --> | ||||
|         </div> | ||||
|     </div> | ||||
|  | ||||
| </div> | ||||
|  | ||||
| <table class='table table-striped table-condensed' id='sub-build-table' data-toolbar='#button-toolbar'></table> | ||||
|  | ||||
| {% endblock %} | ||||
|  | ||||
| {% block js_ready %} | ||||
|  | ||||
| loadBuildTable($('#sub-build-table'), { | ||||
|     url: '{% url "api-build-list" %}', | ||||
|     filterTarget: "#filter-list-sub-build", | ||||
|     params: { | ||||
|         part_detail: true, | ||||
|         ancestor: {{ build.pk }}, | ||||
|     } | ||||
| }); | ||||
|  | ||||
| {% endblock %} | ||||
| @@ -9,7 +9,7 @@ | ||||
| <hr> | ||||
|  | ||||
| <div id='button-toolbar'> | ||||
|     <div class='button-toolbar container-flui' style='float: right';> | ||||
|     <div class='button-toolbar container-fluid' style='float: right';> | ||||
|         {% if part.active %} | ||||
|         {% if roles.build.add %} | ||||
|         <button class="btn btn-success" id='start-build'><span class='fas fa-tools'></span> {% trans "Start New Build" %}</button> | ||||
|   | ||||
| @@ -618,7 +618,9 @@ function loadBuildTable(table, options) { | ||||
|         filters[key] = params[key]; | ||||
|     } | ||||
|  | ||||
|     setupFilterList("build", table); | ||||
|     var filterTarget = options.filterTarget || null; | ||||
|  | ||||
|     setupFilterList("build", table, filterTarget); | ||||
|  | ||||
|     $(table).inventreeTable({ | ||||
|         method: 'get', | ||||
|   | ||||
		Reference in New Issue
	
	Block a user