{{!
    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/>.
}}
{{!
    @template bbbext_bnx/recordings_session

    BNX copy of the recordings session wrapper shown on the view page.

    Example context (json):
    {
        "bbbid" : 3,
        "has_records": true,
        "search_input": {},
        "import_button": {
            "method" : "get",
            "url" : "#",
            "primary" : 1,
            "tooltip" : "This is a tooltip",
            "label" : "This is the button text",
            "id": "thisismybutton",
            "attributes": [{
                "name": "data-attribute",
                "value": "yeah"
            }]
        }
    }
}}

<div class="mod_bigbluebuttonbn_recordings_section">
    {{< bbbext_bnx/recordings_table}}
        {{$title}}{{#str}}view_section_title_recordings, mod_bigbluebuttonbn{{/str}}{{/title}}
    {{/bbbext_bnx/recordings_table}}
    <div class="mt-3">
        {{#import_button}}
            {{>core/single_button}}
        {{/import_button}}
    </div>
</div>
