]> git.koha-community.org Git - koha.git/commit
Bug 37955: Fix table's 'configure' button to open correct column settings main
authorOwen Leonard <oleonard@myacpl.org>
Wed, 18 Sep 2024 12:57:40 +0000 (12:57 +0000)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Thu, 19 Sep 2024 11:50:50 +0000 (12:50 +0100)
commitfa1b95ebf6bae9d002591bb474664f98c6687c85
tree361b925fef87e4410a349b15646f902241116e42
parent7cd31e98e0abca0638604ecc6d0d17abbe34afd0
Bug 37955: Fix table's 'configure' button to open correct column settings

This patch updates markup and JS code on the table settings page so that
clicking a table's "configure" button will open the right panel and
scroll you to the correct table.

The patch also overrides Bootstrap's default table caption positioning
so that captions are above the table instead of below them.
Unfortunately this property isn't in Bootstrap's _variables.

To test, apply the patch and rebuild the staff interface CSS
(https://wiki.koha-community.org/wiki/Working_with_SCSS_in_the_OPAC_and_staff_interface).

- Find a table in the staff interface which has a "Configure" button,
  e.g. Administration -> Libraries.
- Click the "Configure" button.
- When you arrive at the table settings page the correct panel should be
  expanded (in this example, Administration), and the page should scroll
  to the correct table (in this example, libraries).
  - The table caption ("Table id: libraries") should appear before the
    table instead of after.

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
koha-tmpl/intranet-tmpl/prog/css/src/_tables.scss
koha-tmpl/intranet-tmpl/prog/en/modules/admin/columns_settings.tt