[Koha-bugs] [Bug 35877] Use template wrapper to build Bootstrap accordion components
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Sun Feb 4 23:41:28 CET 2024
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35877
David Nind <david at davidnind.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #161328|0 |1
is obsolete| |
--- Comment #2 from David Nind <david at davidnind.com> ---
Created attachment 161739
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=161739&action=edit
Bug 35877: Use template wrapper to build Bootstrap accordion components
This patch adds Template::Toolkit WRAPPER blocks to html_helpers.inc so
that templates can build Bootstrap accordion components while keeping
the Bootstrap structural markup separate.
Each individual component of a Bootstrap accordion interface is defined:
- Group container
- Collapsible item
- Item heading
- Item content
Included is a usage example:
[ WRAPPER accordion id="accordion container id" ]
[ WRAPPER accordion_item ]
[ WRAPPER accordion_heading panel_id = "panel id" ]
[Clickable panel heading ]
[ END ]
[ WRAPPER accordion_panel panel_id = "panel id" ]
[Expanding content panel]
[ END ]
[ END ]
[ END ]
To test, apply this patch and one of the dependent patches.
Signed-off-by: David Nind <david at davidnind.com>
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list