From a2b55314cb9f4e5b3ae7cd5d84c1d884fb5c4ef1 Mon Sep 17 00:00:00 2001 From: Oliver Date: Tue, 21 Feb 2023 13:57:10 +1100 Subject: [PATCH] Adding icons for forms (#4381) --- InvenTree/templates/js/translated/pricing.js | 16 ++++++++++++---- InvenTree/templates/js/translated/stock.js | 8 ++++++-- 2 files changed, 18 insertions(+), 6 deletions(-) diff --git a/InvenTree/templates/js/translated/pricing.js b/InvenTree/templates/js/translated/pricing.js index 020d717728..690ed1762a 100644 --- a/InvenTree/templates/js/translated/pricing.js +++ b/InvenTree/templates/js/translated/pricing.js @@ -652,8 +652,12 @@ function initPriceBreakSet(table, options) { value: part_id, }, quantity: {}, - price: {}, - price_currency: {}, + price: { + icon: 'fa-dollar-sign', + }, + price_currency: { + icon: 'fa-coins', + }, }, method: 'POST', title: '{% trans "Add Price Break" %}', @@ -677,8 +681,12 @@ function initPriceBreakSet(table, options) { constructForm(`${pb_url}${pk}/`, { fields: { quantity: {}, - price: {}, - price_currency: {}, + price: { + icon: 'fa-dollar-sign', + }, + price_currency: { + icon: 'fa-coins', + }, }, title: '{% trans "Edit Price Break" %}', onSuccess: reloadPriceBreakTable, diff --git a/InvenTree/templates/js/translated/stock.js b/InvenTree/templates/js/translated/stock.js index bf6784ae81..412305251b 100644 --- a/InvenTree/templates/js/translated/stock.js +++ b/InvenTree/templates/js/translated/stock.js @@ -311,7 +311,9 @@ function stockItemFields(options={}) { icon: 'fa-layer-group', }, status: {}, - expiry_date: {}, + expiry_date: { + icon: 'fa-calendar-alt', + }, purchase_price: { icon: 'fa-dollar-sign', }, @@ -324,7 +326,9 @@ function stockItemFields(options={}) { link: { icon: 'fa-link', }, - owner: {}, + owner: { + icon: 'fa-user', + }, delete_on_deplete: {}, };