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

    Setup wizard header template

    Context variables required for this template:
    steps: An array of step objects, each containing the following properties:
    key: A unique identifier for the step.
    name: The display name of the step.
    htmlicon: The HTML code for the step icon.
    iscompleted: A boolean indicating whether the step has been completed.
    isactive: A boolean indicating whether the step is currently active.
    toplevel: A boolean indicating whether the step is a top-level step.
    
    Example context (JSON):
    {
        "steps": [
          {
            "key": "step1",
            "name": "Step 1",
            "htmlicon": "<i class='icon fa fa-check'></i>",
            "iscompleted": true,
            "isactive": false,
            "toplevel": true
          },
          {
            "key": "step2",
            "name": "Step 2",
            "htmlicon": "<i class='icon fa fa-times'></i>",
            "iscompleted": false,
            "isactive": true,
            "toplevel": true
          }
        ]
    }
}}
<ul class="eb-setup-steps">
    {{#steps}}
        {{#toplevel}}
            <li class="eb-setup-step eb-setup-step-{{key}} {{#iscompleted}}eb-setup-step-completed{{/iscompleted}}{{#isactive}}eb-setup-step-active{{/isactive}}-wrap">
                {{{htmlicon}}}
                <span class="eb-setup-steps-title {{#iscompleted}}eb-setup-step-completed{{/iscompleted}}" data-step="{{key}}">
                    {{name}}
                </span>
            </li>
        {{/toplevel}}
    {{/steps}}
</ul>
