diff --git a/corehq/apps/hqwebapp/static/hqwebapp/js/bootstrap3/email-request.js b/corehq/apps/hqwebapp/static/hqwebapp/js/bootstrap3/email-request.js index 73e1b5c94249..8df8ddae4afa 100644 --- a/corehq/apps/hqwebapp/static/hqwebapp/js/bootstrap3/email-request.js +++ b/corehq/apps/hqwebapp/static/hqwebapp/js/bootstrap3/email-request.js @@ -81,7 +81,7 @@ hqDefine('hqwebapp/js/bootstrap3/email-request', [ self.$formElement.resetForm(); self.cancelBtnEnabled(true); self.$submitBtn.button('reset'); - self.hasEmailInputError(false); + resetErrors(); }; function isValidEmail(email) { diff --git a/corehq/apps/hqwebapp/static/hqwebapp/js/bootstrap5/email-request.js b/corehq/apps/hqwebapp/static/hqwebapp/js/bootstrap5/email-request.js index d7963f70ab30..a185ef0104ba 100644 --- a/corehq/apps/hqwebapp/static/hqwebapp/js/bootstrap5/email-request.js +++ b/corehq/apps/hqwebapp/static/hqwebapp/js/bootstrap5/email-request.js @@ -84,7 +84,7 @@ hqDefine('hqwebapp/js/bootstrap5/email-request', [ self.$formElement.resetForm(); self.cancelBtnEnabled(true); self.$submitBtn.changeButtonState('reset'); - self.hasEmailInputError(false); + resetErrors(); }; function isValidEmail(email) { diff --git a/corehq/apps/hqwebapp/templates/hqwebapp/includes/bootstrap3/modal_solutions_feature_request.html b/corehq/apps/hqwebapp/templates/hqwebapp/includes/bootstrap3/modal_solutions_feature_request.html index db96dd1e86cd..57ba17974726 100644 --- a/corehq/apps/hqwebapp/templates/hqwebapp/includes/bootstrap3/modal_solutions_feature_request.html +++ b/corehq/apps/hqwebapp/templates/hqwebapp/includes/bootstrap3/modal_solutions_feature_request.html @@ -19,7 +19,12 @@

- {% trans "Please submit this report from the page where you would like to see the change" %} + + {% blocktrans %} + If this request is related to a specific feature, then please submit this report + from the location where you would like to see the change. + {% endblocktrans %} +

diff --git a/corehq/apps/hqwebapp/templates/hqwebapp/includes/bootstrap5/modal_report_issue.html b/corehq/apps/hqwebapp/templates/hqwebapp/includes/bootstrap5/modal_report_issue.html index da05b7a61835..daf95f00afb5 100644 --- a/corehq/apps/hqwebapp/templates/hqwebapp/includes/bootstrap5/modal_report_issue.html +++ b/corehq/apps/hqwebapp/templates/hqwebapp/includes/bootstrap5/modal_report_issue.html @@ -5,7 +5,8 @@ tabindex="-1" aria-labelledby="reportAnIssueModalLabel" aria-hidden="true" - id="modalReportIssue"> + id="modalReportIssue" + data-bind="event: { 'shown.bs.modal': openModal, 'hidden.bs.modal': resetForm }"> diff --git a/corehq/apps/hqwebapp/templates/hqwebapp/includes/bootstrap5/modal_solutions_feature_request.html b/corehq/apps/hqwebapp/templates/hqwebapp/includes/bootstrap5/modal_solutions_feature_request.html index b9a834095f98..af41bd2d21fa 100644 --- a/corehq/apps/hqwebapp/templates/hqwebapp/includes/bootstrap5/modal_solutions_feature_request.html +++ b/corehq/apps/hqwebapp/templates/hqwebapp/includes/bootstrap5/modal_solutions_feature_request.html @@ -5,7 +5,8 @@ tabindex="-1" aria-labelledby="requestAFeatureModalLabel" aria-hidden="true" - id="modalSolutionsFeatureRequest"> + id="modalSolutionsFeatureRequest" + data-bind="event: { 'shown.bs.modal': openModal, 'hidden.bs.modal': resetForm }"> @@ -102,13 +111,15 @@

{% trans "Make a Fea + data-bs-dismiss="modal" + data-bind="enable: cancelBtnEnabled">{% trans 'Cancel' %} diff --git a/corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/hqwebapp/includes/modal_report_issue.html.diff.txt b/corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/hqwebapp/includes/modal_report_issue.html.diff.txt index 716416e7bff1..90150644ffa4 100644 --- a/corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/hqwebapp/includes/modal_report_issue.html.diff.txt +++ b/corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/hqwebapp/includes/modal_report_issue.html.diff.txt @@ -1,6 +1,6 @@ --- +++ -@@ -1,156 +1,161 @@ +@@ -1,156 +1,168 @@ {% load i18n %} {% load hq_shared_tags %} {% if request.user.is_authenticated %} @@ -23,13 +23,12 @@ -
-

- {% trans "Please submit this report from page where issue is occurring" %} --

-- +