{{!
    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/permalink

    Setup wizard permalink template

    Context variables required for this template:
    * setuppermalinknote1: Setup permalink note 1
    * setuppermalinknote2: Setup permalink note 2
    * setuppermalinknote3: Setup permalink note 3
    * espostname: Post name
    * setuppermalinkclick: Setup permalink click
    * url: Url
    * prevurl: Previous url
    * back: Back
    * step: Step
    * nextstep: Next step
    * isnextsubstep: Is next sub step
    * confirmed: Confirmed


    Example context (JSON):
    {
        "setuppermalinknote1": "value1",
        "setuppermalinknote2": "value2",
        "setuppermalinknote3": "value3",
        "espostname": "value4",
        "setuppermalinkclick": "value5",
        "url": "value6",
        "prevurl": "value7",
        "back": "value8",
        "step": "value9",
        "nextstep": "value10",
        "isnextsubstep": "value11",
        "confirmed": "value12"
    }
}}
<div class='eb_setup_check_permalink es-w-80'>
    <div>
        <div>
            <p class="">
                {{{setuppermalinknote1}}}<b>{{{espostname}}}</b>
            </p>
            <p class="">
                {{{setuppermalinkclick}}}
                <a class="es_text_links" target="_blank" href="{{url}}">{{url}}</a>
                {{{setuppermalinknote2}}}
            </p>
            <div class="">{{{setuppermalinknote3}}}</div>
        </div>
        <div>
            <div class="eb_setup_btn_wrap">
                <a class="eb_setup_sec_btn" href="{{prevurl}}">
                    {{{back}}}
                </a>
                <button
                    class="eb_setup_btn eb_setup_save_and_continue"
                    data-step='{{step}}'
                    data-next-step='{{nextstep}}'
                    data-is-next-sub-step='{{isnextsubstep}}'>
                    {{{confirmed}}}
                </button>
            </div>
        </div>
    </div>
</div>
