Bug 35511: Add visual indicators of patron edit form collapsible sections
authorOwen Leonard <oleonard@myacpl.org>
Wed, 6 Dec 2023 17:26:27 +0000 (17:26 +0000)
committerKatrin Fischer <katrin.fischer@bsz-bw.de>
Mon, 29 Apr 2024 07:35:40 +0000 (09:35 +0200)
commit40560b571d40c7e287c5ec6cee64044c0b347200
tree1a14c6cae4efa38f699748745b82d5612e9be7b3
parentdfd4894acbab3af5355b72c859a0a17deef70af5
Bug 35511: Add visual indicators of patron edit form collapsible sections

This patch updates CSS and markup in the patron add/edit form so that
there is better visual indication that sections can be collapsed by
clicking headings.

The JS function for showing and hiding sections has also been updated to
reduce verbosity.

Unrelated markup change for the sake of accessibility: A <label> has
been added to the "Show collapsed fields" checkbox which is seen when
CollapseFieldsPatronAddForm is active.

To test, apply the patch and go to Patrons -> New patron.

- Each section of the form should have an arrow indicator by the section
  heading indicating whether it is expanded or collapsed.
- Mousing over the heading should show a border to help show the
  clickable region.
- Clicking the header should collapse the section and the arrow
  indicator should change to reflect that the section is collapsed.
- Go to Administration -> Sytem preferences and search for
  CollapseFieldsPatronAddForm.
- Make some selections from the dropdown and save your changes.
- Return to the patron entry form and confirm that your selections are
  collapsed by default.

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
koha-tmpl/intranet-tmpl/prog/en/includes/member-alt-address-style.inc
koha-tmpl/intranet-tmpl/prog/en/includes/member-alt-contact-style.inc
koha-tmpl/intranet-tmpl/prog/en/includes/member-main-address-style.inc
koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt