I'd like to make a few changes to the basket groups template for consistency and validity. The main change is to make the basket group action buttons consistent with other tables in Koha with an "actions" column.
Created attachment 192840 [details] [review] Bug 41803: Improvements to consistency in basket groups template This patch makes some updates to the basket groups template: - Buttons in a table's "actions" column should have the class "btn btn-default btn-xs" - Adding icons to action buttons - Group export options (CSV and PDF) under button dropdown - Use class instead of ID as hook for closing and deleting basket groups. This prevents duplicate element IDs on the page. - When there is no EDIFACT configuration, disable the "Generate EDIFACT order" button and put the error message in a tooltip. - Style warning message as Bootstrap alert To test, apply the patch and go to Acquisitions and locate a vendor. - View the vendor details. - Click "Basket groups" in the sidebar. - Create multiple basket groups if necessary. - Test various operations in the list of open groups: - Close and export PDF - Edit - Delete - Test the actions for a closed basket group: - Reopen - Export -> CSV and Export -> PDF - Enable the EDIFACT system preference but do not add any EDI accounts. - Under the "Closed" basket group tab the "Generate EDIFACT order" buttons should be disabled, and hovering over each one should trigger a popup warning that there is no EDIFACT configuration for the vendor. Sponsored-by: Athens County Public Libraries