{{!
    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 local_gamibot_manager/instanceaddmodal

    Template for the modal to add an instance.

    Example context (json):
    {
        "tools": [
            {
                "linklabel": "Add test tool",
                "addurl": "https://mymoodle.com/addtool?tool=testtool",
                "adddescription": "This tool is a very great tool to add"
            },
            {
                "linklabel": "Add another test tool",
                "addurl": "https://mymoodle.com/addtool?tool=anothertesttool",
                "adddescription": "This tool is another very great tool to add"
            }
        ]
    }
}}
{{< core/modal}}
    {{$title}}
        {{#pix}} aiicon, local_gamibot_manager {{/pix}} {{#str}} instanceaddmodal_heading, local_gamibot_manager{{/str}}
    {{/title}}
    {{$body}}
        <div class="row">
            {{#tools}}
                <div class="col-4 mb-3">
                    <div class="card">
                        <h4 class="card-title"><a class="btn btn-link" href="{{{addurl}}}">{{linklabel}}</a></h4>
                        <div class="card-body">
                            <p>{{adddescription}}</p>
                        </div>
                    </div>
                </div>
            {{/tools}}
        </div>
    {{/body}}
{{/core/modal}}
