mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-10-30 20:55:42 +00:00 
			
		
		
		
	| @@ -295,8 +295,6 @@ | |||||||
|     vertical-align: middle; |     vertical-align: middle; | ||||||
|     margin: 1px; |     margin: 1px; | ||||||
|     padding: 2px; |     padding: 2px; | ||||||
|     background: #eee; |  | ||||||
|     border: 1px solid #eee; |  | ||||||
|     border-radius: 3px; |     border-radius: 3px; | ||||||
| } | } | ||||||
|  |  | ||||||
| @@ -308,7 +306,13 @@ | |||||||
|     transform: translate(0%, -25%); |     transform: translate(0%, -25%); | ||||||
| } | } | ||||||
|    |    | ||||||
| .filter-list .close:hover {background: #bbb;} | .filter-list .close:hover { | ||||||
|  |     background: #bbb; | ||||||
|  | } | ||||||
|  |  | ||||||
|  | .filter-list .form-control { | ||||||
|  |     width: initial; | ||||||
|  | } | ||||||
|  |  | ||||||
| .filter-tag { | .filter-tag { | ||||||
|     display: inline-block; |     display: inline-block; | ||||||
| @@ -316,8 +320,6 @@ | |||||||
|     zoom: 1; |     zoom: 1; | ||||||
|     padding-left: 3px; |     padding-left: 3px; | ||||||
|     padding-right: 3px; |     padding-right: 3px; | ||||||
|     padding-top: 2px; |  | ||||||
|     padding-bottom: 2px; |  | ||||||
|     border: 1px solid #aaa; |     border: 1px solid #aaa; | ||||||
|     border-radius: 3px; |     border-radius: 3px; | ||||||
|     background: #eee; |     background: #eee; | ||||||
| @@ -326,6 +328,12 @@ | |||||||
|     margin-right: 5px; |     margin-right: 5px; | ||||||
| } | } | ||||||
|  |  | ||||||
|  | .filter-button { | ||||||
|  |     padding: 2px; | ||||||
|  |     padding-left: 4px; | ||||||
|  |     padding-right: 4px; | ||||||
|  | } | ||||||
|  |  | ||||||
| .filter-input { | .filter-input { | ||||||
|     display: inline-block; |     display: inline-block; | ||||||
|     *display: inline; |     *display: inline; | ||||||
|   | |||||||
| @@ -160,9 +160,7 @@ | |||||||
|     <div class='panel-content'> |     <div class='panel-content'> | ||||||
|         <div id='child-button-toolbar'> |         <div id='child-button-toolbar'> | ||||||
|             <div class='button-toolbar container-fluid float-right'> |             <div class='button-toolbar container-fluid float-right'> | ||||||
|                 <div class='filter-list' id='filter-list-sub-build'> |                 {% include "filter_list.html" with id='sub-build' %} | ||||||
|                     <!-- Empty div for filters --> |  | ||||||
|                 </div> |  | ||||||
|             </div> |             </div> | ||||||
|         </div> |         </div> | ||||||
|         <table class='table table-striped table-condensed' id='sub-build-table' data-toolbar='#child-button-toolbar'></table>   |         <table class='table table-striped table-condensed' id='sub-build-table' data-toolbar='#child-button-toolbar'></table>   | ||||||
| @@ -171,7 +169,7 @@ | |||||||
|  |  | ||||||
| <div class='panel panel-hidden' id='panel-allocate'> | <div class='panel panel-hidden' id='panel-allocate'> | ||||||
|     <div class='panel-heading'> |     <div class='panel-heading'> | ||||||
|         <div class='d-flex flex-row'> |         <div class='d-flex flex-wrap'> | ||||||
|             <h4>{% trans "Allocate Stock to Build" %}</h4> |             <h4>{% trans "Allocate Stock to Build" %}</h4> | ||||||
|             {% include "spacer.html" %} |             {% include "spacer.html" %} | ||||||
|             <div class='btn-group' role='group'> |             <div class='btn-group' role='group'> | ||||||
| @@ -210,9 +208,7 @@ | |||||||
|                     <button id='allocate-selected-items' class='btn btn-success' title='{% trans "Allocate selected items" %}'> |                     <button id='allocate-selected-items' class='btn btn-success' title='{% trans "Allocate selected items" %}'> | ||||||
|                         <span class='fas fa-sign-in-alt'></span> |                         <span class='fas fa-sign-in-alt'></span> | ||||||
|                     </button> |                     </button> | ||||||
|                     <div class='filter-list' id='filter-list-builditems'> |                     {% include "filter_list.html" with id='builditems' %} | ||||||
|                         <!-- Empty div for table filters--> |  | ||||||
|                     </div> |  | ||||||
|                 </div> |                 </div> | ||||||
|             </div> |             </div> | ||||||
|         </div> |         </div> | ||||||
| @@ -227,7 +223,7 @@ | |||||||
|  |  | ||||||
| <div class='panel panel-hidden' id='panel-outputs'> | <div class='panel panel-hidden' id='panel-outputs'> | ||||||
|     <div class='panel-heading'> |     <div class='panel-heading'> | ||||||
|         <div class='d-flex flex-row'> |         <div class='d-flex flex-wrap'> | ||||||
|             <h4>{% trans "Incomplete Build Outputs" %}</h4> |             <h4>{% trans "Incomplete Build Outputs" %}</h4> | ||||||
|             {% include "spacer.html" %} |             {% include "spacer.html" %} | ||||||
|             <div class='btn-group' role='group'> |             <div class='btn-group' role='group'> | ||||||
| @@ -276,7 +272,7 @@ | |||||||
|  |  | ||||||
| <div class='panel panel-hidden' id='panel-attachments'> | <div class='panel panel-hidden' id='panel-attachments'> | ||||||
|     <div class='panel-heading'> |     <div class='panel-heading'> | ||||||
|         <div class='d-flex flex-row'> |         <div class='d-flex flex-wrap'> | ||||||
|             <h4>{% trans "Attachments" %}</h4> |             <h4>{% trans "Attachments" %}</h4> | ||||||
|             {% include "spacer.html" %} |             {% include "spacer.html" %} | ||||||
|             <div class='btn-group' role='group'> |             <div class='btn-group' role='group'> | ||||||
|   | |||||||
| @@ -45,9 +45,7 @@ | |||||||
|                 <button class='btn btn-outline-secondary' type='button' id='view-list' title='{% trans "Display list view" %}'> |                 <button class='btn btn-outline-secondary' type='button' id='view-list' title='{% trans "Display list view" %}'> | ||||||
|                     <span class='fas fa-th-list'></span> |                     <span class='fas fa-th-list'></span> | ||||||
|                 </button> |                 </button> | ||||||
|                 <div class='filter-list' id='filter-list-build'> |                 {% include "filter_list.html" with id="build" %} | ||||||
|                     <!-- An empty div in which the filter list will be constructed --> |  | ||||||
|                 </div> |  | ||||||
|             </div> |             </div> | ||||||
|         </div> |         </div> | ||||||
|     </div> |     </div> | ||||||
|   | |||||||
| @@ -11,7 +11,7 @@ | |||||||
|  |  | ||||||
| <div class='panel panel-hidden' id='panel-supplier-parts'> | <div class='panel panel-hidden' id='panel-supplier-parts'> | ||||||
|     <div class='panel-heading'> |     <div class='panel-heading'> | ||||||
|         <div class='d-flex flex-row'> |         <div class='d-flex flex-wrap'> | ||||||
|             <h4>{% trans "Supplier Parts" %}</h4> |             <h4>{% trans "Supplier Parts" %}</h4> | ||||||
|             {% include "spacer.html" %} |             {% include "spacer.html" %} | ||||||
|             <div class='btn-group' role='group'> |             <div class='btn-group' role='group'> | ||||||
| @@ -46,9 +46,7 @@ | |||||||
|                         </ul> |                         </ul> | ||||||
|                     </div> |                     </div> | ||||||
|                 </div> |                 </div> | ||||||
|                 <div class='filter-list' id='filter-list-supplier-part'> |                 {% include "filter_list.html" with id="supplier-part" %} | ||||||
|                     <!-- Empty div (will be filled out with available BOM filters) --> |  | ||||||
|                 </div> |  | ||||||
|             </div> |             </div> | ||||||
|         </div> |         </div> | ||||||
|         {% endif %} |         {% endif %} | ||||||
| @@ -60,7 +58,7 @@ | |||||||
|  |  | ||||||
| <div class='panel panel-hidden' id='panel-manufacturer-parts'> | <div class='panel panel-hidden' id='panel-manufacturer-parts'> | ||||||
|     <div class='panel-heading'> |     <div class='panel-heading'> | ||||||
|         <div class='d-flex flex-row'> |         <div class='d-flex flex-wrap'> | ||||||
|             <h4>{% trans "Manufacturer Parts" %}</h4> |             <h4>{% trans "Manufacturer Parts" %}</h4> | ||||||
|             {% include "spacer.html" %} |             {% include "spacer.html" %} | ||||||
|             <div class='btn-group' role='group'> |             <div class='btn-group' role='group'> | ||||||
| @@ -95,9 +93,7 @@ | |||||||
|                         </ul> |                         </ul> | ||||||
|                     </div>  |                     </div>  | ||||||
|                 </div> |                 </div> | ||||||
|                 <div class='filter-list' id='filter-list-supplier-part'> |                 {% include "filter_list.html" with id="supplier-part" %} | ||||||
|                     <!-- Empty div (will be filled out with available BOM filters) --> |  | ||||||
|                 </div> |  | ||||||
|             </div> |             </div> | ||||||
|         </div> |         </div> | ||||||
|         {% endif %} |         {% endif %} | ||||||
| @@ -117,7 +113,7 @@ | |||||||
|  |  | ||||||
| <div class='panel panel-hidden' id='panel-purchase-orders'> | <div class='panel panel-hidden' id='panel-purchase-orders'> | ||||||
|     <div class='panel-heading'> |     <div class='panel-heading'> | ||||||
|         <div class='d-flex flex-row'> |         <div class='d-flex flex-wrap'> | ||||||
|             <h4>{% trans "Purchase Orders" %}</h4> |             <h4>{% trans "Purchase Orders" %}</h4> | ||||||
|             {% include "spacer.html" %} |             {% include "spacer.html" %} | ||||||
|             <div class='btn-group' role='group'> |             <div class='btn-group' role='group'> | ||||||
| @@ -132,9 +128,7 @@ | |||||||
|     <div class='panel-content'> |     <div class='panel-content'> | ||||||
|         <div id='po-button-bar'> |         <div id='po-button-bar'> | ||||||
|             <div class='button-toolbar container-fluid' style='float: right;'> |             <div class='button-toolbar container-fluid' style='float: right;'> | ||||||
|                 <div class='filter-list' id='filter-list-purchaseorder'> |                 {% include "filter_list.html" with id="purchaseorder" %} | ||||||
|                     <!-- Empty div --> |  | ||||||
|                 </div> |  | ||||||
|             </div> |             </div> | ||||||
|         </div> |         </div> | ||||||
|  |  | ||||||
| @@ -145,7 +139,7 @@ | |||||||
|  |  | ||||||
| <div class='panel panel-hidden' id='panel-sales-orders'> | <div class='panel panel-hidden' id='panel-sales-orders'> | ||||||
|     <div class='panel-heading'> |     <div class='panel-heading'> | ||||||
|         <div class='d-flex flex-row'> |         <div class='d-flex flex-wrap'> | ||||||
|             <h4>{% trans "Sales Orders" %}</h4> |             <h4>{% trans "Sales Orders" %}</h4> | ||||||
|             {% include "spacer.html" %} |             {% include "spacer.html" %} | ||||||
|             <div class='btn-group' role='group'> |             <div class='btn-group' role='group'> | ||||||
| @@ -160,9 +154,7 @@ | |||||||
|     <div class='panel-content'> |     <div class='panel-content'> | ||||||
|         <div id='so-button-bar'> |         <div id='so-button-bar'> | ||||||
|             <div class='button-toolbar container-fluid' style='float: right;'> |             <div class='button-toolbar container-fluid' style='float: right;'> | ||||||
|                 <div class='filter-list' id='filter-list-salesorder'> |                 {% include "filter_list.html" with id="salesorder" %} | ||||||
|                     <!-- Empty div --> |  | ||||||
|                 </div> |  | ||||||
|             </div> |             </div> | ||||||
|         </div> |         </div> | ||||||
|  |  | ||||||
| @@ -177,9 +169,7 @@ | |||||||
|     </div> |     </div> | ||||||
|     <div class='panel-content'> |     <div class='panel-content'> | ||||||
|         <div id='assigned-stock-button-toolbar'> |         <div id='assigned-stock-button-toolbar'> | ||||||
|             <div class='filter-list' id='filter-list-stock'> |             {% include "filter_list.html" with id="stock" %} | ||||||
|                 <!-- An empty div in which the filter list will be constructed --> |  | ||||||
|             </div> |  | ||||||
|         </div> |         </div> | ||||||
|          |          | ||||||
|         <table class='table table-striped table-condensed' id='assigned-stock-table' data-toolbar='#bassigned-stock-utton-toolbar'></table> |         <table class='table table-striped table-condensed' id='assigned-stock-table' data-toolbar='#bassigned-stock-utton-toolbar'></table> | ||||||
|   | |||||||
| @@ -104,7 +104,7 @@ src="{% static 'img/blank_image.png' %}" | |||||||
|  |  | ||||||
| <div class='panel panel-hidden' id='panel-supplier-parts'> | <div class='panel panel-hidden' id='panel-supplier-parts'> | ||||||
|     <div class='panel-heading'> |     <div class='panel-heading'> | ||||||
|         <div class='d-flex flex-row'> |         <div class='d-flex flex-wrap'> | ||||||
|             <h4>{% trans "Suppliers" %}</h4> |             <h4>{% trans "Suppliers" %}</h4> | ||||||
|             {% include "spacer.html" %} |             {% include "spacer.html" %} | ||||||
|             <div class='btn-group' role='group'> |             <div class='btn-group' role='group'> | ||||||
| @@ -133,7 +133,7 @@ src="{% static 'img/blank_image.png' %}" | |||||||
|  |  | ||||||
| <div class='panel panel-hidden' id='panel-parameters'> | <div class='panel panel-hidden' id='panel-parameters'> | ||||||
|     <div class='panel-heading'> |     <div class='panel-heading'> | ||||||
|         <div class='d-flex flex-row'> |         <div class='d-flex flex-wrap'> | ||||||
|             <h4>{% trans "Parameters" %}</h4> |             <h4>{% trans "Parameters" %}</h4> | ||||||
|             {% include "spacer.html" %} |             {% include "spacer.html" %} | ||||||
|             <div class='btn-group' role='group'> |             <div class='btn-group' role='group'> | ||||||
|   | |||||||
| @@ -143,7 +143,7 @@ src="{% static 'img/blank_image.png' %}" | |||||||
|  |  | ||||||
| <div class='panel panel-hidden' id='panel-purchase-orders'> | <div class='panel panel-hidden' id='panel-purchase-orders'> | ||||||
|     <div class='panel-heading'> |     <div class='panel-heading'> | ||||||
|         <div class='d-flex flex-row'> |         <div class='d-flex flex-wrap'> | ||||||
|             <h4>{% trans "Supplier Part Orders" %}</h4> |             <h4>{% trans "Supplier Part Orders" %}</h4> | ||||||
|             {% include "spacer.html" %} |             {% include "spacer.html" %} | ||||||
|             <div class='btn-group' role='group'> |             <div class='btn-group' role='group'> | ||||||
| @@ -167,7 +167,7 @@ src="{% static 'img/blank_image.png' %}" | |||||||
|  |  | ||||||
| <div class='panel panel-hidden' id='panel-pricing'> | <div class='panel panel-hidden' id='panel-pricing'> | ||||||
|     <div class='panel-heading'> |     <div class='panel-heading'> | ||||||
|         <div class='d-flex flex-row'> |         <div class='d-flex flex-wrap'> | ||||||
|             <h4>{% trans "Pricing Information" %}</h4> |             <h4>{% trans "Pricing Information" %}</h4> | ||||||
|             {% include "spacer.html" %} |             {% include "spacer.html" %} | ||||||
|             <div class='btn-group' role='group'> |             <div class='btn-group' role='group'> | ||||||
|   | |||||||
| @@ -14,7 +14,7 @@ | |||||||
|  |  | ||||||
| <div class='panel panel-hidden' id='panel-order-items'> | <div class='panel panel-hidden' id='panel-order-items'> | ||||||
|     <div class='panel-heading'> |     <div class='panel-heading'> | ||||||
|         <div class='d-flex flex-row'> |         <div class='d-flex flex-wrap'> | ||||||
|             <h4>{% trans "Purchase Order Items" %}</h4> |             <h4>{% trans "Purchase Order Items" %}</h4> | ||||||
|             {% include "spacer.html" %} |             {% include "spacer.html" %} | ||||||
|             <div class='btn-group' role='group'> |             <div class='btn-group' role='group'> | ||||||
| @@ -37,9 +37,7 @@ | |||||||
|     </div> |     </div> | ||||||
|     <div class='panel-content'> |     <div class='panel-content'> | ||||||
|         <div id='order-toolbar-buttons' class='btn-group' style='float: right;'> |         <div id='order-toolbar-buttons' class='btn-group' style='float: right;'> | ||||||
|             <div class='filter-list' id='filter-list-purchase-order-lines'> |             {% include "filter_list.html" with id="order-lines" %} | ||||||
|                 <!-- An empty div in which the filter list will be constructed--> |  | ||||||
|             </div> |  | ||||||
|         </div> |         </div> | ||||||
|          |          | ||||||
|         <table class='table table-striped table-condensed' id='po-line-table' data-toolbar='#order-toolbar-buttons'> |         <table class='table table-striped table-condensed' id='po-line-table' data-toolbar='#order-toolbar-buttons'> | ||||||
| @@ -58,7 +56,7 @@ | |||||||
|  |  | ||||||
| <div class='panel panel-hidden' id='panel-order-attachments'> | <div class='panel panel-hidden' id='panel-order-attachments'> | ||||||
|     <div class='panel-heading'> |     <div class='panel-heading'> | ||||||
|         <div class='d-flex flex-row'> |         <div class='d-flex flex-wrap'> | ||||||
|             <h4>{% trans "Attachments" %}</h4> |             <h4>{% trans "Attachments" %}</h4> | ||||||
|             {% include "spacer.html" %} |             {% include "spacer.html" %} | ||||||
|             <div class='btn-group' role='group'> |             <div class='btn-group' role='group'> | ||||||
|   | |||||||
| @@ -36,9 +36,7 @@ | |||||||
|                 <button class='btn btn-outline-secondary' type='button' id='view-list' title='{% trans "Display list view" %}'> |                 <button class='btn btn-outline-secondary' type='button' id='view-list' title='{% trans "Display list view" %}'> | ||||||
|                     <span class='fas fa-th-list'></span> |                     <span class='fas fa-th-list'></span> | ||||||
|                 </button> |                 </button> | ||||||
|                 <div class='filter-list' id='filter-list-purchaseorder'> |                 {% include "filter_list.html" with id="purchaseorder" %} | ||||||
|                     <!-- An empty div in which the filter list will be constructed --> |  | ||||||
|                 </div> |  | ||||||
|             </div> |             </div> | ||||||
|         </div> |         </div> | ||||||
|     </div> |     </div> | ||||||
|   | |||||||
| @@ -14,7 +14,7 @@ | |||||||
|  |  | ||||||
| <div class='panel panel-hidden' id='panel-order-items'> | <div class='panel panel-hidden' id='panel-order-items'> | ||||||
|     <div class='panel-heading'> |     <div class='panel-heading'> | ||||||
|         <div class='d-flex flex-row'> |         <div class='d-flex flex-wrap'> | ||||||
|             <h4>{% trans "Sales Order Items" %}</h4> |             <h4>{% trans "Sales Order Items" %}</h4> | ||||||
|             {% include "spacer.html" %} |             {% include "spacer.html" %} | ||||||
|             <div class='btn-group' role='group'> |             <div class='btn-group' role='group'> | ||||||
| @@ -29,8 +29,7 @@ | |||||||
|     <div class='panel-content'> |     <div class='panel-content'> | ||||||
|         <div id='order-toolbar-buttons' class='btn-group' style='float: right;'> |         <div id='order-toolbar-buttons' class='btn-group' style='float: right;'> | ||||||
|             <div class='btn-group'> |             <div class='btn-group'> | ||||||
|                 <div class='filter-list' id='filter-list-sales-order-lines'> |                 {% include "filter_list.html" with id="sales-order-lines" %} | ||||||
|                 </div> |  | ||||||
|             </div> |             </div> | ||||||
|         </div> |         </div> | ||||||
|         <table class='table table-striped table-condensed' id='so-lines-table' data-toolbar='#order-toolbar-buttons'> |         <table class='table table-striped table-condensed' id='so-lines-table' data-toolbar='#order-toolbar-buttons'> | ||||||
| @@ -49,7 +48,7 @@ | |||||||
|  |  | ||||||
| <div class='panel panel-hidden' id='panel-order-attachments'> | <div class='panel panel-hidden' id='panel-order-attachments'> | ||||||
|     <div class='panel-heading'> |     <div class='panel-heading'> | ||||||
|         <div class='d-flex flex-row'> |         <div class='d-flex flex-wrap'> | ||||||
|             <h4>{% trans "Attachments" %}</h4> |             <h4>{% trans "Attachments" %}</h4> | ||||||
|             {% include "spacer.html" %} |             {% include "spacer.html" %} | ||||||
|             <div class='btn-group' role='group'> |             <div class='btn-group' role='group'> | ||||||
|   | |||||||
| @@ -39,9 +39,7 @@ | |||||||
|                 <button class='btn btn-outline-secondary' type='button' id='view-list' title='{% trans "Display list view" %}'> |                 <button class='btn btn-outline-secondary' type='button' id='view-list' title='{% trans "Display list view" %}'> | ||||||
|                     <span class='fas fa-th-list'></span> |                     <span class='fas fa-th-list'></span> | ||||||
|                 </button> |                 </button> | ||||||
|                 <div class='filter-list' id='filter-list-salesorder'> |                 {% include "filter_list.html" with id="salesorder" %} | ||||||
|                     <!-- An empty div in which the filter list will be constructed --> |  | ||||||
|                 </div> |  | ||||||
|             </div> |             </div> | ||||||
|         </div> |         </div> | ||||||
|     </div> |     </div> | ||||||
|   | |||||||
| @@ -35,10 +35,7 @@ | |||||||
|             </ul> |             </ul> | ||||||
|         </div> |         </div> | ||||||
|         {% endif %}    |         {% endif %}    | ||||||
|     |         {% include "filter_list.html" with id="bom" %} | ||||||
|         <div class='filter-list' id='filter-list-bom'> |  | ||||||
|             <!-- Empty div (will be filled out with avilable BOM filters) --> |  | ||||||
|         </div> |  | ||||||
|     </div> |     </div> | ||||||
| </div> | </div> | ||||||
|  |  | ||||||
|   | |||||||
| @@ -116,7 +116,7 @@ | |||||||
|  |  | ||||||
| <div class='panel panel-hidden' id='panel-parts'> | <div class='panel panel-hidden' id='panel-parts'> | ||||||
|     <div class='panel-heading'> |     <div class='panel-heading'> | ||||||
|         <div class='d-flex flex-row'> |         <div class='d-flex flex-wrap'> | ||||||
|             <h4>{% trans "Parts" %}</h4> |             <h4>{% trans "Parts" %}</h4> | ||||||
|             {% include "spacer.html" %} |             {% include "spacer.html" %} | ||||||
|             <div class='btn-group' role='group'> |             <div class='btn-group' role='group'> | ||||||
| @@ -146,9 +146,7 @@ | |||||||
|                     <li><a class='dropdown-item' href='#' id='multi-part-export' title='{% trans "Export" %}'>{% trans "Export Data" %}</a></li> |                     <li><a class='dropdown-item' href='#' id='multi-part-export' title='{% trans "Export" %}'>{% trans "Export Data" %}</a></li> | ||||||
|                 </ul> |                 </ul> | ||||||
|             </div> |             </div> | ||||||
|             <div class='filter-list' id='filter-list-parts'> |             {% include "filter_list.html" with id="parts" %} | ||||||
|                 <!-- Empty div --> |  | ||||||
|             </div> |  | ||||||
|         </div> |         </div> | ||||||
|     </div> |     </div> | ||||||
|     <div class='panel-content'> |     <div class='panel-content'> | ||||||
| @@ -174,9 +172,7 @@ | |||||||
|     <div class='panel-content'> |     <div class='panel-content'> | ||||||
|         <div id='subcategory-button-toolbar'> |         <div id='subcategory-button-toolbar'> | ||||||
|             <div class='btn-group' role='group'> |             <div class='btn-group' role='group'> | ||||||
|                 <div class='filter-list' id='filter-list-category'> |                 {% include "filter_list.html" with id="category" %} | ||||||
|                     <!-- An empty div in which the filter list will be constructed --> |  | ||||||
|                 </div> |  | ||||||
|             </div> |             </div> | ||||||
|         </div> |         </div> | ||||||
|      |      | ||||||
|   | |||||||
| @@ -109,7 +109,7 @@ | |||||||
|  |  | ||||||
| <div class='panel panel-hidden' id='panel-test-templates'> | <div class='panel panel-hidden' id='panel-test-templates'> | ||||||
|     <div class='panel-heading'> |     <div class='panel-heading'> | ||||||
|         <div class='d-flex flex-row'> |         <div class='d-flex flex-wrap'> | ||||||
|             <h4>{% trans "Part Test Templates" %}</h4> |             <h4>{% trans "Part Test Templates" %}</h4> | ||||||
|             {% include "spacer.html" %} |             {% include "spacer.html" %} | ||||||
|             <div class='btn-group' role='group'> |             <div class='btn-group' role='group'> | ||||||
| @@ -123,10 +123,8 @@ | |||||||
|     </div> |     </div> | ||||||
|     <div class='panel-content'> |     <div class='panel-content'> | ||||||
|         <div id='test-button-toolbar'> |         <div id='test-button-toolbar'> | ||||||
|             <div class='button-toolbar container-fluid' style="float: right;"> |             <div class='btn-group' role='group'> | ||||||
|                 <div class='filter-list' id='filter-list-parttests'> |                 {% include "filter_list.html" with id="parttests" %} | ||||||
|                     <!-- Empty div --> |  | ||||||
|                 </div> |  | ||||||
|             </div> |             </div> | ||||||
|         </div> |         </div> | ||||||
|          |          | ||||||
| @@ -136,7 +134,7 @@ | |||||||
|  |  | ||||||
| <div class='panel panel-hidden' id='panel-purchase-orders'> | <div class='panel panel-hidden' id='panel-purchase-orders'> | ||||||
|     <div class='panel-heading'> |     <div class='panel-heading'> | ||||||
|         <div class='d-flex flex-row'>     |         <div class='d-flex flex-wrap'>     | ||||||
|             <h4>{% trans "Purchase Orders" %}</h4> |             <h4>{% trans "Purchase Orders" %}</h4> | ||||||
|             {% include "spacer.html" %} |             {% include "spacer.html" %} | ||||||
|             <div class='btn-group' role='group'> |             <div class='btn-group' role='group'> | ||||||
| @@ -149,9 +147,7 @@ | |||||||
|     <div class='panel-content'> |     <div class='panel-content'> | ||||||
|         <div id='po-button-bar'> |         <div id='po-button-bar'> | ||||||
|             <div class='button-toolbar container-fluid' style='float: right;'> |             <div class='button-toolbar container-fluid' style='float: right;'> | ||||||
|                 <div class='filter-list' id='filter-list-purchaseorder'> |                 {% include "filter_list.html" with id="purchaseorder" %} | ||||||
|                     <!-- An empty div in which the filter list will be constructed --> |  | ||||||
|                 </div> |  | ||||||
|             </div> |             </div> | ||||||
|         </div> |         </div> | ||||||
|          |          | ||||||
| @@ -166,13 +162,8 @@ | |||||||
|     </div> |     </div> | ||||||
|     <div class='panel-content'> |     <div class='panel-content'> | ||||||
|         <div id='so-button-bar'> |         <div id='so-button-bar'> | ||||||
|             <div class='button-toolbar container-fluid' style='float: right;'> |             <div class='btn-group' role='group'> | ||||||
|                 {% if 0 %} |                 {% include "filter_list.html" with id="salesorder" %} | ||||||
|                 <button class='btn btn-success' type='button' id='part-order2' title='{% trans "New sales order" %}'>{% trans "New Order" %}</button> |  | ||||||
|                 {% endif %} |  | ||||||
|                 <div class='filter-list' id='filter-list-salesorder'> |  | ||||||
|                     <!-- An empty div in which the filter list will be constructed --> |  | ||||||
|                 </div> |  | ||||||
|             </div> |             </div> | ||||||
|         </div> |         </div> | ||||||
|  |  | ||||||
| @@ -221,7 +212,7 @@ | |||||||
|  |  | ||||||
| <div class='panel panel-hidden' id='panel-variants'> | <div class='panel panel-hidden' id='panel-variants'> | ||||||
|     <div class='panel-heading'> |     <div class='panel-heading'> | ||||||
|         <div class='d-flex flex-row'> |         <div class='d-flex flex-wrap'> | ||||||
|             <h4>{% trans "Part Variants" %}</h4> |             <h4>{% trans "Part Variants" %}</h4> | ||||||
|             {% include "spacer.html" %} |             {% include "spacer.html" %} | ||||||
|             <div class='btn-group' role='group'> |             <div class='btn-group' role='group'> | ||||||
| @@ -238,9 +229,7 @@ | |||||||
|             <div class='button-toolbar container-fluid'> |             <div class='button-toolbar container-fluid'> | ||||||
|                 <div class='btn-group' role='group'> |                 <div class='btn-group' role='group'> | ||||||
|                 </div> |                 </div> | ||||||
|                 <div class='filter-list' id='filter-list-variants'> |                 {% include "filter_list.html" with id="variants" %} | ||||||
|                     <!-- Empty div (will be filled out with available BOM filters) --> |  | ||||||
|                 </div> |  | ||||||
|             </div> |             </div> | ||||||
|         </div> |         </div> | ||||||
|          |          | ||||||
| @@ -251,7 +240,7 @@ | |||||||
|  |  | ||||||
| <div class='panel panel-hidden' id='panel-part-parameters'> | <div class='panel panel-hidden' id='panel-part-parameters'> | ||||||
|     <div class='panel-heading'> |     <div class='panel-heading'> | ||||||
|         <div class='d-flex flex-row'> |         <div class='d-flex flex-wrap'> | ||||||
|             <h4>{% trans "Parameters" %}</h4> |             <h4>{% trans "Parameters" %}</h4> | ||||||
|             {% include "spacer.html" %} |             {% include "spacer.html" %} | ||||||
|             <div class='btn-group' role='group'> |             <div class='btn-group' role='group'> | ||||||
| @@ -274,7 +263,7 @@ | |||||||
|  |  | ||||||
| <div class='panel panel-hidden' id='panel-part-attachments'> | <div class='panel panel-hidden' id='panel-part-attachments'> | ||||||
|     <div class='panel-heading'> |     <div class='panel-heading'> | ||||||
|         <div class='d-flex flex-row'> |         <div class='d-flex flex-wrap'> | ||||||
|             <h4>{% trans "Attachments" %}</h4> |             <h4>{% trans "Attachments" %}</h4> | ||||||
|             {% include "spacer.html" %} |             {% include "spacer.html" %} | ||||||
|             <div class='btn-group' role='group'> |             <div class='btn-group' role='group'> | ||||||
| @@ -289,7 +278,7 @@ | |||||||
|  |  | ||||||
| <div class='panel panel-hidden' id='panel-related-parts'> | <div class='panel panel-hidden' id='panel-related-parts'> | ||||||
|     <div class='panel-heading'> |     <div class='panel-heading'> | ||||||
|         <div class='d-flex flex-row'> |         <div class='d-flex flex-wrap'> | ||||||
|             <h4>{% trans "Related Parts" %}</h4> |             <h4>{% trans "Related Parts" %}</h4> | ||||||
|             {% include "spacer.html" %} |             {% include "spacer.html" %} | ||||||
|             <div class='btn-group' role='group'> |             <div class='btn-group' role='group'> | ||||||
| @@ -303,10 +292,8 @@ | |||||||
|     </div> |     </div> | ||||||
|     <div class='panel-content'> |     <div class='panel-content'> | ||||||
|         <div id='related-button-bar'> |         <div id='related-button-bar'> | ||||||
|             <div class='button-toolbar container-fluid' style='float: left;'> |             <div class='btn-group' role='group'> | ||||||
|                 <div class='filter-list' id='filter-list-related'> |                 {% include "filter_list.html" with id="related" %} | ||||||
|                     <!-- An empty div in which the filter list will be constructed --> |  | ||||||
|                 </div> |  | ||||||
|             </div> |             </div> | ||||||
|         </div> |         </div> | ||||||
|          |          | ||||||
| @@ -342,7 +329,7 @@ | |||||||
|  |  | ||||||
| <div class='panel panel-hidden' id='panel-bom'> | <div class='panel panel-hidden' id='panel-bom'> | ||||||
|     <div class='panel-heading'> |     <div class='panel-heading'> | ||||||
|         <div class='d-flex flex-row'> |         <div class='d-flex flex-wrap'> | ||||||
|             <h4>{% trans "Bill of Materials" %}</h4> |             <h4>{% trans "Bill of Materials" %}</h4> | ||||||
|             {% include "spacer.html" %} |             {% include "spacer.html" %} | ||||||
|             <div class='btn-group' role='group'> |             <div class='btn-group' role='group'> | ||||||
| @@ -391,8 +378,8 @@ | |||||||
|     </div> |     </div> | ||||||
|     <div class='panel-content'> |     <div class='panel-content'> | ||||||
|         <div id='assembly-button-toolbar'> |         <div id='assembly-button-toolbar'> | ||||||
|             <div class='filter-list' id='filter-list-usedin'> |             <div class='btn-group' role='group'> | ||||||
|                 <!-- Empty div (will be filled out with avilable BOM filters) --> |                 {% include "filter_list.html" with id="usedin" %} | ||||||
|             </div> |             </div> | ||||||
|         </div> |         </div> | ||||||
|          |          | ||||||
| @@ -403,7 +390,7 @@ | |||||||
|  |  | ||||||
| <div class='panel panel-hidden' id='panel-build-orders'> | <div class='panel panel-hidden' id='panel-build-orders'> | ||||||
|     <div class='panel-heading'> |     <div class='panel-heading'> | ||||||
|         <div class='d-flex flex-row'> |         <div class='d-flex flex-wrap'> | ||||||
|             <h4>{% trans "Part Builds" %}</h4> |             <h4>{% trans "Part Builds" %}</h4> | ||||||
|             {% include "spacer.html" %} |             {% include "spacer.html" %} | ||||||
|             <div class='btn-group' role='group'> |             <div class='btn-group' role='group'> | ||||||
| @@ -419,10 +406,8 @@ | |||||||
|     </div> |     </div> | ||||||
|     <div class='panel-content'> |     <div class='panel-content'> | ||||||
|         <div id='build-button-toolbar'> |         <div id='build-button-toolbar'> | ||||||
|             <div class='button-toolbar container-fluid' style='float: right';> |             <div class='btn-group' role='group'> | ||||||
|                 <div class='filter-list' id='filter-list-build'> |                 {% include "filter_list.html" with id="build" %} | ||||||
|                     <!-- Empty div for filters --> |  | ||||||
|                 </div> |  | ||||||
|             </div> |             </div> | ||||||
|         </div> |         </div> | ||||||
|          |          | ||||||
| @@ -440,7 +425,7 @@ | |||||||
|  |  | ||||||
| <div class='panel panel-hidden' id='panel-suppliers'> | <div class='panel panel-hidden' id='panel-suppliers'> | ||||||
|     <div class='panel-heading'> |     <div class='panel-heading'> | ||||||
|         <div class='d-flex flex-row'> |         <div class='d-flex flex-wrap'> | ||||||
|             <h4>{% trans "Part Suppliers" %}</h4> |             <h4>{% trans "Part Suppliers" %}</h4> | ||||||
|             {% include "spacer.html" %} |             {% include "spacer.html" %} | ||||||
|             <div class='btn-group' role='group'> |             <div class='btn-group' role='group'> | ||||||
| @@ -467,7 +452,7 @@ | |||||||
|     </div> |     </div> | ||||||
|  |  | ||||||
|     <div class='panel-heading'> |     <div class='panel-heading'> | ||||||
|         <div class='d-flex flex-row'> |         <div class='d-flex flex-wrap'> | ||||||
|             <h4>{% trans "Part Manufacturers" %}</h4> |             <h4>{% trans "Part Manufacturers" %}</h4> | ||||||
|             {% include "spacer.html" %} |             {% include "spacer.html" %} | ||||||
|             <div class='btn-group' role='group'> |             <div class='btn-group' role='group'> | ||||||
|   | |||||||
| @@ -14,7 +14,7 @@ | |||||||
|  |  | ||||||
| <div class='panel panel-hidden' id='panel-history'> | <div class='panel panel-hidden' id='panel-history'> | ||||||
|     <div class='panel-heading'> |     <div class='panel-heading'> | ||||||
|         <div class='d-flex flex-row'> |         <div class='d-flex flex-wrap'> | ||||||
|             <h4>{% trans "Stock Tracking Information" %}</h4> |             <h4>{% trans "Stock Tracking Information" %}</h4> | ||||||
|             {% include "spacer.html" %} |             {% include "spacer.html" %} | ||||||
|             <div class='btn-group' role='group'> |             <div class='btn-group' role='group'> | ||||||
| @@ -60,7 +60,7 @@ | |||||||
|  |  | ||||||
| <div class='panel panel-hidden' id='panel-test-data'> | <div class='panel panel-hidden' id='panel-test-data'> | ||||||
|     <div class='panel-heading'> |     <div class='panel-heading'> | ||||||
|         <div class='d-flex flex-row'> |         <div class='d-flex flex-wrap'> | ||||||
|             <h4>{% trans "Test Data" %}</h4> |             <h4>{% trans "Test Data" %}</h4> | ||||||
|             {% include "spacer.html" %} |             {% include "spacer.html" %} | ||||||
|             <div class='btn-group' role='group'> |             <div class='btn-group' role='group'> | ||||||
| @@ -80,12 +80,8 @@ | |||||||
|     </div> |     </div> | ||||||
|     <div class='panel-content'> |     <div class='panel-content'> | ||||||
|         <div id='test-button-toolbar'> |         <div id='test-button-toolbar'> | ||||||
|             <div class='button-toolbar container-fluid' style="float: right;"> |  | ||||||
|             <div class='btn-group' role='group'> |             <div class='btn-group' role='group'> | ||||||
|                 </div> |                 {% include "filter_list.html" with id="stocktests" %} | ||||||
|                 <div class='filter-list' id='filter-list-stocktests'> |  | ||||||
|                     <!-- Empty div --> |  | ||||||
|                 </div> |  | ||||||
|             </div> |             </div> | ||||||
|         </div> |         </div> | ||||||
|          |          | ||||||
| @@ -95,7 +91,7 @@ | |||||||
|  |  | ||||||
| <div class='panel panel-hidden' id='panel-attachments'> | <div class='panel panel-hidden' id='panel-attachments'> | ||||||
|     <div class='panel-heading'> |     <div class='panel-heading'> | ||||||
|         <div class='d-flex flex-row'> |         <div class='d-flex flex-wrap'> | ||||||
|             <h4>{% trans "Attachments" %}</h4> |             <h4>{% trans "Attachments" %}</h4> | ||||||
|             {% include "spacer.html" %} |             {% include "spacer.html" %} | ||||||
|             <div class='btn-group' role='group'> |             <div class='btn-group' role='group'> | ||||||
| @@ -133,7 +129,7 @@ | |||||||
|  |  | ||||||
| <div class='panel panel-hidden' id='panel-installed-items'> | <div class='panel panel-hidden' id='panel-installed-items'> | ||||||
|     <div class='panel-heading'> |     <div class='panel-heading'> | ||||||
|         <div class='d-flex flex-row'> |         <div class='d-flex flex-wrap'> | ||||||
|             <h4>{% trans "Installed Stock Items" %}</h4> |             <h4>{% trans "Installed Stock Items" %}</h4> | ||||||
|             {% include "spacer.html" %} |             {% include "spacer.html" %} | ||||||
|             <div class='btn-group' role='group'> |             <div class='btn-group' role='group'> | ||||||
|   | |||||||
| @@ -163,9 +163,7 @@ | |||||||
|                         <li><a class='dropdown-item' href='#' id='multi-location-print-label' title='{% trans "Print labels" %}'><span class='fas fa-tags'></span> {% trans "Print labels" %}</a></li> |                         <li><a class='dropdown-item' href='#' id='multi-location-print-label' title='{% trans "Print labels" %}'><span class='fas fa-tags'></span> {% trans "Print labels" %}</a></li> | ||||||
|                     </ul> |                     </ul> | ||||||
|                 </div> |                 </div> | ||||||
|                 <div class='filter-list' id='filter-list-location'> |                 {% include "filter_list.html" with id="location" %} | ||||||
|                     <!-- An empty div in which the filter list will be constructed --> |  | ||||||
|                 </div> |  | ||||||
|             </div> |             </div> | ||||||
|         </div> |         </div> | ||||||
|      |      | ||||||
|   | |||||||
| @@ -1,10 +1,8 @@ | |||||||
| {% load i18n %} | {% load i18n %} | ||||||
|  |  | ||||||
| <div id='attachment-buttons'> | <div id='attachment-buttons'> | ||||||
|     <div class='btn-group'> |     <div class='btn-group' role='group'> | ||||||
|         <div class='filter-list' id='filter-list-related'> |         {% include "filter_list.html" with id="related" %} | ||||||
|                     <!-- An empty div in which the filter list will be constructed --> |  | ||||||
|         </div> |  | ||||||
|     </div> |     </div> | ||||||
| </div> | </div> | ||||||
|  |  | ||||||
|   | |||||||
							
								
								
									
										1
									
								
								InvenTree/templates/filter_list.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								InvenTree/templates/filter_list.html
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1 @@ | |||||||
|  | <div class='filter-list d-flex flex-row form-row' id='filter-list-{{ id }}'><!-- Empty div for table filters --></div> | ||||||
| @@ -281,7 +281,7 @@ function setupFilterList(tableKey, table, target) { | |||||||
|     // One blank slate, please |     // One blank slate, please | ||||||
|     element.empty(); |     element.empty(); | ||||||
|  |  | ||||||
|     element.append(`<button id='reload-${tableKey}' title='{% trans "Reload data" %}' class='btn btn-outline-secondary filter-tag'><span class='fas fa-redo-alt'></span></button>`); |     element.append(`<button id='reload-${tableKey}' title='{% trans "Reload data" %}' class='btn btn-outline-secondary filter-button'><span class='fas fa-redo-alt'></span></button>`); | ||||||
|  |  | ||||||
|     // Callback for reloading the table |     // Callback for reloading the table | ||||||
|     element.find(`#reload-${tableKey}`).click(function() { |     element.find(`#reload-${tableKey}`).click(function() { | ||||||
| @@ -293,11 +293,10 @@ function setupFilterList(tableKey, table, target) { | |||||||
|         return; |         return; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     // If there are filters currently "in use", add them in! |     element.append(`<button id='${add}' title='{% trans "Add new filter" %}' class='btn btn-outline-secondary filter-button'><span class='fas fa-filter'></span></button>`); | ||||||
|     element.append(`<button id='${add}' title='{% trans "Add new filter" %}' class='btn btn-outline-secondary filter-tag'><span class='fas fa-filter'></span></button>`); |  | ||||||
|  |  | ||||||
|     if (Object.keys(filters).length > 0) { |     if (Object.keys(filters).length > 0) { | ||||||
|         element.append(`<button id='${clear}' title='{% trans "Clear all filters" %}' class='btn btn-outline-secondary filter-tag'><span class='fas fa-backspace icon-red'></span></button>`); |         element.append(`<button id='${clear}' title='{% trans "Clear all filters" %}' class='btn btn-outline-secondary filter-button'><span class='fas fa-backspace icon-red'></span></button>`); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     for (var key in filters) { |     for (var key in filters) { | ||||||
| @@ -320,7 +319,7 @@ function setupFilterList(tableKey, table, target) { | |||||||
|             html += generateAvailableFilterList(tableKey); |             html += generateAvailableFilterList(tableKey); | ||||||
|             html += generateFilterInput(tableKey); |             html += generateFilterInput(tableKey); | ||||||
|  |  | ||||||
|             html += `<button title='{% trans "Create filter" %}' class='btn btn-outline-secondary filter-tag' id='${make}'><span class='fas fa-plus'></span></button>`; |             html += `<button title='{% trans "Create filter" %}' class='btn btn-outline-secondary filter-button' id='${make}'><span class='fas fa-plus'></span></button>`; | ||||||
|  |  | ||||||
|             element.append(html); |             element.append(html); | ||||||
|  |  | ||||||
|   | |||||||
| @@ -67,9 +67,7 @@ | |||||||
|             {% endif %} |             {% endif %} | ||||||
|             {% endif %} |             {% endif %} | ||||||
|             {% endif %} |             {% endif %} | ||||||
|             <div class='filter-list' id='filter-list-stock'> |             {% include "filter_list.html" with id="stock" %} | ||||||
|                 <!-- An empty div in which the filter list will be constructed --> |  | ||||||
|             </div> |  | ||||||
|         </div> |         </div> | ||||||
|     </div> |     </div> | ||||||
| </div> | </div> | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user