diff --git a/InvenTree/company/templates/company/company_base.html b/InvenTree/company/templates/company/company_base.html index 2c1efbb7e5..61751fe0f4 100644 --- a/InvenTree/company/templates/company/company_base.html +++ b/InvenTree/company/templates/company/company_base.html @@ -34,7 +34,7 @@ InvenTree | Company - {{ company.name }} diff --git a/InvenTree/order/templates/order/purchase_order_detail.html b/InvenTree/order/templates/order/purchase_order_detail.html index 99694f430f..575dd4a74b 100644 --- a/InvenTree/order/templates/order/purchase_order_detail.html +++ b/InvenTree/order/templates/order/purchase_order_detail.html @@ -121,11 +121,11 @@ InvenTree | {{ order }} {% if order.status == OrderStatus.PENDING %}
- -
diff --git a/InvenTree/part/templates/part/attachments.html b/InvenTree/part/templates/part/attachments.html index 882d9aee8d..b6837d8321 100644 --- a/InvenTree/part/templates/part/attachments.html +++ b/InvenTree/part/templates/part/attachments.html @@ -31,8 +31,12 @@ {{ attachment.comment }}
- - + +
diff --git a/InvenTree/part/templates/part/category.html b/InvenTree/part/templates/part/category.html index bbe449d217..1109b26180 100644 --- a/InvenTree/part/templates/part/category.html +++ b/InvenTree/part/templates/part/category.html @@ -4,36 +4,35 @@ {% block content %}
-
- {% if category %} -

{{ category.name }}

-

{{ category.description }}

- {% if category.default_location %} -

Default Location: {{ category.default_location }}

- {% endif %} - {% else %} -

Part Categories

- {% endif %} -
-
-

-
- - {% if category %} -

-
{% if category and category.children.all|length > 0 %} diff --git a/InvenTree/part/templates/part/part_base.html b/InvenTree/part/templates/part/part_base.html index 3377c730a5..7339b5afb7 100644 --- a/InvenTree/part/templates/part/part_base.html +++ b/InvenTree/part/templates/part/part_base.html @@ -40,34 +40,41 @@

{{ part.description }}

-

- - {% if part.is_template == False %} - {% include "qr_button.html" %} - {% if part.active %} - - {% if part.purchaseable %} - - {% endif %} - {% endif %} - {% endif %} - - - {% if not part.active %} - - {% endif %} +
+
+ + {% if part.is_template == False %} + {% include "qr_button.html" %} + {% if part.active %} + + {% if not part.virtual %} + + {% endif %} + {% if part.purchaseable %} + + {% endif %} + {% endif %} + {% endif %} + + + {% if not part.active %} + + {% endif %} +

@@ -171,6 +178,16 @@ ); }); + $("#part-count").click(function() { + launchModalForm("/stock/adjust/", { + data: { + action: "count", + part: {{ part.id }}, + reload: true, + } + }); + }); + $("#price-button").click(function() { launchModalForm( "{% url 'part-pricing' part.id %}", diff --git a/InvenTree/static/css/inventree.css b/InvenTree/static/css/inventree.css index 1b9caaa891..28c304485b 100644 --- a/InvenTree/static/css/inventree.css +++ b/InvenTree/static/css/inventree.css @@ -23,11 +23,23 @@ } .glyphicon-ok { - color: #5f5; + color: #5C5; +} + +.glyphicon-ok-circle { + color: #55c; } .glyphicon-remove { - color: #f55; + color: #C55; +} + +.glyphicon-trash { + color: #C55; +} + +.glyphicon-plus { + color: #5C5; } /* CSS overrides for treeview */ diff --git a/InvenTree/static/script/inventree/bom.js b/InvenTree/static/script/inventree/bom.js index 77dfbe740e..ac08237dea 100644 --- a/InvenTree/static/script/inventree/bom.js +++ b/InvenTree/static/script/inventree/bom.js @@ -189,8 +189,8 @@ function loadBomTable(table, options) { if (options.editable) { cols.push({ formatter: function(value, row, index, field) { - var bEdit = ""; - var bDelt = ""; + var bEdit = ""; + var bDelt = ""; return "
" + bEdit + bDelt + "
"; } diff --git a/InvenTree/stock/templates/stock/item.html b/InvenTree/stock/templates/stock/item.html index 02287d8669..35b4fcd9f1 100644 --- a/InvenTree/stock/templates/stock/item.html +++ b/InvenTree/stock/templates/stock/item.html @@ -16,6 +16,9 @@ + @@ -27,7 +30,7 @@

@@ -124,7 +127,7 @@ {% if item.has_tracking_info %} - +

Stock Tracking Information

@@ -181,7 +184,7 @@ itemAdjust("move"); }); - $("#stock-stocktake").click(function() { + $("#stock-count").click(function() { itemAdjust('count'); }); diff --git a/InvenTree/stock/templates/stock/location.html b/InvenTree/stock/templates/stock/location.html index 987d433104..d201f76f91 100644 --- a/InvenTree/stock/templates/stock/location.html +++ b/InvenTree/stock/templates/stock/location.html @@ -7,30 +7,31 @@ {% if location %}

{{ location.name }}

{{ location.description }}

-

-

- {% include "qr_button.html" %} -
-

{% else %}

Stock

All stock items

{% endif %} +

+

+ + {% if location %} + {% include "qr_button.html" %} + + + + {% endif %} +
+

-

-
- - {% if location %} - - {% endif %}

@@ -91,6 +92,18 @@ return false; }); + {% if location %} + $("#location-count").click(function() { + launchModalForm("/stock/adjust/", { + data: { + action: "count", + location: {{ location.id }}, + reload: true, + } + }); + }); + {% endif %} + $('#show-qr-code').click(function() { launchModalForm("{% url 'stock-location-qr' location.id %}", {