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_course/chooser_itemChooser item template.Example context (json):{"label": "Option name","description": "Option description","urls": {"addoption": "http://addoptionurl.com"},"icon": "<img class='icon' src='http://urltooptionicon'>"}}}<div role="menuitem" tabindex="-1" aria-label="{{title}}" class="option border-0 card m-1" data-region="chooser-option-container" data-internal="{{name}}" data-modname="{{componentname}}_{{link}}"><div class="optioninfo p-2 d-inline-flex align-items-center justify-content-between" data-region="chooser-option-info-container"><a class="d-inline-flex align-items-center" href="{{link}}" title="{{#str}} addnew, moodle, {{title}} {{/str}}" tabindex="-1" data-action="add-chooser-option"><div class="rui-optionicon optionicon activityiconcontainer {{purpose}}">{{{icon}}}</div><div class="rui-optionname clamp-2">{{title}}</div></a><div class="optionactions d-flex justify-content-center" role="group" data-region="chooser-option-actions-container">{{^legacyitem}}<button class="btn btn-sm btn-link btn-icon--xs icon-no-margin optionaction {{#favourite}}text-primary{{/favourite}}{{^favourite}}text-muted{{/favourite}}"data-action="manage-module-favourite"data-favourited="{{favourite}}"data-id="{{id}}"data-name="{{componentname}}"data-internal="{{name}}"{{^favourite}}aria-pressed="false"{{/favourite}}{{#favourite}}aria-pressed="true"{{/favourite}}aria-label="{{#str}} aria:modulefavourite, core_course, {{title}} {{/str}}"tabindex="-1"><svg width="18" height="18" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12 4.75V19.25" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M18.2501 8.74994L5.75 15.2501" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M18.2498 15.2503L5.74976 8.75012" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path></svg></button>{{/legacyitem}}<button class="btn btn-sm btn-icon--xs btn-link icon-no-margin optionaction ml-1" data-action="show-option-summary" tabindex="-1"><svg width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 13V15"></path><circle cx="12" cy="9" r="1" fill="currentColor"></circle><circle cx="12" cy="12" r="7.25" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></circle></svg><span class="sr-only">{{#str}} informationformodule, core_course, {{title}} {{/str}}</span></button></div></div></div>