2 This file is part of Moodle - http://moodle.org/
4 Moodle is free software: you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation, either version 3 of the License, or
7 (at your option) any later version.
9 Moodle is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with Moodle. If not, see <http://www.gnu.org/licenses/>.
18 @template core_reportbuilder/toggle_card
20 Template for empty_message
22 Example context (json):
24 "collapsed": "collapsed",
26 "header": "Toggle card heading",
27 "buttontitle": "Expand toggle card",
28 "body": "This is the toggle card content"
31 <div class="card reportbuilder-toggle-card mb-2">
32 <div class="card-header p-0">
33 <div class="d-flex align-items-center mb-0 p-1">
35 <span class="mr-1">{{$header}}{{/header}}</span> {{$helpicon}}{{/helpicon}}
37 <button class="btn toggle-card-button ml-auto {{$collapsed}}{{/collapsed}}"
38 data-toggle="collapse"
39 data-target="#{{$id}}{{uniqid}}{{/id}}"
41 aria-controls="{{$id}}{{uniqid}}{{/id}}"
42 title="{{#str}}showhide, core_reportbuilder, {{$header}}{{/header}}{{/str}}"
44 <span class="collapsed-icon-container"><i class="toggle-card-icon fa fa-lg fa-angle-down"></i></span>
45 <span class="expanded-icon-container"><i class="toggle-card-icon fa fa-lg fa-angle-up"></i></span>
49 <div id="{{$id}}{{uniqid}}{{/id}}" class="collapse {{$collapsed}}show{{/collapsed}}">
50 <div class="card-body p-0">