]> git.koha-community.org Git - koha.git/commit
Bug 16230 - Show tooltip with menu item when fund cannot be deleted
authorOwen Leonard <oleonard@myacpl.org>
Fri, 8 Apr 2016 17:33:01 +0000 (13:33 -0400)
committerJulian Maurice <julian.maurice@biblibre.com>
Mon, 16 May 2016 11:20:11 +0000 (13:20 +0200)
commitc396d17da29433407be80e6dd84614bbcb8c0465
tree4ca7e0527bdafe32acf32c59ab0693c8dd36571a
parente00de2c8053481a75a9d3fed29384761c4c5265b
Bug 16230 - Show tooltip with menu item when fund cannot be deleted

This patch enables Bootstrap to generate a tooltip for the fund deletion
menu item when a fund cannot be deleted because it has children.

Also changed: Enable translation of the associated error message.

To test you must have at least one fund which has a child fund. Apply
the patch and go to Administration -> Funds.

- In the list of funds, find a fund which has children.
- Click the "Actions" menu. The "Delete" item should be disabled.
- Hovering over the "Delete" item should display a Bootstrap-style
  tooltip with the explanation "This fund has children."
- Clicking the "Delete" item should trigger an alert, "This fund has
  children. It cannot be deleted."
- Clicking "Delete" on funds without children should work correctly.

NOTE: Before tooltip shows in Chrome, but not bootstrap styling.
      After, bootstrap styled.
      The use of _() will add the ability to translate the alert().

Signed-off-by: Mark Tompsett <mtompset@hotmail.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Brendan Gallagher <brendan@bywatersolutions.com>
(cherry picked from commit a669b3c132c7a187b3dd0d0cf2d95e990338b404)
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgets.tt