mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-10-30 20:55:42 +00:00 
			
		
		
		
	Refactor company buttons
This commit is contained in:
		| @@ -19,21 +19,26 @@ | |||||||
| {% include "admin_button.html" with url=url %} | {% include "admin_button.html" with url=url %} | ||||||
| {% endif %} | {% endif %} | ||||||
| {% if company.is_supplier and roles.purchase_order.add %} | {% if company.is_supplier and roles.purchase_order.add %} | ||||||
| <button type='button' class='btn btn-outline-secondary' id='company-order-2' title='{% trans "Create Purchase Order" %}'> | <button type='button' class='btn btn-outline-primary' id='company-order-2' title='{% trans "Create Purchase Order" %}'> | ||||||
|     <span class='fas fa-shopping-cart'/> |     <span class='fas fa-shopping-cart'/> | ||||||
| </button> | </button> | ||||||
| {% endif %} | {% endif %} | ||||||
| {% if perms.company.change_company %} | <button id='company-edit-actions' title='{% trans "Company actions" %}' class='btn btn-outline-secondary dropdown-toggle' type='button' data-bs-toggle='dropdown'> | ||||||
| <button type='button' class='btn btn-outline-secondary' id='company-edit' title='{% trans "Edit company information" %}'> |     <span class='fas fa-tools'></span> <span class='caret'></span> | ||||||
|     <span class='fas fa-edit icon-green'/> |  | ||||||
| </button> | </button> | ||||||
|  | <ul class='dropdown-menu' role='menu'> | ||||||
|  |     {% if perms.company.change_company %} | ||||||
|  |     <li><a class='dropdown-item' href='#' id='company-edit' title='{% trans "Edit company information" %}'> | ||||||
|  |         <span class='fas fa-edit icon-green'></span> {% trans "Edit Company" %} | ||||||
|  |     </a></li> | ||||||
|     {% endif %} |     {% endif %} | ||||||
|     {% if perms.company.delete_company %} |     {% if perms.company.delete_company %} | ||||||
| <button type='button' class='btn btn-outline-secondary' id='company-delete' title='{% trans "Delete Company" %}'> |     <li><a class='dropdown-item' href='#' id='company-delete' title='{% trans "Delete company" %}'> | ||||||
|     <span class='fas fa-trash-alt icon-red'/> |         <span class='fas fa-trash-alt icon-red'></span> {% trans "Delete Company" %} | ||||||
| </button> |     </a></li> | ||||||
|     {% endif %} |     {% endif %} | ||||||
| {% endblock %} | </ul> | ||||||
|  | {% endblock actions %} | ||||||
|  |  | ||||||
| {% block thumbnail %} | {% block thumbnail %} | ||||||
| <div class='dropzone part-thumb-container' id='company-thumb'> | <div class='dropzone part-thumb-container' id='company-thumb'> | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user