mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-10-31 13:15:43 +00:00 
			
		
		
		
	More sidebar action
This commit is contained in:
		| @@ -6,8 +6,8 @@ | ||||
| InvenTree | {% trans "Manufacturer Part" %} | ||||
| {% endblock %} | ||||
|  | ||||
| {% block menubar %} | ||||
| {% include "company/manufacturer_part_navbar.html" %} | ||||
| {% block sidebar %} | ||||
| {% include "company/manufacturer_part_sidebar.html" %} | ||||
| {% endblock %} | ||||
|  | ||||
| {% block breadcrumbs %} | ||||
| @@ -153,11 +153,6 @@ src="{% static 'img/blank_image.png' %}" | ||||
| {% block js_ready %} | ||||
| {{ block.super }} | ||||
|  | ||||
| enableNavbar({ | ||||
|     label: 'manufacturer-part', | ||||
|     toggleId: '#manufacturer-part-menu-toggle' | ||||
| }); | ||||
|  | ||||
| function reloadParameters() { | ||||
|     $("#parameter-table").bootstrapTable("refresh"); | ||||
| } | ||||
| @@ -315,9 +310,6 @@ $('#delete-part').click(function() { | ||||
|     }); | ||||
| }); | ||||
|  | ||||
| attachNavCallbacks({ | ||||
|     name: 'manufacturerpart', | ||||
|     default: 'parameters' | ||||
| }); | ||||
| enableSidebar('manufacturerpart'); | ||||
|  | ||||
| {% endblock %} | ||||
| @@ -1,41 +0,0 @@ | ||||
| {% load i18n %} | ||||
|  | ||||
| <ul class='list-group'> | ||||
|  | ||||
|     <li class='list-group-item'> | ||||
|         <a href='#' id='manufacturer-part-menu-toggle'> | ||||
|             <span class='menu-tab-icon fas fa-expand-arrows-alt'></span> | ||||
|         </a> | ||||
|     </li> | ||||
|  | ||||
|     <li class='list-group-item' title='{% trans "Parameters" %}'> | ||||
|         <a href='#' id='select-parameters' class='nav-toggle'> | ||||
|             <span class='fas fa-th-list sidebar-icon'></span> | ||||
|             {% trans "Parameters" %} | ||||
|         </a> | ||||
|     </li> | ||||
|  | ||||
|     <li class='list-group-item' title='{% trans "Supplier Parts" %}'> | ||||
|         <a href='#' id='select-supplier-parts' class='nav-toggle'> | ||||
|             <span class='fas fa-building sidebar-icon'></span> | ||||
|             {% trans "Suppliers" %} | ||||
|         </a> | ||||
|     </li> | ||||
|  | ||||
|     {% comment "for later" %} | ||||
|     <li class='list-group-item {% if tab == "stock" %}active{% endif %}' title='{% trans "Manufacturer Part Stock" %}'> | ||||
|         <a href='#'> | ||||
|             <span class='fas fa-boxes sidebar-icon'></span> | ||||
|             {% trans "Stock" %} | ||||
|         </a> | ||||
|     </li> | ||||
|      | ||||
|     <li class='list-group-item {% if tab == "orders" %}active{% endif %}' title='{% trans "Manufacturer Part Orders" %}'> | ||||
|         <a href='#'> | ||||
|             <span class='fas fa-shopping-cart sidebar-icon'></span> | ||||
|             {% trans "Orders" %} | ||||
|         </a> | ||||
|     </li> | ||||
|     {% endcomment %} | ||||
|  | ||||
| </ul> | ||||
| @@ -0,0 +1,6 @@ | ||||
| {% load i18n %} | ||||
| {% load static %} | ||||
| {% load inventree_extras %} | ||||
|  | ||||
| {% include "sidebar_item.html" with label='parameters' text="Parameters" icon="fa-th-list" %} | ||||
| {% include "sidebar_item.html" with label='supplier-parts' text="Supplier Parts" icon="fa-building" %} | ||||
| @@ -7,8 +7,8 @@ | ||||
| {% inventree_title %} | {% trans "Supplier Part" %} | ||||
| {% endblock %} | ||||
|  | ||||
| {% block menubar %} | ||||
| {% include "company/supplier_part_navbar.html" %} | ||||
| {% block sidebar %} | ||||
| {% include "company/supplier_part_sidebar.html" %} | ||||
| {% endblock %} | ||||
|  | ||||
| {% block breadcrumbs %} | ||||
| @@ -308,12 +308,6 @@ $("#item-create").click(function() { | ||||
|     }); | ||||
| }); | ||||
|  | ||||
|  | ||||
| enableNavbar({ | ||||
|     label: 'supplier-part', | ||||
|     toggleId: '#supplier-part-menu-toggle' | ||||
| }) | ||||
|  | ||||
| $('#order-part, #order-part2').click(function() { | ||||
|     launchModalForm( | ||||
|         "{% url 'order-parts' %}", | ||||
| @@ -344,9 +338,6 @@ $('#delete-part').click(function() { | ||||
|     }); | ||||
| }); | ||||
|  | ||||
| attachNavCallbacks({ | ||||
|     name: 'supplierpart', | ||||
|     default: 'stock' | ||||
| }); | ||||
| enableSidebar('supplierpart'); | ||||
|  | ||||
| {% endblock %} | ||||
| @@ -0,0 +1,7 @@ | ||||
| {% load i18n %} | ||||
| {% load static %} | ||||
| {% load inventree_extras %} | ||||
|  | ||||
| {% include "sidebar_item.html" with label='stock' text="Stock Items" icon="fa-boxes" %} | ||||
| {% include "sidebar_item.html" with label='purchase-orders' text="Purchase Orders" icon="fa-shopping-cart" %} | ||||
| {% include "sidebar_item.html" with label='pricing' text="Supplier Part Pricing" icon="fa-dollar-sign" %} | ||||
		Reference in New Issue
	
	Block a user