diff --git a/InvenTree/build/templates/build/allocate_view.html b/InvenTree/build/templates/build/allocate_view.html index b37f079b9d..c688171f7e 100644 --- a/InvenTree/build/templates/build/allocate_view.html +++ b/InvenTree/build/templates/build/allocate_view.html @@ -1,6 +1,7 @@

Required Parts

+
-
+
diff --git a/InvenTree/build/templates/build/detail.html b/InvenTree/build/templates/build/detail.html index 6b916d08bf..744ed56582 100644 --- a/InvenTree/build/templates/build/detail.html +++ b/InvenTree/build/templates/build/detail.html @@ -7,6 +7,8 @@

Build Details

+
+ diff --git a/InvenTree/build/templates/build/tabs.html b/InvenTree/build/templates/build/tabs.html index 2f27f11fc0..03b7172742 100644 --- a/InvenTree/build/templates/build/tabs.html +++ b/InvenTree/build/templates/build/tabs.html @@ -5,6 +5,4 @@ Parts - - -
\ No newline at end of file + \ No newline at end of file diff --git a/InvenTree/company/templates/company/company_base.html b/InvenTree/company/templates/company/company_base.html index 6de8d83bbb..2c1efbb7e5 100644 --- a/InvenTree/company/templates/company/company_base.html +++ b/InvenTree/company/templates/company/company_base.html @@ -24,6 +24,19 @@ InvenTree | Company - {{ company.name }}

{{ company.name }}

{{ company.description }}

+
+ {% if company.is_supplier %} + + {% endif %} + + +
@@ -77,6 +90,22 @@ InvenTree | Company - {{ company.name }} {% block js_ready %} + $('#company-edit').click(function() { + launchModalForm( + "{% url 'company-edit' company.id %}", + { + reload: true + }); + }); + + $('#company-delete').click(function() { + launchModalForm( + "{% url 'company-delete' company.id %}", + { + redirect: "{% url 'company-index' %}" + }); + }); + enableDragAndDrop( "#company-thumb", "{% url 'company-image' company.id %}", diff --git a/InvenTree/company/templates/company/detail.html b/InvenTree/company/templates/company/detail.html index fa40913f98..52a0ec6b78 100644 --- a/InvenTree/company/templates/company/detail.html +++ b/InvenTree/company/templates/company/detail.html @@ -4,24 +4,7 @@ {% include 'company/tabs.html' with tab='details' %} -
-
-

Company Details

-
-
-

- -

-
-
- +

Company Details


Title{{ build.title }}
@@ -45,19 +28,5 @@ {% endblock %} {% block js_ready %} {{ block.super }} - $('#edit-company').click(function() { - launchModalForm( - "{% url 'company-edit' company.id %}", - { - reload: true - }); - }); - - $('#delete-company').click(function() { - launchModalForm( - "{% url 'company-delete' company.id %}", - { - redirect: "{% url 'company-index' %}" - }); - }); + {% endblock %} \ No newline at end of file diff --git a/InvenTree/company/templates/company/detail_part.html b/InvenTree/company/templates/company/detail_part.html index d0ec6ce66a..2cc100390b 100644 --- a/InvenTree/company/templates/company/detail_part.html +++ b/InvenTree/company/templates/company/detail_part.html @@ -6,6 +6,8 @@

Supplier Parts

+
+
-
-
diff --git a/InvenTree/company/templates/company/detail_purchase_orders.html b/InvenTree/company/templates/company/detail_purchase_orders.html index f2f3b8ceb3..aad4f7bf99 100644 --- a/InvenTree/company/templates/company/detail_purchase_orders.html +++ b/InvenTree/company/templates/company/detail_purchase_orders.html @@ -5,14 +5,15 @@ {% include 'company/tabs.html' with tab='po' %}

Open Purchase Orders

+
-
+
- +
-{% include "order/po_table.html" with orders=company.outstanding_purchase_orders.all %} +{% include "order/po_table.html" with orders=company.outstanding_purchase_orders.all toolbar='#button-bar' %} {% if company.closed_purchase_orders.count > 0 %} {% include "order/po_table_collapse.html" with title="Closed Orders" orders=company.closed_purchase_orders.all %} @@ -23,15 +24,27 @@ {% block js_ready %} {{ block.super }} -$("#po-create").click(function() { - launchModalForm("{% url 'purchase-order-create' %}", + function newOrder() { + launchModalForm("{% url 'purchase-order-create' %}", { data: { supplier: {{ company.id }}, }, follow: true, - } - ); -}); + }); + } + + $("#company-order").click(function() { + newOrder(); + }); + + $("#company-order-2").click(function() { + newOrder(); + }); + + $("#po-table").bootstrapTable({ + search: true, + sortable: true, + }); {% endblock %} \ No newline at end of file diff --git a/InvenTree/company/templates/company/detail_stock.html b/InvenTree/company/templates/company/detail_stock.html index 108342b2b1..95c7d1f6d1 100644 --- a/InvenTree/company/templates/company/detail_stock.html +++ b/InvenTree/company/templates/company/detail_stock.html @@ -7,6 +7,8 @@

Supplier Stock

+
+ {% include "stock_table.html" %} {% endblock %} diff --git a/InvenTree/company/templates/company/index.html b/InvenTree/company/templates/company/index.html index 84fd85732e..d4193960d3 100644 --- a/InvenTree/company/templates/company/index.html +++ b/InvenTree/company/templates/company/index.html @@ -8,20 +8,15 @@ InvenTree | Supplier List {% block content %} -
-
-

Supplier List

-
-
-
-
- -
-
+

Supplier List

+
+ +
+
+
-
diff --git a/InvenTree/order/templates/order/order_wizard/select_parts.html b/InvenTree/order/templates/order/order_wizard/select_parts.html index f8ed6e2a93..b872e5aa71 100644 --- a/InvenTree/order/templates/order/order_wizard/select_parts.html +++ b/InvenTree/order/templates/order/order_wizard/select_parts.html @@ -3,7 +3,7 @@ {% block form %}

- Step 1 of 2 - Select Parts + Step 1 of 2 - Select Part Suppliers

{% if parts|length > 0 %} diff --git a/InvenTree/order/templates/order/po_table.html b/InvenTree/order/templates/order/po_table.html index cfd4811d97..32b5d4e80c 100644 --- a/InvenTree/order/templates/order/po_table.html +++ b/InvenTree/order/templates/order/po_table.html @@ -1,11 +1,14 @@ - +
+ - - - + + + + + {% for order in orders %} @@ -15,4 +18,5 @@ {% endfor %} +
CompanyOrder ReferenceDescriptionCompanyOrder ReferenceDescription Status Items
{% include "hover_image.html" with image=order.supplier.image hover=True %}{{ order.supplier.name }}{{ order.lines.count }}
\ No newline at end of file diff --git a/InvenTree/order/templates/order/purchase_order_detail.html b/InvenTree/order/templates/order/purchase_order_detail.html index a0b780408c..99694f430f 100644 --- a/InvenTree/order/templates/order/purchase_order_detail.html +++ b/InvenTree/order/templates/order/purchase_order_detail.html @@ -62,6 +62,9 @@ InvenTree | {{ order }}
+ {% if order.status == OrderStatus.PENDING %} + + {% endif %} {% if order.status == OrderStatus.PENDING and order.lines.count > 0 %} @@ -73,10 +76,6 @@ InvenTree | {{ order }}

Order Items

-{% if order.status == OrderStatus.PENDING %} - -{% endif %} - @@ -122,10 +121,10 @@ InvenTree | {{ order }} {% if order.status == OrderStatus.PENDING %}
- -
diff --git a/InvenTree/order/templates/order/purchase_orders.html b/InvenTree/order/templates/order/purchase_orders.html index 0c7ac717cd..78649ca6de 100644 --- a/InvenTree/order/templates/order/purchase_orders.html +++ b/InvenTree/order/templates/order/purchase_orders.html @@ -8,18 +8,16 @@ InvenTree | Purchase Orders {% block content %} -
-
-

Purchase Orders

-
-
-
- -
+

Purchase Orders

+
+ +
+
+
-{% include "order/po_table.html" %} +{% include "order/po_table.html" with toolbar='#table-buttons' %} {% endblock %} @@ -34,4 +32,8 @@ $("#po-create").click(function() { ); }); +$("#po-table").bootstrapTable({ + search: true, +}); + {% endblock %} \ No newline at end of file diff --git a/InvenTree/part/templates/part/attachments.html b/InvenTree/part/templates/part/attachments.html index 493002d2f0..882d9aee8d 100644 --- a/InvenTree/part/templates/part/attachments.html +++ b/InvenTree/part/templates/part/attachments.html @@ -5,37 +5,39 @@ {% include 'part/tabs.html' with tab='attachments' %} -
-
-

Part Attachments

-
-
-
- -
-
-
+

Part Attachments


- - - - - - -{% for attachment in part.attachments.all %} - - - - - -{% endfor %} +
+
+ +
+
+ + +
FileComment
{{ attachment.basename }}{{ attachment.comment }} -
- - -
-
+ + + + + + + + + {% for attachment in part.attachments.all %} + + + + + + {% endfor %} + {% if part.variant_of and part.variant_of.attachments.count > 0 %}
FileComment
{{ attachment.basename }}{{ attachment.comment }} +
+ + +
+
@@ -83,4 +85,9 @@ }); }); + $("#attachment-table").bootstrapTable({ + search: true, + sortable: true, + }); + {% endblock %} \ No newline at end of file diff --git a/InvenTree/part/templates/part/detail.html b/InvenTree/part/templates/part/detail.html index ef47e70515..68ae0ed3bd 100644 --- a/InvenTree/part/templates/part/detail.html +++ b/InvenTree/part/templates/part/detail.html @@ -4,9 +4,12 @@ {% include 'part/tabs.html' with tab='detail' %} +

Part Details

+ +
+
-

Part Details

@@ -75,7 +78,6 @@
Part name
-

Part Type

diff --git a/InvenTree/part/templates/part/orders.html b/InvenTree/part/templates/part/orders.html index 8c9f0c3cee..975a41049a 100644 --- a/InvenTree/part/templates/part/orders.html +++ b/InvenTree/part/templates/part/orders.html @@ -5,19 +5,38 @@ {% include 'part/tabs.html' with tab='orders' %} -
-
-

Open Part Orders

-
-
+

Part Orders

+
+ +
+
+
-{% include "order/po_table.html" with orders=part.open_purchase_orders %} +{% include "order/po_table.html" with orders=part.open_purchase_orders toolbar='#button-bar' %} {% if part.closed_purchase_orders|length > 0 %}

Closed Orders

{% include "order/po_table.html" with orders=part.closed_purchase_orders %} {% endif %} +{% endblock %} + +{% block js_ready %} +{{ block.super }} + +$("#po-table").bootstrapTable({ + search: true, + sortable: true, +}); + +$("#part-order-2").click(function() { + launchModalForm("/order/purchase-order/order-parts/", { + data: { + part: {{ part.id }}, + }, + }); +}); + {% endblock %} \ No newline at end of file diff --git a/InvenTree/part/templates/part/partial_delete.html b/InvenTree/part/templates/part/partial_delete.html index baa429e2a5..b6516057bb 100644 --- a/InvenTree/part/templates/part/partial_delete.html +++ b/InvenTree/part/templates/part/partial_delete.html @@ -2,7 +2,9 @@ {% block pre_form_content %} -Are you sure you want to delete part '{{ part.full_name }}'? +
+ Are you sure you want to delete part '{{ part.full_name }}'? +
{% if part.used_in_count %}
diff --git a/InvenTree/part/templates/part/stock.html b/InvenTree/part/templates/part/stock.html index 04d1b0278a..a41d5fd32a 100644 --- a/InvenTree/part/templates/part/stock.html +++ b/InvenTree/part/templates/part/stock.html @@ -4,13 +4,7 @@ {% include 'part/tabs.html' with tab='stock' %} -
-
-

Part Stock

-
-
-
-
+

Part Stock


{% if part.is_template %} diff --git a/InvenTree/part/templates/part/supplier.html b/InvenTree/part/templates/part/supplier.html index ea5baa2759..30fe9ecc0b 100644 --- a/InvenTree/part/templates/part/supplier.html +++ b/InvenTree/part/templates/part/supplier.html @@ -4,14 +4,7 @@ {% include 'part/tabs.html' with tab='suppliers' %} -
-
-

Part Suppliers

-
-
-
-
- +

Part Suppliers


diff --git a/InvenTree/part/templates/part/tabs.html b/InvenTree/part/templates/part/tabs.html index c7dbb2418f..aa7a9fa885 100644 --- a/InvenTree/part/templates/part/tabs.html +++ b/InvenTree/part/templates/part/tabs.html @@ -48,6 +48,4 @@ Attachments {% if part.attachment_count > 0 %}{{ part.attachment_count }}{% endif %} - - -
\ No newline at end of file + \ No newline at end of file diff --git a/InvenTree/part/templates/part/used_in.html b/InvenTree/part/templates/part/used_in.html index 135427e313..fb7e76e7e9 100644 --- a/InvenTree/part/templates/part/used_in.html +++ b/InvenTree/part/templates/part/used_in.html @@ -4,15 +4,7 @@ {% include 'part/tabs.html' with tab='used' %} -
-
-

Used to Build

-
-
-
-
-
-
+

Assemblies


diff --git a/InvenTree/static/css/inventree.css b/InvenTree/static/css/inventree.css index e4ebd182ee..1b9caaa891 100644 --- a/InvenTree/static/css/inventree.css +++ b/InvenTree/static/css/inventree.css @@ -158,6 +158,10 @@ .navigation { } +.nav-tabs { + margin-bottom: 20px; +} + .breadcrump { margin-bottom: 5px; } diff --git a/InvenTree/stock/templates/stock/item.html b/InvenTree/stock/templates/stock/item.html index 7300855389..02287d8669 100644 --- a/InvenTree/stock/templates/stock/item.html +++ b/InvenTree/stock/templates/stock/item.html @@ -9,32 +9,29 @@

{% include "qr_button.html" %} + {% if item.in_stock %} + + + + + {% endif %} + +

-
-

-
- -
-

-
-
@@ -90,6 +87,10 @@
{% endif %} {% if item.supplier_part %} + + + + @@ -134,7 +135,7 @@ {% block js_ready %} {{ block.super }} - $("#duplicate-item").click(function() { + $("#stock-duplicate").click(function() { launchModalForm( "{% url 'stock-item-create' %}", {
Virtual
Supplier{{ item.supplier_part.supplier.name }}
Supplier Part {{ item.supplier_part.SKU }}