mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-10-31 13:15:43 +00:00 
			
		
		
		
	Driving the refactor tractor around the farm
This commit is contained in:
		| @@ -11,18 +11,23 @@ | ||||
|  | ||||
| <div class='panel panel-hidden' id='panel-supplier-parts'> | ||||
|     <div class='panel-heading'> | ||||
|         <h4>{% trans "Supplier Parts" %}</h4> | ||||
|         <div class='d-flex flex-row'> | ||||
|             <h4>{% trans "Supplier Parts" %}</h4> | ||||
|             {% include "spacer.html" %} | ||||
|             <div class='btn-group' role='group'> | ||||
|                 {% if roles.purchase_order.add %} | ||||
|                     <button class="btn btn-success" id='supplier-part-create' title='{% trans "Create new supplier part" %}'> | ||||
|                         <span class='fas fa-plus-circle'></span> {% trans "New Supplier Part" %} | ||||
|                     </button> | ||||
|                 {% endif %} | ||||
|             </div> | ||||
|         </div> | ||||
|     </div> | ||||
|     <div class='panel-content'> | ||||
|         {% if roles.purchase_order.change %} | ||||
|         <div id='supplier-part-button-toolbar'> | ||||
|             <div class='button-toolbar container-fluid'> | ||||
|                 <div class='btn-group' role='group'> | ||||
|                     {% if roles.purchase_order.add %} | ||||
|                         <button class="btn btn-success" id='supplier-part-create' title='{% trans "Create new supplier part" %}'> | ||||
|                             <span class='fas fa-plus-circle'></span> {% trans "New Supplier Part" %} | ||||
|                         </button> | ||||
|                     {% endif %} | ||||
|                     <div class='btn-group'> | ||||
|                         <button class="btn btn-primary dropdown-toggle" id='supplier-table-options' type="button" data-bs-toggle="dropdown">{% trans "Options" %} | ||||
|                             <span class="caret"></span> | ||||
| @@ -107,20 +112,26 @@ | ||||
|  | ||||
| <div class='panel panel-hidden' id='panel-purchase-orders'> | ||||
|     <div class='panel-heading'> | ||||
|         <h4>{% trans "Purchase Orders" %}</h4> | ||||
|         <div class='d-flex flex-row'> | ||||
|             <h4>{% trans "Purchase Orders" %}</h4> | ||||
|             {% include "spacer.html" %} | ||||
|             <div class='btn-group' role='group'> | ||||
|                 {% if roles.purchase_order.add %} | ||||
|                 <button class='btn btn-success' type='button' id='company-order2' title='{% trans "Create new purchase order" %}'> | ||||
|                     <span class='fas fa-plus-circle'></span> {% trans "New Purchase Order" %} | ||||
|                 </button> | ||||
|                 {% endif %} | ||||
|             </div> | ||||
|         </div> | ||||
|     </div> | ||||
|     <div class='panel-content'> | ||||
|         {% if roles.purchase_order.add %} | ||||
|         <div id='po-button-bar'> | ||||
|             <div class='button-toolbar container-fluid' style='float: right;'> | ||||
|                 <button class='btn btn-success' type='button' id='company-order2' title='{% trans "Create new purchase order" %}'> | ||||
|                     <span class='fas fa-plus-circle'></span> {% trans "New Purchase Order" %}</button> | ||||
|                 <div class='filter-list' id='filter-list-purchaseorder'> | ||||
|                     <!-- Empty div --> | ||||
|                 </div> | ||||
|             </div> | ||||
|         </div> | ||||
|         {% endif %} | ||||
|  | ||||
|         <table class='table table-striped table-condensed po-table' id='purchase-order-table' data-toolbar='#po-button-bar'> | ||||
|         </table> | ||||
| @@ -129,21 +140,26 @@ | ||||
|  | ||||
| <div class='panel panel-hidden' id='panel-sales-orders'> | ||||
|     <div class='panel-heading'> | ||||
|         <h4>{% trans "Sales Orders" %}</h4> | ||||
|     </div> | ||||
|     <div class='panel-content'> | ||||
|         {% if roles.sales_order.add %} | ||||
|         <div id='so-button-bar'> | ||||
|             <div class='button-toolbar container-fluid' style='float: right;'> | ||||
|         <div class='d-flex flex-row'> | ||||
|             <h4>{% trans "Sales Orders" %}</h4> | ||||
|             {% include "spacer.html" %} | ||||
|             <div class='btn-group' role='group'> | ||||
|                 {% if roles.sales_order.add %} | ||||
|                 <button class='btn btn-success' type='button' id='new-sales-order' title='{% trans "Create new sales order" %}'> | ||||
|                     <div class='fas fa-plus-circle'></div> {% trans "New Sales Order" %} | ||||
|                 </button> | ||||
|                 {% endif %} | ||||
|             </div> | ||||
|         </div> | ||||
|     </div> | ||||
|     <div class='panel-content'> | ||||
|         <div id='so-button-bar'> | ||||
|             <div class='button-toolbar container-fluid' style='float: right;'> | ||||
|                 <div class='filter-list' id='filter-list-salesorder'> | ||||
|                     <!-- Empty div --> | ||||
|                 </div> | ||||
|             </div> | ||||
|         </div> | ||||
|         {% endif %} | ||||
|  | ||||
|         <table class='table table-striped table-condensed po-table' id='sales-order-table' data-toolbar='#so-button-bar'> | ||||
|         </table> | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| {% extends "base.html" %} | ||||
| {% extends "page_base.html" %} | ||||
|  | ||||
| {% load static %} | ||||
| {% load i18n %} | ||||
| @@ -8,23 +8,28 @@ | ||||
| {% inventree_title %} | {% trans "Supplier List" %}  | ||||
| {% endblock %} | ||||
|  | ||||
| {% block content %} | ||||
|  | ||||
| <h3>{{ title }}</h3> | ||||
| <hr> | ||||
| {% block heading %} | ||||
| {{ title }} | ||||
| {% endblock %} | ||||
|  | ||||
| {% block actions %} | ||||
| {% if pagetype == 'manufacturers' and roles.purchase_order.add or pagetype == 'suppliers' and roles.purchase_order.add or pagetype == 'customers' and roles.sales_order.add %} | ||||
| <div id='button-toolbar'> | ||||
|     <button type='button' class="btn btn-success" id='new-company'> | ||||
|         <span class='fas fa-plus-circle'></span> {{ button_text }} | ||||
|     </button> | ||||
|     <div class='btn-group'> | ||||
|     </div> | ||||
| </div> | ||||
| <button type='button' class="btn btn-success" id='new-company'> | ||||
|     <span class='fas fa-plus-circle'></span> {{ button_text }} | ||||
| </button> | ||||
| {% endif %} | ||||
| {% endblock %} | ||||
|  | ||||
| <table class='table table-striped table-condensed' id='company-table' data-toolbar='#button-toolbar'> | ||||
| </table> | ||||
| {% block page_info %} | ||||
|  | ||||
| <div class='panel-content'> | ||||
|      | ||||
|     <div id='button-toolbar'> | ||||
|     </div> | ||||
|      | ||||
|     <table class='table table-striped table-condensed' id='company-table' data-toolbar='#button-toolbar'> | ||||
|     </table> | ||||
| </div> | ||||
|  | ||||
| {% endblock %} | ||||
| {% block js_ready %} | ||||
|   | ||||
| @@ -104,18 +104,23 @@ src="{% static 'img/blank_image.png' %}" | ||||
|  | ||||
| <div class='panel panel-hidden' id='panel-supplier-parts'> | ||||
|     <div class='panel-heading'> | ||||
|         <h4>{% trans "Suppliers" %}</h4> | ||||
|         <div class='d-flex flex-row'> | ||||
|             <h4>{% trans "Suppliers" %}</h4> | ||||
|             {% include "spacer.html" %} | ||||
|             <div class='btn-group' role='group'> | ||||
|                 <button class="btn btn-success" id='supplier-create'> | ||||
|                     <span class='fas fa-plus-circle'></span> {% trans "New Supplier Part" %} | ||||
|                 </button> | ||||
|             </div> | ||||
|         </div> | ||||
|     </div> | ||||
|     <div class='panel-content'> | ||||
|         <div id='supplier-button-toolbar'> | ||||
|             <div class='btn-group'> | ||||
|                 <button class="btn btn-success" id='supplier-create'> | ||||
|                     <span class='fas fa-plus-circle'></span> {% trans "New Supplier Part" %} | ||||
|                 </button> | ||||
|                 <div id='opt-dropdown' class="btn-group"> | ||||
|                     <button id='supplier-part-options' class="btn btn-primary dropdown-toggle" type="button" data-bs-toggle="dropdown">{% trans "Options" %} <span class="caret"></span></button> | ||||
|                     <ul class="dropdown-menu"> | ||||
|                         <li><a 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" %}'><span class='fas fa-trash-alt icon-red'></span> {% trans "Delete" %}</a></li> | ||||
|                     </ul> | ||||
|                 </div> | ||||
|             </div> | ||||
| @@ -128,18 +133,23 @@ src="{% static 'img/blank_image.png' %}" | ||||
|  | ||||
| <div class='panel panel-hidden' id='panel-parameters'> | ||||
|     <div class='panel-heading'> | ||||
|         <h4>{% trans "Parameters" %}</h4> | ||||
|         <div class='d-flex flex-row'> | ||||
|             <h4>{% trans "Parameters" %}</h4> | ||||
|             {% include "spacer.html" %} | ||||
|             <div class='btn-group' role='group'> | ||||
|                 <button class='btn btn-success' id='parameter-create'> | ||||
|                     <span class='fas fa-plus-circle'></span> {% trans "New Parameter" %} | ||||
|                 </button> | ||||
|             </div> | ||||
|         </div> | ||||
|     </div> | ||||
|     <div class='panel-content'> | ||||
|         <div id='parameter-toolbar'> | ||||
|             <div class='btn-group'> | ||||
|                 <button class='btn btn-success' id='parameter-create'> | ||||
|                     <span class='fas fa-plus-circle'></span> {% trans "New Parameter" %} | ||||
|                 </button> | ||||
|                 <div id='opt-dropdown' class="btn-group"> | ||||
|                     <button id='parameter-options' class="btn btn-primary dropdown-toggle" type="button" data-bs-toggle="dropdown">{% trans "Options" %} <span class="caret"></span></button> | ||||
|                     <ul class="dropdown-menu"> | ||||
|                         <li><a href='#' id='multi-parameter-delete' title='{% trans "Delete parameters" %}'>{% trans "Delete" %}</a></li> | ||||
|                         <li><a class='dropdown-item' href='#' id='multi-parameter-delete' title='{% trans "Delete parameters" %}'><span class='fas fa-trash-alt icon-red'></span> {% trans "Delete" %}</a></li> | ||||
|                     </ul> | ||||
|                 </div> | ||||
|             </div> | ||||
|   | ||||
| @@ -143,17 +143,23 @@ src="{% static 'img/blank_image.png' %}" | ||||
|  | ||||
| <div class='panel panel-hidden' id='panel-purchase-orders'> | ||||
|     <div class='panel-heading'> | ||||
|         <h4>{% trans "Supplier Part Orders" %}</h4> | ||||
|     </div> | ||||
|     <div class='panel-content'> | ||||
|         {% if roles.purchase_order.add %} | ||||
|         <div id='button-bar'> | ||||
|             <div class='btn-group'> | ||||
|         <div class='d-flex flex-row'> | ||||
|             <h4>{% trans "Supplier Part Orders" %}</h4> | ||||
|             {% include "spacer.html" %} | ||||
|             <div class='btn-group' role='group'> | ||||
|                 {% if roles.purchase_order.add %} | ||||
|                 <button class='btn btn-primary' type='button' id='order-part2' title='{% trans "Order part" %}'> | ||||
|                     <span class='fas fa-shopping-cart'></span> {% trans "Order Part" %}</button> | ||||
|                     <span class='fas fa-shopping-cart'></span> {% trans "Order Part" %} | ||||
|                 </button> | ||||
|                 {% endif %}         | ||||
|             </div> | ||||
|         </div> | ||||
|     </div> | ||||
|     <div class='panel-content'> | ||||
|         <div id='button-bar'> | ||||
|             <div class='btn-group'> | ||||
|             </div> | ||||
|         </div> | ||||
|         {% endif %}         | ||||
|         <table class='table table-striped table-condensed po-table' id='purchase-order-table' data-toolbar='#button-bar'> | ||||
|         </table> | ||||
|     </div> | ||||
| @@ -161,16 +167,21 @@ src="{% static 'img/blank_image.png' %}" | ||||
|  | ||||
| <div class='panel panel-hidden' id='panel-pricing'> | ||||
|     <div class='panel-heading'> | ||||
|         <h4>{% trans "Pricing Information" %}</h4> | ||||
|         <div class='d-flex flex-row'> | ||||
|             <h4>{% trans "Pricing Information" %}</h4> | ||||
|             {% include "spacer.html" %} | ||||
|             <div class='btn-group' role='group'> | ||||
|                 {% if roles.purchase_order.add %} | ||||
|                 <button class='btn btn-success' id='new-price-break' type='button'> | ||||
|                     <span class='fas fa-plus-circle'></span> {% trans "Add Price Break" %} | ||||
|                 </button> | ||||
|                 {% endif %} | ||||
|             </div> | ||||
|         </div> | ||||
|     </div> | ||||
|     <div class='panel-content'> | ||||
|         {% if roles.purchase_order.add %} | ||||
|         <div id='price-break-toolbar' class='btn-group'> | ||||
|             <button class='btn btn-success' id='new-price-break' type='button'> | ||||
|                 <span class='fas fa-plus-circle'></span> {% trans "Add Price Break" %} | ||||
|             </button> | ||||
|         </div> | ||||
|         {% endif %} | ||||
|  | ||||
|         <table class='table table-striped table-condensed' id='price-break-table' data-toolbar='#price-break-toolbar'>     | ||||
|         </table> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user