Bug 36885

Summary: Missing tooltip on budget planning page
Product: Koha Reporter: Owen Leonard <oleonard>
Component: TemplatesAssignee: Owen Leonard <oleonard>
Status: Pushed to oldstable --- QA Contact: Marcel de Rooy <m.de.rooy>
Severity: trivial    
Priority: P5 - low CC: david, fridolin.somers, lucas, m.de.rooy, wainuiwitikapark
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: Trivial patch
Documentation contact: Documentation submission:
Text to go in the release notes:
This fixes the "Budget locked" tooltip for budget fund planning pages (Administration > Budgets > select a budget that is locked > Funds > Planning > any planning option). The tooltip was not styled correctly for fund names - it now has white text on a black background.
Version(s) released in:
24.11.00,24.05.04,23.11.09
Circulation function:
Bug Depends on: 34404    
Bug Blocks:    
Attachments: Bug 36885: Fix Bootstrap tooltip on budget planning page
Bug 36885: Fix Bootstrap tooltip on budget planning page
Bug 36885: (follow-up) Correct popup hint
Bug 36885: (follow-up) Remove tooltip from unlocked budgets (copy-paste error)
Bug 36885: Fix Bootstrap tooltip on budget planning page

Description Owen Leonard 2024-05-16 13:55:44 UTC
It looks like I got halfway to adding a Bootstrap tooltip to the budget planning template for funds which are locked. I added the JS trigger but didn't change the markup to match.
Comment 1 Owen Leonard 2024-05-16 14:10:40 UTC
Created attachment 166831 [details] [review]
Bug 36885: Fix Bootstrap tooltip on budget planning page

This patch finishes the process of adding a Bootstrap tooltip to the
listing of funds which are locked.

To test, apply the patch and go to Administration -> Budgets.

- Edit a budget and make it locked: Check the "Lock budget" checkbox and
  save.
- View the budget you locked.
- From the toolbar, click Planning -> Plan by months.
- In the table of funds, hover your mouse over a fund.
- You should see a Bootstrap-styled tooltip, "Fund locked."
Comment 2 Owen Leonard 2024-05-16 14:12:44 UTC
It's a bug in that the feature is half-implemented, an enhancement in that nothing is broken in the current state.
Comment 3 David Nind 2024-05-19 12:50:09 UTC
Created attachment 166924 [details] [review]
Bug 36885: Fix Bootstrap tooltip on budget planning page

This patch finishes the process of adding a Bootstrap tooltip to the
listing of funds which are locked.

To test, apply the patch and go to Administration -> Budgets.

- Edit a budget and make it locked: Check the "Lock budget" checkbox and
  save.
- View the budget you locked.
- From the toolbar, click Planning -> Plan by months.
- In the table of funds, hover your mouse over a fund.
- You should see a Bootstrap-styled tooltip, "Fund locked."

Signed-off-by: David Nind <david@davidnind.com>
Comment 4 David Nind 2024-05-19 12:55:01 UTC
Testing notes:

1. Before the patch, the tooltip has a white background, border, and the text is normal-sized.

2. After the patch, the tooltip text is white text on a black background with rounded corners, with a smaller text size.


(That is the only difference I noted).
Comment 5 Katrin Fischer 2024-06-27 13:46:21 UTC
Sorry to be nit-picky... but as we lock on budget level, should this be "budget locked"?
Comment 6 Owen Leonard 2024-06-27 14:59:23 UTC
Also being nit-picky :) ...That's how it was before my patch!
Comment 7 Katrin Fischer 2024-06-27 15:23:01 UTC
Shouldn't we do what is right? Also it didn't work... ;)
Comment 8 Katrin Fischer 2024-06-27 15:23:29 UTC
Happy to make that little change, mostly checking if I am in the wrong or not.
Comment 9 Owen Leonard 2024-06-27 17:07:11 UTC
Created attachment 168209 [details] [review]
Bug 36885: (follow-up) Correct popup hint
Comment 10 Marcel de Rooy 2024-06-28 07:25:11 UTC
Why do we add a tooltip Budget locked in the ELSE part here (when there would be no budget lock) ?
Comment 11 Katrin Fischer 2024-07-12 08:18:25 UTC
Hi Owen, can you please reply to Marcel's question so we can get this moving? :)
Comment 12 Owen Leonard 2024-07-15 15:21:33 UTC
Created attachment 168997 [details] [review]
Bug 36885: (follow-up) Remove tooltip from unlocked budgets (copy-paste error)
Comment 13 Marcel de Rooy 2024-07-19 09:40:57 UTC
Created attachment 169186 [details] [review]
Bug 36885: Fix Bootstrap tooltip on budget planning page

This patch finishes the process of adding a Bootstrap tooltip to the
listing of funds which are locked.

To test, apply the patch and go to Administration -> Budgets.

- Edit a budget and make it locked: Check the "Lock budget" checkbox and
  save.
- View the budget you locked.
- From the toolbar, click Planning -> Plan by months.
- In the table of funds, hover your mouse over a fund.
- You should see a Bootstrap-styled tooltip, "Fund locked."

Signed-off-by: David Nind <david@davidnind.com>

Bug 36885: (follow-up) Correct popup hint

Bug 36885: (follow-up) Remove tooltip from unlocked budgets (copy-paste error)

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Comment 14 Martin Renvoize (ashimema) 2024-07-22 09:40:55 UTC
Thanks for all the hard work!

Pushed to main for the next 24.11.00 release as RM Assistant
Comment 15 Lucas Gass (lukeg) 2024-08-28 20:02:35 UTC
Backported to 24.05.x for upcoming 24.05.04
Comment 16 Fridolin Somers 2024-09-10 13:32:19 UTC
Pushed to 23.11.x for 23.11.09
Comment 17 Wainui Witika-Park 2024-09-18 04:01:09 UTC
Not backporting to 23.05.x unless requested