From 3cf3ab9a8d64fe5ce254459a404d6821eb3672d6 Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Wed, 30 Aug 2023 16:16:43 +0000 Subject: [PATCH] Bug 34660: Make deliveries table on housebound.tt a DataTable To test: 1. Turn on the housebound module ( HouseboundModule ) 2. From a staff account add at leats one staff member as a Deliverer and a Chooser. 3. From a patron account click on the 'Housebound' tab. Add some deliveries. 4. Notice they sort with the oldest deilivery first. 5. Apply patch and reload the page. 6. Now the table is a DataTable and can be dymacially sorted. Signed-off-by: Rhonda Kuiper Signed-off-by: Martin Renvoize Signed-off-by: Tomas Cohen Arazi --- .../prog/en/modules/members/housebound.tt | 58 ++++++++++++------- 1 file changed, 36 insertions(+), 22 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/housebound.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/housebound.tt index 67daa86150..23775159b6 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/housebound.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/housebound.tt @@ -387,30 +387,38 @@

Deliveries

[% housebound_visits = housebound_profile.housebound_visits %] [% IF housebound_visits.count > 0 %] - - - - - [% FOREACH entry IN housebound_visits %] +
IDDateChooserDelivererActions
+ - - - - - + + + + + - [% END %] + + + [% FOREACH entry IN housebound_visits %] + + + + + + + + [% END %] +
[% entry.id | html %][% entry.appointment_date | $KohaDates %] ([% entry.day_segment | html %]) - - [% INCLUDE 'patron-title.inc' patron = entry.chooser invert_name = 0 %] - - - - [% INCLUDE 'patron-title.inc' patron = entry.deliverer invert_name = 0 %] - - - Edit - Delete - IDDateChooserDelivererActions
[% entry.id | html %][% entry.appointment_date | $KohaDates %] ([% entry.day_segment | html %]) + + [% INCLUDE 'patron-title.inc' patron = entry.chooser invert_name = 0 %] + + + + [% INCLUDE 'patron-title.inc' patron = entry.deliverer invert_name = 0 %] + + + Edit + Delete +
[% END %]
@@ -435,12 +443,18 @@ [% MACRO jsinclude BLOCK %] [% INCLUDE 'calendar.inc' %] + [% INCLUDE 'datatables.inc' %] + [% INCLUDE 'columns_settings.inc' %] [% INCLUDE 'str/members-menu.inc' %] [% Asset.js("js/members-menu.js") | $raw %] -- 2.39.5