{{!
    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_sitenotice/modal_notice

    Template for modal pop up.

    Context variables required for this template:
      * classes
      * uniqid
      * headerclasses
      * header
      * title
      * body
      * footer

    Example context (json):
    {
        "classes": "classes",
        "uniqid": "uniqid",
        "headerclasses": "headerclasses",
        "header": "header",
        "title": "title",
        "body": "body",
        "footer": "footer"
    }
}}

<div class="modal moodle-has-zindex" data-region="modal-container" aria-hidden="true" role="dialog">
    <div class="modal-dialog sitenotice {{$classes}}{{/classes}}" role="document" data-region="modal" aria-labelledby="{{uniqid}}-modal-title" tabindex="0">
        <div class="modal-content">
            <div class="modal-header {{$headerclasses}}{{headerclasses}}{{/headerclasses}}" data-region="header">
                {{$header}}
                    <h5 id="{{uniqid}}-modal-title" class="modal-title" data-region="title">{{$title}}{{title}}{{/title}}</h5>
                {{/header}}
            </div>
            <div class="modal-body" data-region="body">
                {{$body}}
                    {{{body}}}
                {{/body}}
            </div>
            <div class="modal-footer" data-region="footer">
                {{$footer}}
                    <button id="sitenotice-closebtn" type="button" class="btn btn-primary" data-action="close">
                        {{#str}} button:close, local_sitenotice  {{/str}}
                    </button>
                    <div id="tooltip-wrapper" data-title="{{# str }} modal:acceptbtntooltip, local_sitenotice {{/ str }}">
                        <button id="sitenotice-acceptbtn" type="button" class="btn btn-secondary" data-action="accept">
                            {{#str}} button:accept, local_sitenotice {{/str}}
                        </button>
                    </div>
                {{/footer}}
            </div>
        </div>
    </div>
</div>
