{{!
    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 theme_degrade/quickstart/btn-next-back

    Example context (json):
    {
        "return":  "return-page",
        "next":  "next-page"
    }
}}

<div class="actions-buttons mt-3">
    {{#return}}
        <a class="btn btn-secondary me-3" href="#{{{return}}}">{{#str}}back{{/str}}</a>
    {{/return}}
    {{^return}}
        <button class="btn btn-secondary me-3" disabled>{{#str}}back{{/str}}</button>
    {{/return}}

    {{#next}}
        <a class="btn btn-info me-3" href="#{{{next}}}">{{#str}}next{{/str}}</a>
    {{/next}}
    {{^next}}
        <button class="btn btn-info me-3" disabled>{{#str}}next{{/str}}</button>
    {{/next}}

    <input class="btn btn-primary ms-3" type="submit" value="{{#str}}savechanges, admin{{/str}}">
</div>