Bugzilla – Attachment 174644 Details for
Bug 37761
Tabs on curbside_pickups.tt page not styled right after Bootstrap 5 update
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 37761: Fix redirection on the tabs and buttons
Bug-37761-Fix-redirection-on-the-tabs-and-buttons.patch (text/plain), 10.21 KB, created by
Jonathan Druart
on 2024-11-16 07:15:30 UTC
(
hide
)
Description:
Bug 37761: Fix redirection on the tabs and buttons
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2024-11-16 07:15:30 UTC
Size:
10.21 KB
patch
obsolete
>From f8bf634432ef4d860ba382bb803ab3f802b2f3b7 Mon Sep 17 00:00:00 2001 >From: Sukhmandeep Benipal <sukhmandeep.benipal@inLibro.com> >Date: Thu, 12 Sep 2024 11:56:34 -0400 >Subject: [PATCH] Bug 37761: Fix redirection on the tabs and buttons > >To test: >- Apply the patch and enable the CurbsidePickup system preference if > necessary. >- Properly testing requires testing data. You can run this command to > REPLACE your curbside pickup data with sample data: > > bash <(curl -s https://gitlab.com/-/snippets/2572579/raw/main/test_curbside_pickups.sh) > >- Go to Circulation -> Curbside pickups. >- Confirm that the tabs look correct. The first tab should be active > by default. >- Confirm that the right content is displayed when you click each tab. >- Under the "Schedule pickup" tab, search for a patron. >- After you submit the search the page should reload and the "Schedule > pickup" tab should be open. >- Go on each tab and try each button to verify you're staying on the > same tab. >--- > circ/curbside_pickups.pl | 2 +- > .../prog/en/modules/circ/curbside_pickups.tt | 18 +++++++++--------- > 2 files changed, 10 insertions(+), 10 deletions(-) > >diff --git a/circ/curbside_pickups.pl b/circ/curbside_pickups.pl >index 9b4985cd3f0..c8c3cf3ad60 100755 >--- a/circ/curbside_pickups.pl >+++ b/circ/curbside_pickups.pl >@@ -59,7 +59,7 @@ if ( $op eq 'find-patron' ) { > } > )->filter_by_scheduled_today; > >- $tab = 'schedule-pickup'; >+ $tab = 'schedule-pickup_panel'; > $template->param( > patron => $patron, > existing_curbside_pickups => $existing_curbside_pickups, >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 eb18f575927..2f9d0be1ff5 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 >@@ -216,7 +216,7 @@ > <form method="post" class="form"> > [% INCLUDE 'csrf-token.inc' %] > <input type="hidden" name="op" value="cud-mark-as-staged"/> >- <input type="hidden" name="tab" value="to-be-staged"/> >+ <input type="hidden" name="tab" value="to-be-staged_panel"/> > <input type="hidden" name="id" value="[% cp.id | html %]"/> > <p> > <button type="submit" class="btn btn-default mark-as-staged-and-ready-btn"><i class="fa fa-check" aria-hidden="true"></i> Mark as <i>staged & ready</i></button> >@@ -226,7 +226,7 @@ > <form method="post" class="form"> > [% INCLUDE 'csrf-token.inc' %] > <input type="hidden" name="op" value="cud-cancel"/> >- <input type="hidden" name="tab" value="to-be-staged"/> >+ <input type="hidden" name="tab" value="to-be-staged_panel"/> > <input type="hidden" name="id" value="[% cp.id | html %]"/> > <p> > <button type="submit" class="btn btn-default cancel-btn"><i class="fa fa-ban" aria-hidden="true"></i> Cancel</button> >@@ -272,7 +272,7 @@ > <form method="post" class="form"> > [% INCLUDE 'csrf-token.inc' %] > <input type="hidden" name="op" value="cud-mark-patron-has-arrived"/> >- <input type="hidden" name="tab" value="staged-and-ready"/> >+ <input type="hidden" name="tab" value="staged-and-ready_panel"/> > <input type="hidden" name="id" value="[% cp.id | html %]"/> > <p> > <button type="submit" class="btn btn-default patron-has-arrived-btn"><i class="fa-solid fa-location-dot" aria-hidden="true"></i> Patron has arrived</button> >@@ -282,7 +282,7 @@ > <form method="post" class="form"> > [% INCLUDE 'csrf-token.inc' %] > <input type="hidden" name="op" value="cud-mark-as-delivered"/> >- <input type="hidden" name="tab" value="staged-and-ready"/> >+ <input type="hidden" name="tab" value="staged-and-ready_panel"/> > <input type="hidden" name="id" value="[% cp.id | html %]"/> > <p> > <button type="submit" class="btn btn-default mark-as-delivered-btn"><i class="fa-solid fa-envelope" aria-hidden="true"></i> Mark as <i>delivered</i></button> >@@ -292,7 +292,7 @@ > <form method="post" class="form"> > [% INCLUDE 'csrf-token.inc' %] > <input type="hidden" name="op" value="cud-mark-as-unstaged"/> >- <input type="hidden" name="tab" value="staged-and-ready"/> >+ <input type="hidden" name="tab" value="staged-and-ready_panel"/> > <input type="hidden" name="id" value="[% cp.id | html %]"/> > <p> > <button type="submit" class="btn btn-default mark-as-to-be-staged-btn"><i class="fa fa-undo" aria-hidden="true"></i> Mark as <i>to be staged</i></button> >@@ -338,7 +338,7 @@ > <form method="post" class="form"> > [% INCLUDE 'csrf-token.inc' %] > <input type="hidden" name="op" value="cud-mark-as-delivered"/> >- <input type="hidden" name="tab" value="patron-is-outside"/> >+ <input type="hidden" name="tab" value="patron-is-outside_panel"/> > <input type="hidden" name="id" value="[% cp.id | html %]"/> > <p> > <button type="submit" class="btn btn-default mark-as-delivered-btn"><i class="fa-solid fa-envelope" aria-hidden="true"></i> Mark as delivered</button> >@@ -348,7 +348,7 @@ > <form method="post" class="form"> > [% INCLUDE 'csrf-token.inc' %] > <input type="hidden" name="op" value="cud-mark-as-staged"/> >- <input type="hidden" name="tab" value="patron-is-outside"/> >+ <input type="hidden" name="tab" value="patron-is-outside_panel"/> > <input type="hidden" name="id" value="[% cp.id | html %]"/> > <p> > <button type="submit" class="btn btn-default mark-as-staged-and-ready-btn"><i class="fa fa-undo" aria-hidden="true"></i> Mark as <i>staged & ready</i></button> >@@ -358,7 +358,7 @@ > <form method="post" class="form"> > [% INCLUDE 'csrf-token.inc' %] > <input type="hidden" name="op" value="cud-mark-as-unstaged"/> >- <input type="hidden" name="tab" value="patron-is-outside"/> >+ <input type="hidden" name="tab" value="patron-is-outside_panel"/> > <input type="hidden" name="id" value="[% cp.id | html %]"/> > <p> > <button type="submit" class="btn btn-default mark-as-to-be-staged-btn"><i class="fa fa-undo" aria-hidden="true"></i> Mark as <i>to be staged</i></button> >@@ -431,7 +431,7 @@ > <fieldset class="rows" style="float: none;"> > <input type="hidden" name="borrowernumber" value="[% patron.id | html %]"/> > <input type="hidden" name="op" value="cud-create-pickup"/> >- <input type="hidden" name="tab" value="schedule-pickup"/> >+ <input type="hidden" name="tab" value="schedule-pickup_panel"/> > <ol> > <li> > <label>Patron: </label> >-- >2.34.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 37761
:
170828
|
170833
|
171023
|
171029
|
171098
|
171415
|
174643
| 174644 |
174645