{{!
    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 mod_booking/recalculateprices

    Classes required for JS:
    * none

    Data attributes required for JS:
    * data-region

    Example context (json):
    {
        "cmid" :7,
        "back" : "http://site/mod/booking/view.php?id=7",
        "continue" : "http://site/mod/booking/recalculateprices.php?id=7&submit=1",
        "alert" : 0,
        "alertmsg" : "Caution! All prices will be recalculated and all old prices will be overwritten."
    }
}}
{{#hascap}}
  <div class="alert alert-danger alert-dismissible fade show" role="alert">
    {{{alertmsg}}}
    <button type="button" class="close" data-dismiss="alert" data-bs-dismiss="alert" aria-label="Close">
      <span aria-hidden="true">&times;</span>
    </button>
  </div>
    <a href="{{back}}" id="btn-booking-recalculateprices" class="btn btn-danger">  {{#str}} cancel, core {{/str}}
    </a>
    {{^alert}}
      <a href="{{continue}}" id="btn-booking-recalculateprices-success" class="btn btn-success">  {{#str}} recalculateall, mod_booking {{/str}}
      </a>
    {{/alert}}
{{/hascap}}
{{^hascap}}
  <div>{{#str}} nopermissiontoexecuteaction, mod_booking {{/str}}</div>
{{/hascap}}
