Adding icons for forms (#4381)

This commit is contained in:
Oliver 2023-02-21 13:57:10 +11:00 committed by GitHub
parent 62455199f3
commit a2b55314cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 18 additions and 6 deletions

View File

@ -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,

View File

@ -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: {},
};