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 block_multiblock/vertical-tabbed-list-bootstrap4This template shows the multiple blocks in a tabbed viewExample context (json):{"multiblockid": 28,"multiblock": [{"id": 1,"title": "Block 1","content": "<p>Block 1</p>","footer": "My footer","active": true},{"id": 2,"title": "Block 2","content": "<p>Block 2</p>","footer": "","active": false}]}}}<div class="multiblock multiblock-vertical-tabbed-list"><div class="row"><div class="col-md-3"><div class="nav flex-column nav-pills" id="multiblock-container-{{multiblockid}}" role="tablist" aria-orientation="vertical">{{#multiblock}}<a class="nav-link{{#active}} active{{/active}}" id="multiblock-tab-{{multiblockid}}-{{id}}" data-toggle="pill" href="#multiblock-{{multiblockid}}-{{id}}" role="tab" aria-controls="multiblock-tab-{{multiblockid}}-{{id}}" aria-selected="{{#active}}true{{/active}}{{^active}}false{{/active}}">{{{title}}}</a>{{/multiblock}}</div></div><div class="col-md-9"><div class="tab-content" id="multiblock-content-{{multiblockid}}">{{#multiblock}}<div class="tab-pane fade{{#active}} show active{{/active}}" id="multiblock-{{multiblockid}}-{{id}}" role="tabpanel" aria-labelledby="multiblock-tab-{{multiblockid}}-{{id}}"><div class="{{class}}">{{{content}}}<div class="footer">{{{footer}}}</div>{{{annotation}}}</div></div>{{/multiblock}}</div></div></div></div>