AutorÃa | Ultima modificación | Ver Log |
{{!This file is part of Moodle - http://moodle.org/Moodle is free software: you can redistribute it and/or modifyit under the terms of the GNU General Public License as published bythe 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 ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See theGNU General Public License for more details.You should have received a copy of the GNU General Public Licensealong with Moodle. If not, see <http://www.gnu.org/licenses/>.}}{{!@template core/add_block_bodyTemplate for the body of the add block modal.Context variables required for this template:* blocks - list of blocks containing name and title* url - base url for links back to same page.Example context (json):{"blocks" : [ { "name": "test", "title": "Test block" } ],"url" : "?a=b"}}}<div class="d-inline-flex flex-wrap mt-2">{{#blocks}}<a href="{{url}}&bui_addblock={{name}}" class="btn btn-xs btn-secondary mr-2 mb-2 ml-0">{{title}}</a>{{/blocks}}{{^blocks}}<div class="badge badge-info" role="alert">{{#str}} noblockstoaddhere {{/str}}</div>{{/blocks}}</div>