diff --git a/InvenTree/InvenTree/static/css/inventree.css b/InvenTree/InvenTree/static/css/inventree.css index 7f0d3ea9ae..0df86700e5 100644 --- a/InvenTree/InvenTree/static/css/inventree.css +++ b/InvenTree/InvenTree/static/css/inventree.css @@ -775,6 +775,14 @@ padding: 5px; } +.form-group { + padding-bottom: 15px; +} + + +.form-field-error { + color: #A94442; +} .modal input { width: 100%; @@ -793,6 +801,7 @@ input[type="submit"] { /* Force a control-label div to be 100% width */ .modal .control-label { width: 100%; + font-weight: 700; margin-top: 5px; } @@ -1086,10 +1095,6 @@ a.anchor { padding: 6px 6px; } -.form-control { - height: 30px; -} - /* Force minimum width of number input fields to show at least ~5 digits */ input[type='number']{ min-width: 80px; diff --git a/InvenTree/templates/js/translated/forms.js b/InvenTree/templates/js/translated/forms.js index f9958ee127..2a71b2f4c5 100644 --- a/InvenTree/templates/js/translated/forms.js +++ b/InvenTree/templates/js/translated/forms.js @@ -927,7 +927,7 @@ function clearFormErrors(options) { $(options.modal).find('.form-error-message').remove(); // Remove the "has error" class - $(options.modal).find('.has-error').removeClass('has-error'); + $(options.modal).find('.form-field-error').removeClass('form-field-error'); // Hide the 'non field errors' $(options.modal).find('#non-field-errors').html(''); @@ -1100,8 +1100,8 @@ function handleFormErrors(errors, fields, options) { */ function addFieldErrorMessage(field_name, error_text, error_idx, options) { - // Add the 'has-error' class - $(options.modal).find(`#div_id_${field_name}`).addClass('has-error'); + // Add the 'form-field-error' class + $(options.modal).find(`#div_id_${field_name}`).addClass('form-field-error'); var field_dom = $(options.modal).find(`#errors-${field_name}`); @@ -1754,7 +1754,7 @@ function constructField(name, parameters, options) { var form_classes = 'form-group'; if (parameters.errors) { - form_classes += ' has-error'; + form_classes += ' form-field-error'; } // Optional content to render before the field @@ -1796,7 +1796,7 @@ function constructField(name, parameters, options) { html += `