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/initials_bar
22 Example context (json):
24 "title": "First name",
25 "class": "firstinitial",
27 "url": "http://moodle.generic32/report/progress/index.php?course=2&sifirst",
34 "url": "http://moodle.generic32/report/progress/index.php?course=2&sifirst=A"
38 "url": "http://moodle.generic32/report/progress/index.php?course=2&sifirst=B"
42 "url": "http://moodle.generic32/report/progress/index.php?course=2&sifirst=C"
46 "url": "http://moodle.generic32/report/progress/index.php?course=2&sifirst=D"
55 "url": "http://moodle.generic32/report/progress/index.php?course=2&sifirst=W",
60 "url": "http://moodle.generic32/report/progress/index.php?course=2&sifirst=X"
64 "url": "http://moodle.generic32/report/progress/index.php?course=2&sifirst=Y"
68 "url": "http://moodle.generic32/report/progress/index.php?course=2&sifirst=Z"
76 <div class="initialbar {{class}} d-flex flex-wrap justify-content-center justify-content-md-start">
77 <span class="initialbarlabel mr-2">{{title}}</span>
79 <nav class="initialbargroups d-flex flex-wrap justify-content-center justify-content-md-start">
80 <ul class="pagination pagination-sm">
81 <li id="{{class}}_page-item_{{all}}" class="initialbarall page-item {{^current}}active{{/current}}">
83 <a data-initial="" class="page-link" href="{{url}}"{{^current}} aria-current="true"{{/current}}>{{all}}</a>
86 <input class="page-link mr-1 rounded" {{^current}} aria-current="true"{{/current}} value="{{all}}" type="button">
91 <ul class="pagination pagination-sm">
93 <li id="{{class}}_page-item_{{name}}" data-initial="{{name}}" class="page-item {{name}} {{#selected}}active{{/selected}}">
95 <a class="page-link" href="{{url}}"{{#selected}} aria-current="true"{{/selected}}>{{name}}</a>
98 <input class="page-link mr-1 rounded" {{#selected}} aria-current="true"{{/selected}} value="{{name}}" type="button">