mirror of
https://github.com/inventree/InvenTree.git
synced 2026-10-05 01:45:28 +00:00
Adds option to hide labels and help text
This commit is contained in:
1 parent
d87ab0033a
commit
5275d3943b
1 file changed
+4
-2
@@ -1514,7 +1514,9 @@ function constructField(name, parameters, options) {
|
||||
html += `<div id='div_${field_name}' class='${form_classes}'>`;
|
||||
|
||||
// Add a label
|
||||
html += constructLabel(name, parameters);
|
||||
if (!options.hideLabels) {
|
||||
html += constructLabel(name, parameters);
|
||||
}
|
||||
|
||||
html += `<div class='controls'>`;
|
||||
|
||||
@@ -1561,7 +1563,7 @@ function constructField(name, parameters, options) {
|
||||
html += `</div>`; // input-group
|
||||
}
|
||||
|
||||
if (parameters.help_text) {
|
||||
if (parameters.help_text && !options.hideLabels) {
|
||||
html += constructHelpText(name, parameters, options);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user