From 7dfa99f237dd27e436698ec5b1e8244e8633e6d6 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Tue, 17 Mar 2026 10:39:36 -0400 Subject: [PATCH] Bug 42118: Update various admin pages to use grid layout for forms - Part 2 This patch updates several more administration templates with new markup and CSS for layout forms using CSS grids. To test, apply the patch rebuild the staff interface CSS. Check the following pages, confirming that the "New" and "Edit" versions of the form look correct in each case: - Administration -> Item search fields - Administration -> OAI sets * Updated OAI set mappings form to add maxlength attributes to field and subfield inputs. - Administration -> OAI repositories - Administration -> SMS cellular providers - Administration -> SMTP servers Sponsored-by: Athens County Public Libraries Signed-off-by: Felicie Signed-off-by: Jonathan Druart Signed-off-by: Pedro Amorim --- .../admin-items-search-field-form.inc | 59 ++++-- .../en/modules/admin/items_search_field.tt | 2 +- .../prog/en/modules/admin/oai_servers.tt | 68 +++++-- .../prog/en/modules/admin/oai_set_mappings.tt | 4 +- .../prog/en/modules/admin/oai_sets.tt | 61 +++--- .../prog/en/modules/admin/sms_providers.tt | 24 ++- .../prog/en/modules/admin/smtp_servers.tt | 181 ++++++++++++------ 7 files changed, 263 insertions(+), 136 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/admin-items-search-field-form.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/admin-items-search-field-form.inc index 835fb918e6..cfe265e5f0 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/admin-items-search-field-form.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/admin-items-search-field-form.inc @@ -1,35 +1,58 @@ [% PROCESS 'html_helpers.inc' %] -
    -
  1. - [% IF field %] + +
    + [% IF field %] +
    Name: +
    +
    [% field.name | html %] - [% ELSE %] +
    + [% ELSE %] +
    +
    +
    - Required - [% END %] -
  2. -
  3. + +
    Required
    + [% END %] + +
    +
    +
    +
    - Required -
  4. -
  5. + +
    Required
    + +
    +
    +
    +
    - Required -
  6. -
  7. + +
    Required
    + +
    +
    +
    +
    -
  8. -
  9. + + +
    +
    +
    +
    -
  10. -
+ + diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/items_search_field.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/items_search_field.tt index e6b7622f1d..16438abe41 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/items_search_field.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/items_search_field.tt @@ -55,7 +55,7 @@
[% INCLUDE 'csrf-token.inc' %] -
+
[% INCLUDE 'admin-items-search-field-form.inc' field=field %] [% IF (field) %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/oai_servers.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/oai_servers.tt index f71da8e9ef..687caac572 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/oai_servers.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/oai_servers.tt @@ -75,47 +75,73 @@ [% END %] -
-
    -
  1. +
    +
    +
    + +
    +
    [% IF server.servername %] [% ELSE %] [% END %] - Required -
  2. + +
    Required
    + -
  3. Required -
  4. -
  5. -
  6. +
    +
    + +
    +
    + +
    +
    Required
    +
    +
    +
    + +
    +
    + +
    +
    +
    +
    +
    +
    -
    OAI can send records in various formats. Choose one.
    -
  7. - -
  8. + +
    OAI can send records in various formats. Choose one.
    + +
    +
    + +
    +
    -
  9. -
  10. + + +
    +
    +
    +
    -
  11. -
+ +
-
Cancel
+
Cancel
[% END %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/oai_set_mappings.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/oai_set_mappings.tt index 526247534b..2b0e1de6d6 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/oai_set_mappings.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/oai_set_mappings.tt @@ -120,8 +120,8 @@ [% END %] - - + + [% END %] -
-
    -
  1. +
    +
    +
    +
    +
    [% IF ( spec == "" ) %] [% ELSE %] [% END %] - Required -
  2. -
  3. + +
    Required
    + +
    +
    +
    +
    - Required -
  4. - [% FOREACH desc IN descriptions %] -
  5. + +
    Required
    + + [% FOREACH desc IN descriptions %] +
    +
    +
    +
    - Remove -
  6. - [% END %] -
  7.   Add description
  8. -
+ Remove + + + [% END %] +
Cancel
@@ -167,20 +179,21 @@