{{!
    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 format_tiles/course_modules

    Example context (json):
    {"course_modules": [
        {
            "cmid": 123456,
            "modname": "label",
            "modnameDisplay": "",
            "activityname": "",
            "modtitle_inplaceeditable": "",
            "modresourceicon": "",
            "is_label": 1,
            "hasSpacersBefore": 0,
            "previouswaslabel": 0,
            "useSubtiles": 1,
            "modalType": "pdf",
            "clickable": 1,
            "extraclasses": "",
            "editing": 1,
            "content": "This is a label",
            "modinstance": "",
            "url": "",
            "description": "",
            "cmeditmenu": "",
            "cmmove": "",
            "availabilityinfo": "",
            "hascompletion": 1,
            "completionIsManual": 1,
            "completionstring": "Click to toggle completion status",
            "completionstate": 1,
            "completionstateInverse": "0"
            }
        ]}
}}

{{#course_modules}}
    {{>format_tiles/course_module}}
{{/course_modules}}
{{#useSubtiles}}
    <li class="activity subtile spacer" aria-hidden="true"></li>
    <li class="activity subtile spacer" aria-hidden="true"></li>
    <li class="activity subtile spacer" aria-hidden="true"></li>
    <li class="activity subtile spacer" aria-hidden="true"></li>
    <li class="activity subtile spacer" aria-hidden="true"></li>
    <li class="activity subtile spacer" aria-hidden="true"></li>
    <li class="activity subtile spacer" aria-hidden="true"></li>
{{/useSubtiles}}