{{!
    This file is part of Moodle - http://moodle.org/

    Moodle is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    Moodle is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with Moodle.  If not, see <http://www.gnu.org/licenses/>.

    Edwiser RemUI
    @package theme_remui
    @copyright (c) 2023 WisdmLabs (https://wisdmlabs.com/)
    @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
}}
{{!
    @template core_form/element-header

    Renders a form section header

    Example context (json):
    {
        "id": "id_general",
        "header": "General",
        "collapsed": 0,
        "collapseable": 1,
        "helpbutton": "Help"
    }
}}
<div class="d-flex fieldset-header">
    <div class="position-relative d-flex ftoggler justify-content-between align-items-center w-100 {{#header}}p-py-lg-8 p-py-md-6 p-py-4{{/header}}">
        <h3 class="d-flex align-self-stretch align-items-center m-0 fieldset-title" aria-hidden="true">
            {{{header}}}
            {{{helpbutton}}}
        </h3>
        {{#collapseable}}
            <a data-bs-toggle="collapse"
               href="#{{id}}container"
               role="button"
               aria-expanded="{{#collapsed}}false{{/collapsed}}{{^collapsed}}true{{/collapsed}}"
               aria-controls="{{id}}container"
               class="p-0 btn icons-collapse-expand stretched-link fheader {{#collapsed}}collapsed{{/collapsed}}"
            >
                <span class="expanded-icon icon-no-margin" title="{{#str}} collapse, core {{/str}}">
                    <span class="edw-icon edw-icon-Down-Arrow"></span>
                </span>
                <span class="collapsed-icon icon-no-margin" title="{{#str}} expand, core {{/str}}">
                    <span class="dir-rtl-hide"><span class="edw-icon edw-icon-Right-Arrow"></span></span>
                    <span class="dir-ltr-hide"><span class="edw-icon edw-icon-Left-Arrow"></span></span>
                </span>
                <span class="sr-only">{{{header}}}</span>
            </a>
        {{/collapseable}}
    </div>
</div>
<div id="{{id}}container" class=" p-py-lg-8 p-py-md-6 p-py-4 pt-0 fcontainer {{#collapseable}}collapseable collapse {{/collapseable}} {{^collapsed}}show{{/collapsed}}">
