{{!
    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 mod_minilesson/lessonbankitems

    TODO describe template lessonbankitems

    Example context (json):
    {
    }
}}
<div class="searchbox row no-gutters justify-content-between">
    {{#islistlayot}}
        {{> mod_minilesson/lessonbanklistitem}}
    {{/islistlayot}}
    {{^islistlayot}}
        {{#lessonitems}}
            {{> mod_minilesson/lessonbankitem}}
        {{/lessonitems}}
        {{^lessonitems}}
            <p class="bg-secondary p-3 text-center w-100"><b>{{#str}}nolessonitemfound, mod_minilesson{{/str}}</b></p>
        {{/lessonitems}}
    {{/islistlayot}}
    <div class="d-flex p-0 justify-content-between mt-1 w-100">
        {{#haspreviousbutton}}
            <button data-action="previousbtn" data-perpage="{{perpage}}" data-page="{{page}}" class="previouspagebtn btn btn-primary mr-auto"><i class="fa fa-arrow-left"></i> {{#str}}previous{{/str}}</button>
        {{/haspreviousbutton}}
        {{#hasnextbutton}}
            <button data-action="nextbtn" data-perpage="{{perpage}}" data-page="{{page}}" class="nextpagebtn btn btn-primary ml-auto">{{#str}}next{{/str}} <i class="fa fa-arrow-right"></i></button>
        {{/hasnextbutton}}
    </div>
</div>