From 476d878344c954dd0e8f729c3f3b6985bcd57322 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Wed, 11 Feb 2026 16:59:09 -0500 Subject: [PATCH] Bug 41827: Update authority types pages to use grid layout for forms This patch updates authority types 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 -> Authority types - Administration -> Authority types -> Tags - Administration -> Authority types -> Subfields Sponsored-by: Athens County Public Libraries --- .../modules/admin/auth_subfields_structure.tt | 325 ++++++++++-------- .../en/modules/admin/auth_tag_structure.tt | 86 +++-- .../prog/en/modules/admin/authtypes.tt | 69 ++-- 3 files changed, 285 insertions(+), 195 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/auth_subfields_structure.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/auth_subfields_structure.tt index 3ffb773e4be..7ced7b1b4b8 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/auth_subfields_structure.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/auth_subfields_structure.tt @@ -139,44 +139,64 @@ [% FOREACH loo IN loop %] [% outputsubfield = PROCESS outputsubfield subfieldanchor = loo.tagsubfield %] [% WRAPPER tab_panel tabname=outputsubfield %] -
    - [% IF ( loo.new_subfield ) %] -
  1. +
    + [% IF ( loo.new_subfield ) %] +
    +
    +
    +
    -
  2. - [% ELSE %] -
  3. - -
  4. - [% END %] -
  5. - + + + [% ELSE %] + + [% END %] +
    +
    + +
    +
    [% IF loo.repeatable %] [% ELSE %] [% END %] -
  6. -
  7. - + + +
    +
    + +
    +
    [% IF loo.mandatory %] [% ELSE %] [% END %] -
  8. -
  9. -
  10. -
  11. + + +
    +
    + +
    +
    + +
    +
    +
    +
    + +
    +
    + +
    +
    +
    +
    + +
    +
    -
    Ignore means that the subfield does not display in the record editor and that its value, if any, is deleted from the record
    -
  12. -
  13. -
    - Display -
      -
    1. - -
    2. -
    -
    -
  14. -
  15. -
    - Advanced constraints: -
      -
    1. - - [% IF loo.isurl %] - - [% ELSE %] - - [% END %] - If checked, it means that the subfield is a URL and can be clicked. -
    2. -
    3. - - -
    4. -
    -
    -
  16. -
  17. -
    Help input -
      -
    1. - - -
    2. -
    3. - - -
    4. -
    5. - - -
    6. -
    7. - - -
    8. -
    -
    -
  18. -

- [% END # /WRAPPER tab_panel %] + +
+ Ignore means that the subfield does not display in the record editor and that its value, if any, is deleted from the record +
+ + +
+ Display +
+
+ +
+
+ +
+
+
+
+ Advanced constraints +
+
+ +
+
+ [% IF loo.isurl %] + + [% ELSE %] + + [% END %] +
+
If checked, it means that the subfield is a URL and can be clicked.
+
+
+
+ +
+
+ +
+
+
+ +
+ Help input +
+
+ +
+
+ +
+
+
+
+ +
+
+ +
+
+
+
+ +
+
+ +
+
+
+
+ +
+
+ +
+
+
+ [% END # /WRAPPER tab_panel %] [% END # /FOREACH loo %] [% END # /WRAPPER tab_panels %] [% END # /WRAPPER tabs %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/auth_tag_structure.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/auth_tag_structure.tt index f38c4760268..59c5779cf0c 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/auth_tag_structure.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/auth_tag_structure.tt @@ -130,48 +130,82 @@ [% IF ( heading_modify_tag_p ) %][% END %] -
-
    - [% IF ( heading_modify_tag_p ) %] -
  1. +
    + [% IF ( heading_modify_tag_p ) %] +
    +
    Tag: - +
    +
    [% searchfield | html %] -
  2. - [% ELSE %] -
  3. - - Required -
  4. - [% END %] + + + + [% ELSE %] +
    +
    + +
    +
    + +
    +
    Required
    +
    3 characters maximum
    +
    + [% END %] -
  5. -
  6. -
  7. +
    +
    + +
    +
    + +
    +
    +
    +
    + +
    +
    + +
    +
    +
    +
    + +
    +
    [% IF ( repeatable ) %] [% ELSE %] [% END %] -
  8. -
  9. + + +
    +
    + +
    +
    [% IF ( mandatory ) %] [% ELSE %] [% END %] -
  10. -
  11. + + +
    +
    + +
    +
    -
    If you select a value here, the indicators will be limited to the authorized value list
    -
  12. -
+ +
If you select a value here, the indicators will be limited to the authorized value list
+
@@ -222,7 +256,7 @@
- + - [% authority_type.authtypecode | html %] - [% ELSE %] + + + [% ELSE %] +
- - Required -
10 characters maximum
- [% END %] - -
  • +
  • +
    + +
    +
    Required
    +
    10 characters maximum
    + [% END %] + +
    +
    - - Required - -
  • +
  • +
    + +
    +
    Required
    +
    +
    +
    +
    +
    - -
  • +
  • +
    +
    +
    - -
    Note: for 'Authority field to copy', enter the authority field that should be copied from the authority record to the bibliographic record. E.g., in MARC21, field 100 in the authority record should be copied to - field 100 in the bibliographic record
    +
    +
    + [% IF authority_type.authtypecode.defined %] [% END %] - - +
    +
    + Note: for 'Authority field to copy', enter the authority field that should be copied from the authority record to the bibliographic record. E.g., in MARC21, field 100 in the authority record should be copied to field + 100 in the bibliographic record +
    +
    -- 2.39.5