MDL-67264 lib modal: Add deffered promises to content promises
[moodle.git] / course / templates / chooser.mustache
CommitLineData
05b27f21
MM
1{{!
2 This file is part of Moodle - http://moodle.org/
3
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.
8
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.
13
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/>.
16}}
17{{!
18 @template core_course/chooser
19
20 Chooser dialog template.
21
22 Example context (json):
23 {
24 "title": "Chooser title",
25 "options": {
26 "label": "Option name",
27 "description": "Option description",
28 "urls": {
29 "addoption": "http://addoptionurl.com"
30 },
31 "icon": "<img class='icon' src='http://urltooptionicon'>"
32 }
33 }
34}}
35<div data-region="carousel" class="carousel slide">
36 <div class="carousel-inner" aria-live="polite">
37 <div class="carousel-item active" data-region="modules">
38 <div class="modchoosercontainer" data-region="chooser-container" aria-label="{{#str}} activitymodules {{/str}}">
39 <div class="optionscontainer d-flex flex-wrap mw-100 p-3 position-relative" role="menubar" data-region="chooser-options-container">
40 {{#default}}
41 {{>core_course/chooser_item}}
42 {{/default}}
43 </div>
44 </div>
45 </div>
46 <div class="carousel-item" data-region="help"></div>
47 </div>
48</div>