{{!
    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 Bridge
    @package auth_edwiserbridge
    @copyright (c) 2024 WisdmLabs (https://wisdmlabs.com/)
    @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
}}
{{!
    @template auth_edwiserbridge/plugin_configuration

    Setup wizard plugin configuration template

    Context variables required for this template:
    * setupmdlpluginnote1 : Setup mdl plugin note 1
    * checks: Checks
    * setupmdlsettingssuccessmsg: Setup mdl settings success msg
    * display_note1: Display note
    * setupmdlpluginnote2: Setup mdl plugin note 2
    * step: Step
    * nextstep: Next step
    * isnextsubstep: Is next sub step
    * setupenablesettings: Setup enable settings
    * displaycontinue: Display continue
    * setupcontinuebtn: Setup continue btn

    Example context (JSON):
    {
        "setupmdlpluginnote1": "value1",
        "checks": "value2",
        "setupmdlsettingssuccessmsg": "value3",
        "display_note1": "value4",
        "setupmdlpluginnote2": "value5",
        "step": "value6",
        "nextstep": "value7",
        "isnextsubstep": "value8",
        "setupenablesettings": "value9",
        "displaycontinue": "value10",
        "setupcontinuebtn": "value11"
    }
}}
<div class="eb_plugin_configuration es-w-80">
    <div>
        <p>{{{setupmdlpluginnote1}}}</p>
        <div class="eb_plugin_configuration_checks">
            {{#checks}}
            <div class="eb_setup_h3 es-p-b-10">
                <i class="fa-solid fa-circle-check {{icon_class}}" style="{{style}}"></i>
                {{{check_text}}}
                <i class="fa-solid fa-info eb-tooltip es-info-icon">
                    <span class='eb-tooltiptext'>{{{tooltip_text}}}</span>
                </i>
            </div>
            {{/checks}}
            <div class="eb_setup_settings_success_msg">
                <i class="fa-solid fa-circle-check"></i>
                {{{setupmdlsettingssuccessmsg}}}
            </div>
        </div>
        <div style="{{displaynote}}">
            <span class="eb_enable_plugin_settings_label">{{{setupmdlpluginnote2}}}</span>
            <button
                class="eb_setup_btn eb_enable_plugin_settings"
                data-step='{{step}}'
                data-next-step='{{nextstep}}'
                data-is-next-sub-step='{{isnextsubstep}}'>
                {{{setupenablesettings}}}
            </button>
        </div>
        <div class="eb_setup_btn_wrap">
            <button
                class="eb_setup_btn eb_setup_save_and_continue"
                style="{{displaycontinue}}"
                data-step='{{step}}'
                data-next-step='{{nextstep}}'
                data-is-next-sub-step='{{isnextsubstep}}'>
                {{{setupcontinuebtn}}}
            </button>
        </div>
    </div>
</div>

