[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
Wed Jan 24 13:50:03 CET 2024


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35877

--- Comment #1 from Owen Leonard <oleonard at myacpl.org> ---
Created attachment 161328
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=161328&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.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list