From b49cb8b0c7e853441b805de699a761011143607d Mon Sep 17 00:00:00 2001 From: Pedro Amorim Date: Tue, 29 Apr 2025 12:23:35 +0000 Subject: [PATCH] Bug 39773: Add 'required' attribute for required fields Test plan, apply patch: 1) Enable ILLModule 2) Create a new OPAC request, visit: http://localhost:8080/cgi-bin/koha/opac-illrequests.pl?op=add_form&backend=Standard 3) Press 'Create'. Notice the required 'type 'is now validated before the form is submitted. Additional testing: 1) Enable ILLOpacUnauthenticatedRequest. Log out. Repeat 2) 2) Press 'Create'. Notice the required unauthenticated fields are highlighted as required. --- .../ill/backends/Standard/shared/form_input_helpers.inc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/ill/backends/Standard/shared/form_input_helpers.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/ill/backends/Standard/shared/form_input_helpers.inc index 79d26fba132..fe5e6eb36f9 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/ill/backends/Standard/shared/form_input_helpers.inc +++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/ill/backends/Standard/shared/form_input_helpers.inc @@ -3,9 +3,9 @@
  • [% IF opac %] - + [% ELSE %] - + [% END %] [% IF required %]
    Required
    @@ -18,11 +18,11 @@
  • [% IF opac %] - [% ELSE %] - [% END %] -- 2.39.5