2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-17 12:35:46 +00:00

Add 'title' option for contsructed fields

This commit is contained in:
Oliver
2021-07-12 21:11:29 +10:00
parent 52eedef820
commit 77cfadad42
3 changed files with 6 additions and 4 deletions

View File

@ -1473,6 +1473,11 @@ function constructInputOptions(name, classes, type, parameters) {
opts.push(`required=''`);
}
// Custom mouseover title?
if (parameters.title != null) {
opts.push(`title='${parameters.title}'`);
}
// Placeholder?
if (parameters.placeholder != null) {
opts.push(`placeholder='${parameters.placeholder}'`);

View File

@ -147,6 +147,7 @@ function adjustStock(action, items, options={}) {
min_value: minValue,
max_value: maxValue,
read_only: readonly,
title: readonly ? '{% trans "Quantity cannot be adjusted for serialized stock" %}' : '{% trans "Specify stock quantity" %}',
}
)
};