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, value: part_id,
}, },
quantity: {}, quantity: {},
price: {}, price: {
price_currency: {}, icon: 'fa-dollar-sign',
},
price_currency: {
icon: 'fa-coins',
},
}, },
method: 'POST', method: 'POST',
title: '{% trans "Add Price Break" %}', title: '{% trans "Add Price Break" %}',
@ -677,8 +681,12 @@ function initPriceBreakSet(table, options) {
constructForm(`${pb_url}${pk}/`, { constructForm(`${pb_url}${pk}/`, {
fields: { fields: {
quantity: {}, quantity: {},
price: {}, price: {
price_currency: {}, icon: 'fa-dollar-sign',
},
price_currency: {
icon: 'fa-coins',
},
}, },
title: '{% trans "Edit Price Break" %}', title: '{% trans "Edit Price Break" %}',
onSuccess: reloadPriceBreakTable, onSuccess: reloadPriceBreakTable,

View File

@ -311,7 +311,9 @@ function stockItemFields(options={}) {
icon: 'fa-layer-group', icon: 'fa-layer-group',
}, },
status: {}, status: {},
expiry_date: {}, expiry_date: {
icon: 'fa-calendar-alt',
},
purchase_price: { purchase_price: {
icon: 'fa-dollar-sign', icon: 'fa-dollar-sign',
}, },
@ -324,7 +326,9 @@ function stockItemFields(options={}) {
link: { link: {
icon: 'fa-link', icon: 'fa-link',
}, },
owner: {}, owner: {
icon: 'fa-user',
},
delete_on_deplete: {}, delete_on_deplete: {},
}; };