mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-30 20:46:47 +00:00
Allow custom labels
This commit is contained in:
parent
1f75530910
commit
43f26f2c65
@ -291,6 +291,11 @@ function constructFormBody(fields, options) {
|
||||
fields[field].help_text = field_options.help_text;
|
||||
}
|
||||
|
||||
// Custom label
|
||||
if (field_options.label) {
|
||||
fields[field].label = field_options.label;
|
||||
}
|
||||
|
||||
// Field prefix
|
||||
if (field_options.prefix) {
|
||||
fields[field].prefix = field_options.prefix;
|
||||
|
Loading…
x
Reference in New Issue
Block a user