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 report_insights/bulk_action_buttonExtension of core/single_button to show the label with HTMLClasses required for JS:* noneData attributes required for JS:* noneContext variables required for this template:* classes - a list of classes to wrap the form.* url - the action url to submit to* params - array of params with name and value attributes* primary - true if this is a primary action button* id - id for the element* tooltip - tooltip text for the button* disabled - true if this element is disabled* label - text to show on the buttonExample context (json):{"url" : "#","primary" : true,"tooltip" : "This is a tooltip","label" : "This is a the button text, it can include HTML","attributes": [{"name": "data-attribute","value": "yeah"}]}}}<div class="{{classes}}">{{#params}}<input type="hidden" name="{{name}}" value="{{value}}">{{/params}}<button type="submit" class="btn btn-sm {{#primary}}btn-primary{{/primary}}{{^primary}}btn-secondary{{/primary}}"id="{{id}}"title="{{tooltip}}"{{#disabled}}disabled{{/disabled}}{{#attributes}} {{name}}="{{value}}" {{/attributes}}>{{{label}}}</button></div>