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 unilabeltype_collapsedtext/collapsedTemplate to show a bootstrap modal dialog.Example context (json):{"title": "fdsfsdf","content": "<div><p>...</p></div>","cmid": "55","useanimation": true}}}{{^useanimation}}<div class="unilabeltype-details"><details{{#openonstart}} open=""{{/openonstart}}><summary>{{{title}}}</summary><div>{{{content}}}</div></details></div>{{/useanimation}}{{#useanimation}}<div class="unilabeltype-collapsed"><a data-toggle="collapse"href="#unilabeltype-collapsed-{{uniqid}}-{{cmid}}"class="icons-collapse-expand {{^openonstart}}collapsed{{/openonstart}}"aria-expanded="true"aria-controls="unilabeltype-collapsed-{{uniqid}}-{{cmid}}"><span class="collapsed-icon icon-no-margin mr-1" title="{{srtitle_expand}}"><span class="dir-rtl-hide"><i class="icon fa fa-chevron-right fa-fw " aria-hidden="true"></i></span><span class="dir-ltr-hide"><i class="icon fa fa-chevron-left fa-fw " aria-hidden="true"></i></span><span class="sr-only">{{srtitle_expand}}</span></span><span class="expanded-icon icon-no-margin mr-1" title="{{srtitle_collapse}}"><i class="icon fa fa-chevron-down fa-fw " aria-hidden="true"></i><span class="sr-only">{{srtitle_collapse}}</span></span>{{title}}</a><div class="collapse{{#openonstart}} show{{/openonstart}}" id="unilabeltype-collapsed-{{uniqid}}-{{cmid}}">{{{content}}}</div></div>{{/useanimation}}{{#js}}{{#useanimation}}require(['mod_unilabel/collapse_helper'], function(collapsehelper) {collapsehelper.init("#unilabel-button-{{uniqid}}-{{cmid}}");});{{/useanimation}}{{/js}}