From ce2ac9c51ebf3d3cc268259c0ab139f2cdb3cdf1 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Fri, 20 Jun 2025 11:52:29 -0300 Subject: [PATCH] Bug 40167: Curbside pickups - Show link if not configured If curbside pickups are not configured for the current branch, a correct message is displayed. It would be helpful to provide a link to the configuration page right there, if the patron has permissions to set it. This patch just adds that. To test: 1. Enable Curbside pickups 2. Make sure you are in a branch that doesn't have any rules for curbside pickups 3. Go to Circulation > Curbside pickups => SUCCESS: A message about curbside pickups not being configured is displayed 4. Apply this patch 5. Repeat 3 (reload?) => SUCCESS: The message is displayed, but you can now follow a link to configure the rules. 6. Sign off :-D Signed-off-by: Tomas Cohen Arazi Signed-off-by: Owen Leonard --- .../intranet-tmpl/prog/en/modules/circ/curbside_pickups.tt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/curbside_pickups.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/curbside_pickups.tt index 529147b1708..538426e4dd9 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/curbside_pickups.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/curbside_pickups.tt @@ -687,7 +687,12 @@ [% BLOCK curbside_pickups_disabled %]

Curbside pickups

-
Curbside pickups are not enabled for your library.
+
+ Curbside pickups are not enabled for your library. + [%- IF CAN_user_parameters_manage_curbside_pickups -%] + You can enable them at the curbside pickups configuration page. + [%- END -%] +
[% END # /BLOCK disabled %] [% SET aside = Koha.Preference('CircSidebar') ? 'circ-nav' : '' %] -- 2.39.5