diff --git a/InvenTree/InvenTree/static/script/inventree/modals.js b/InvenTree/InvenTree/static/script/inventree/modals.js index d7d42ac941..a1a6f3efdd 100644 --- a/InvenTree/InvenTree/static/script/inventree/modals.js +++ b/InvenTree/InvenTree/static/script/inventree/modals.js @@ -719,6 +719,11 @@ function handleModalForm(url, options) { } // Form was returned, invalid! else { + + var warningDiv = $(modal).find('#form-validation-warning'); + + warningDiv.css('display', 'block'); + if (response.html_form) { injectModalForm(modal, response.html_form); diff --git a/InvenTree/templates/modals.html b/InvenTree/templates/modals.html index 9423b14569..a50cb65369 100644 --- a/InvenTree/templates/modals.html +++ b/InvenTree/templates/modals.html @@ -1,3 +1,5 @@ +{% load i18n %} + @@ -24,13 +29,16 @@ - + + +