From e50f43d91b85b79e4ab7bc0001e2fe344ee07772 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. --- .../en/includes/ill/backends/Standard/create.inc | 2 +- .../ill/backends/Standard/shared/form_input_helpers.inc | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/ill/backends/Standard/create.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/ill/backends/Standard/create.inc index 4ef7691762b..1790337caa0 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/ill/backends/Standard/create.inc +++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/ill/backends/Standard/create.inc @@ -111,7 +111,7 @@
  • - +
    Required
    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