From 628a58e8fcf07941c20e63dd362740f705087438 Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Mon, 16 Sep 2019 08:23:40 +1000 Subject: [PATCH] Show which parts are short in build view --- InvenTree/InvenTree/static/css/inventree.css | 4 ++-- InvenTree/InvenTree/static/script/inventree/bom.js | 4 ++-- InvenTree/build/templates/build/allocate_view.html | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/InvenTree/InvenTree/static/css/inventree.css b/InvenTree/InvenTree/static/css/inventree.css index 2f54a50219..812c0ffa51 100644 --- a/InvenTree/InvenTree/static/css/inventree.css +++ b/InvenTree/InvenTree/static/css/inventree.css @@ -98,11 +98,11 @@ max-width: 250px; } -.bomrowvalid { +.rowvalid { color: #050; } -.bomrowinvalid { +.rowinvalid { color: #A00; font-style: italic; } diff --git a/InvenTree/InvenTree/static/script/inventree/bom.js b/InvenTree/InvenTree/static/script/inventree/bom.js index aa64a776f5..97dca94017 100644 --- a/InvenTree/InvenTree/static/script/inventree/bom.js +++ b/InvenTree/InvenTree/static/script/inventree/bom.js @@ -280,9 +280,9 @@ function loadBomTable(table, options) { search: true, rowStyle: function(row, index) { if (row.validated) { - return {classes: 'bomrowvalid'}; + return {classes: 'rowvalid'}; } else { - return {classes: 'bomrowinvalid'}; + return {classes: 'rowinvalid'}; } }, formatNoMatches: function() { return "No BOM items found"; }, diff --git a/InvenTree/build/templates/build/allocate_view.html b/InvenTree/build/templates/build/allocate_view.html index c688171f7e..f5f3952546 100644 --- a/InvenTree/build/templates/build/allocate_view.html +++ b/InvenTree/build/templates/build/allocate_view.html @@ -21,7 +21,7 @@ {% for item in build.required_parts %} - + {% include "hover_image.html" with image=item.part.image hover=True %} {{ item.part.full_name }}