mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-10-31 05:05:42 +00:00 
			
		
		
		
	Add 'delete' button for supplier parts
This commit is contained in:
		| @@ -7,11 +7,16 @@ | |||||||
| <h3>Part Suppliers</h3> | <h3>Part Suppliers</h3> | ||||||
|  |  | ||||||
| <div id='button-toolbar'> | <div id='button-toolbar'> | ||||||
|     <button class="btn btn-success float-right" id='supplier-create'>New Supplier Part</button> |     <button class="btn btn-success" id='supplier-create'>New Supplier Part</button> | ||||||
|  |     <div id='opt-dropdown' class="dropdown" style='float: right;'> | ||||||
|  |         <button id='supplier-part-options' class="btn btn-primary dropdown-toggle" type="button" data-toggle="dropdown">Options | ||||||
|  |             <span class="caret"></span></button> | ||||||
|  |             <ul class="dropdown-menu"> | ||||||
|  |                 <li><a href='#' id='supplier-part-delete' title='Delete supplier parts'>Delete</a></li> | ||||||
|  |             </ul> | ||||||
|  |     </div> | ||||||
| </div> | </div> | ||||||
|  |  | ||||||
| <hr> |  | ||||||
|  |  | ||||||
| <table class="table table-striped table-condensed" id='supplier-table' data-toolbar='#button-toolbar'> | <table class="table table-striped table-condensed" id='supplier-table' data-toolbar='#button-toolbar'> | ||||||
| </table> | </table> | ||||||
|  |  | ||||||
| @@ -74,4 +79,6 @@ | |||||||
|         url: "{% url 'api-part-supplier-list' %}" |         url: "{% url 'api-part-supplier-list' %}" | ||||||
|     }); |     }); | ||||||
|  |  | ||||||
|  |     linkButtonsToSelection($("#supplier-table"), ['#supplier-part-options']) | ||||||
|  |  | ||||||
| {% endblock %} | {% endblock %} | ||||||
		Reference in New Issue
	
	Block a user