2 This file is part of Moodle - http://moodle.org/
3 Moodle is free software: you can redistribute it and/or modify
4 it under the terms of the GNU General Public License as published by
5 the Free Software Foundation, either version 3 of the License, or
6 (at your option) any later version.
7 Moodle is distributed in the hope that it will be useful,
8 but WITHOUT ANY WARRANTY; without even the implied warranty of
9 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 GNU General Public License for more details.
11 You should have received a copy of the GNU General Public License
12 along with Moodle. If not, see <http://www.gnu.org/licenses/>.
15 @template core_grades/grade_category_visibility_toggle
17 Template for the grade category visibility toggle element.
19 Context variables required for this template:
20 * category - The grade category identifier
22 Example context (json):
27 <a aria-expanded="true" role="button" data-category={{category}} data-target=".{{category}}[data-hidden='false']" class="btn btn-icon mr-1 toggle-category" href="#">
28 <span class="collapsed text-nowrap" title="{{#str}} collapse, core {{/str}}">
29 <i class="icon fa fa-chevron-down fa-fw" title="{{#str}} collapse, core {{/str}}" role="img" aria-label="{{#str}} collapse, core {{/str}}"></i>
31 <span class="expanded text-nowrap" title="{{#str}} expand, core {{/str}}">
32 <i class="icon fa fa-chevron-right fa-fw" title="{{#str}} expand, core {{/str}}" role="img" aria-label="{{#str}} expand, core {{/str}}"></i>