[Koha-devel] How to create a message box with 3 buttons in Koha?
Owen Leonard
oleonard at myacpl.org
Wed Sep 18 14:54:02 CEST 2013
> My idea :
> If there are non cancelled orders in the baskets, create a js popup alert
You can't create a JavaScript-only alert with three buttons. This does
not exist.
I see a couple of choices:
1. Handle the operation without JavaScript and use a <div
class="dialog alert"> in the body of the page to offer the choice of
actions. Of course this would involve a trip to the server and a page
reload.
2. Use a Bootstrap modal:
http://getbootstrap.com/2.3.2/javascript.html#modals An example of
this can be found in acqui/basket.tt.
Option 2 is probably most like what you're imagining.
-- Owen
--
Web Developer
Athens County Public Libraries
http://www.myacpl.org
More information about the Koha-devel
mailing list