1 |
efrain |
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/bulkactions/bulk_actions
|
|
|
19 |
|
|
|
20 |
Renders a section with all available bulk actions.
|
|
|
21 |
|
|
|
22 |
Context variables required for this template:
|
|
|
23 |
* actions - Array of objects with the following properties:
|
|
|
24 |
* actiontrigger - The HTML for the action trigger.
|
|
|
25 |
|
|
|
26 |
Example context (json):
|
|
|
27 |
{
|
|
|
28 |
"actions": [
|
|
|
29 |
{
|
|
|
30 |
"actiontrigger": "<button>Move</button>"
|
|
|
31 |
}
|
|
|
32 |
]
|
|
|
33 |
}
|
|
|
34 |
}}
|
|
|
35 |
<div class="justify-content-between" data-type="bulkactions">
|
|
|
36 |
<div class="d-flex">
|
|
|
37 |
</div>
|
|
|
38 |
<div data-for="bulktools">
|
|
|
39 |
<ul class="actions nav" data-for="bulkactions">
|
|
|
40 |
{{#actions}}
|
|
|
41 |
<li class="nav-item">
|
|
|
42 |
{{{actiontrigger}}}
|
|
|
43 |
</li>
|
|
|
44 |
{{/actions}}
|
|
|
45 |
</ul>
|
|
|
46 |
</div>
|
|
|
47 |
<div class="d-flex flex-column">
|
|
|
48 |
<div class="ml-auto">
|
|
|
49 |
<button
|
|
|
50 |
type="button"
|
|
|
51 |
class="btn pr-0 pb-0"
|
|
|
52 |
data-action="bulkcancel"
|
|
|
53 |
data-for="bulkcancel"
|
|
|
54 |
title="{{#str}} bulkcancel, core {{/str}}"
|
|
|
55 |
>
|
|
|
56 |
{{#pix}} e/cancel, core {{/pix}}
|
|
|
57 |
</button>
|
|
|
58 |
</div>
|
|
|
59 |
<div data-for="bulkcount">
|
|
|
60 |
{{#str}} bulkselection, core, {{bulkselectioncount}} {{/str}}
|
|
|
61 |
</div>
|
|
|
62 |
</div>
|
|
|
63 |
</div>
|