64 lines
2.0 KiB
Plaintext
64 lines
2.0 KiB
Plaintext
{{!
|
|
This file is part of Moodle - http://moodle.org/
|
|
|
|
Moodle is free software: you can redistribute it and/or modify
|
|
it under the terms of the GNU General Public License as published by
|
|
the Free Software Foundation, either version 3 of the License, or
|
|
(at your option) any later version.
|
|
|
|
Moodle is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
|
}}
|
|
{{!
|
|
@template core/bulkactions/bulk_actions
|
|
|
|
Renders a section with all available bulk actions.
|
|
|
|
Context variables required for this template:
|
|
* actions - Array of objects with the following properties:
|
|
* actiontrigger - The HTML for the action trigger.
|
|
|
|
Example context (json):
|
|
{
|
|
"actions": [
|
|
{
|
|
"actiontrigger": "<button>Move</button>"
|
|
}
|
|
]
|
|
}
|
|
}}
|
|
<div class="justify-content-between px-3 py-2" data-type="bulkactions">
|
|
<div class="d-flex">
|
|
</div>
|
|
<div data-for="bulktools">
|
|
<ul class="actions nav" data-for="bulkactions">
|
|
{{#actions}}
|
|
<li class="nav-item">
|
|
{{{actiontrigger}}}
|
|
</li>
|
|
{{/actions}}
|
|
</ul>
|
|
</div>
|
|
<div class="d-flex flex-column">
|
|
<div class="ml-auto">
|
|
<button
|
|
type="button"
|
|
class="btn pr-0 pb-0"
|
|
data-action="bulkcancel"
|
|
data-for="bulkcancel"
|
|
title="{{#str}} bulkcancel, core {{/str}}"
|
|
>
|
|
{{#pix}} e/cancel, core {{/pix}}
|
|
</button>
|
|
</div>
|
|
<div data-for="bulkcount">
|
|
{{#str}} bulkselection, core, {{bulkselectioncount}} {{/str}}
|
|
</div>
|
|
</div>
|
|
</div>
|