From 2adb43f0b1fe4aac3ff12693ee805ee958758c5c Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Thu, 12 Feb 2026 15:41:47 -0500 Subject: [PATCH] Bug 42099: Update course reserve pages to use grid layout for forms This patch updates course reserve 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: - Course reserves -> New course - Course reserves -> Course -> Add reserves - Course reserves -> Course -> Batch add reserves - Course reserves -> Course -> Batch remove reserves Sponsored-by: Athens County Public Libraries --- .../course_reserves/add_items-step1.tt | 28 +++-- .../course_reserves/add_items-step2.tt | 75 +++++++++---- .../course_reserves/batch_add_items.tt | 103 ++++++++++++----- .../modules/course_reserves/batch_rm_items.tt | 13 ++- .../prog/en/modules/course_reserves/course.tt | 106 ++++++++++++------ 5 files changed, 222 insertions(+), 103 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/add_items-step1.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/add_items-step1.tt index 2f2f4f89976..25c1600311d 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/add_items-step1.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/add_items-step1.tt @@ -51,24 +51,28 @@ -
+
Add items by barcode -
    -
  1. +
    +
    - -
  2. -
+ +
+ +
+
-
+
Or use biblionumber of a bibliographic record -
    -
  1. +
    +
    - -
  2. -
+ +
+ +
+
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/add_items-step2.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/add_items-step2.tt index efc7675163d..75917d2eda0 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/add_items-step2.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/add_items-step2.tt @@ -69,23 +69,29 @@ [% IF item # adding an item to course items %] -
+
[% IF is_edit || course_reserve %] [% tpx("Editing course reserve item", "Editing {title}", { title = item_title }) | $raw %] [% ELSE %] [% tpx("Adding course reserve item", "Adding {title}", { title = item_title }) | $raw %] [% END %] -
    -
  1. + +
    +
    Barcode: +
    +
    [% item.barcode | html %] -
  2. + + - [% IF item_level_itypes %] -
  3. + [% IF item_level_itypes %] +
    +
    - +
    +
    [% IF course_item.itype_enabled %] [% ELSE %] @@ -102,12 +108,15 @@ [% END %] [% END %] -
  4. - [% END %] + + + [% END %] -
  5. +
    +
    - +
    +
    [% IF course_item.ccode_enabled %] [% ELSE %] @@ -124,11 +133,15 @@ [% END %] [% END %] -
  6. + + -
  7. +
    +
    +
    +
    [% IF course_item.location_enabled %] [% ELSE %] @@ -145,11 +158,15 @@ [% END %] [% END %] -
  8. + + -
  9. +
    +
    +
    +
    [% IF course_item.homebranch_enabled %] [% ELSE %] @@ -166,11 +183,15 @@ [% END %] [% END %] -
  10. + + -
  11. +
    +
    +
    +
    [% IF course_item.holdingbranch_enabled %] [% ELSE %] @@ -187,18 +208,26 @@ [% END %] [% END %] -
  12. + + -
  13. +
    +
    +
    +
    -
  14. + + -
  15. +
    +
    +
    +
    -
  16. -
+ +

Checking the box next to the field label will enable changes to that field. Leave boxes unchecked to make no change.
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/batch_add_items.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/batch_add_items.tt index ab6fb7f3ed6..f56ecf8cdc0 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/batch_add_items.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/batch_add_items.tt @@ -51,16 +51,23 @@ -

+
Add items: scan barcodes -
    -
  1. + +
    +
    +
    +
    -
  2. - [% IF item_level_itypes %] -
  3. + + + [% IF item_level_itypes %] +
    +
    +
    +
    -
  4. - [% END %] + + + [% END %] -
  5. +
    +
    +
    +
    -
  6. + + -
  7. +
    +
    +
    +
    -
  8. + + -
  9. +
    +
    +
    +
    -
  10. + + -
  11. +
    +
    +
    +
    -
  12. + + -
  13. +
    +
    +
    +
    -
  14. + + -
  15. +
    +
    +
    +
    -
  16. -
+ +

@@ -133,24 +164,34 @@ Any items with existing course reserves will have their on reserve values updated.

-
+
Or use biblionumbers of bibliographic records -
    -
  1. +
    +
    +
    +
    -
  2. + + -
  3. +
    +
    +
    +
    -
  4. + + -
  5. +
    +
    +
    +
    -
  6. -
+ +
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/batch_rm_items.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/batch_rm_items.tt index 6ba7d3f9978..8251e24fe8e 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/batch_rm_items.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/batch_rm_items.tt @@ -35,14 +35,17 @@
[% INCLUDE 'csrf-token.inc' %] -
+
Remove items by barcode -
    -
  1. + +
    +
    +
    +
    -
  2. -
+ +

All course reserve items will be deleted from all courses to which they are attached.

diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course.tt index 78d961d858a..3a9419bd352 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course.tt @@ -67,7 +67,7 @@ [% ELSE %] [% END %] -
+
[% IF course_name %] [% tx("Edit {course_name}", { course_name = course_em }) | $raw %] @@ -75,9 +75,11 @@ New course [% END %] -
    -
  1. +
    +
    +
    +
    - Required -
  2. + +
    Required
    + -
  3. +
    +
    +
    +
    - Required -
  4. + +
    Required
    + -
  5. +
    +
    +
    +
    -
  6. + + -
  7. +
    +
    +
    +
    - Required -
  8. + +
    Required
    + -
  9. - [% IF terms %] +
    + [% IF terms %] +
    +
    +
    - [% ELSE %] +
    + [% ELSE %] +
    [% tp('Semester', 'Term:') | html %] +
    +
    No TERM authorised values found! Please create one or more authorised values with the category TERM. - [% END %] -
  10. + + [% END %] + -
  11. +
    +
    Instructors: - +
    +
    [% FOREACH i IN instructors %] @@ -146,31 +171,48 @@
    -
  12. + + + +
    +
    +
    +
    -
  13. + + -
  14. +
    +
    +
    +
    -
  15. + + -
  16. +
    +
    - -
  17. + +
    + +
    + -
  18. - +
    +
    + +
    +
    [% IF enabled == 'no' %] [% ELSE %] [% END %] -
  19. -
+ +
-- 2.39.5