From cd73ef9f34c2b28cea0a1801d434b0f0d5cf7b34 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Mon, 6 Apr 2026 07:13:09 -0400 Subject: [PATCH] Bug 42267: Update lists pages to use grid layout for forms This patch updates lists templates with new markup for laying out forms using CSS grids. To test, apply the patch rebuild the staff interface CSS. Check the following pages, confirming that the forms look correct. - Lists -> New list - Lists -> Edit list - Lists -> View list -> Add records - Lists -> View list -> Send list - Lists -> View list -> Download - We don't directly access the template for downloading lists anymore, but it's still there: http://127.0.0.1:8081/cgi-bin/koha/virtualshelves/downloadshelf.pl?shelfnumber=1 Sponsored-by: Athens County Public Libraries Signed-off-by: Gretchen Maxeiner Signed-off-by: Jonathan Druart Signed-off-by: Lucas Gass --- .../virtualshelves/addbybiblionumber.tt | 38 +++-- .../modules/virtualshelves/downloadshelf.tt | 15 +- .../modules/virtualshelves/sendshelfform.tt | 25 +-- .../prog/en/modules/virtualshelves/shelves.tt | 150 +++++++++++------- 4 files changed, 140 insertions(+), 88 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/addbybiblionumber.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/addbybiblionumber.tt index 9b46d400fb..b607a45c4c 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/addbybiblionumber.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/addbybiblionumber.tt @@ -51,11 +51,14 @@ [% UNLESS ( newshelf ) %] [% IF private_shelves.count OR public_shelves.count OR private_shelves_shared_with_me.count %] -
+
Select an existing list -
    -
  1. + +
    +
    +
    +
    -
  2. -
+ + + [% FOREACH biblio IN biblios %][% END %] [% UNLESS ( biblionumbers ) %] @@ -93,11 +97,13 @@ [% END %] [% END %] -
Add to a new list: -
  1. +
    + Add to a new list: +
    +
    +
    +
    [% FOREACH biblio IN biblios %][% END %] [% UNLESS ( biblionumbers ) %] @@ -106,15 +112,19 @@ [% END %] -
  2. -
  3. - + + +
    +
    + +
    +
    -
+ +
[% END %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/downloadshelf.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/downloadshelf.tt index b54a89f222..5edb0871e2 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/downloadshelf.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/downloadshelf.tt @@ -29,11 +29,14 @@ [% ELSE %]
-
-

Download list

-
  1. +

    Download list

    +
    + Select a download format +
    +
    +
    +
    -
+
+
Cancel
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/sendshelfform.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/sendshelfform.tt index 21cb841b75..9ac3baf78d 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/sendshelfform.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/sendshelfform.tt @@ -34,19 +34,26 @@ [% INCLUDE 'csrf-token.inc' %]

Sending your list

-
+
Enter message details -
    -
  1. +
    +
    - -
  2. -
  3. + +
    + +
    + +
    +
    +
    +
    -
  4. -
+ + + +