From 50f8cce21135614e1228fe7c98e9dae43ba5e07f Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 15 Jun 2022 10:58:07 +0200 Subject: [PATCH] Bug 30650: Select 'schedule a pickup' if no pickups yet Signed-off-by: Koha Team University Lyon 3 Signed-off-by: Katrin Fischer Signed-off-by: Tomas Cohen Arazi --- .../en/modules/opac-curbside-pickups.tt | 31 ++++++++++++++----- 1 file changed, 24 insertions(+), 7 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-curbside-pickups.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-curbside-pickups.tt index 9dae1b16b2..5b6fe81aea 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-curbside-pickups.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-curbside-pickups.tt @@ -89,14 +89,31 @@
+ [% IF patron_curbside_pickups.count %] +
+ [% ELSE %]
+ [% END %] [% IF patron_curbside_pickups.count %] @@ -147,7 +164,11 @@ [% IF policies.count %] + [% IF patron_curbside_pickups.count %]
+ [% ELSE %] +
+ [% END %]
    @@ -160,7 +181,7 @@ [% END %] - You already have a pickup scheduled for this library. +
  1. @@ -365,11 +386,7 @@ $(document).ready(function() { - $("#existing-pickup-warning").hide(); $("#pickup-times").hide(); - if( $("#opac-pickups-views .tab-pane.active").length < 1 ){ - $("#opac-pickups-views a:first").tab("show"); - } $("#create-pickup").on('submit', function(){ if ( ! $("input[type='radio']:checked").length ) { -- 2.39.5