Rev 1 | AutorÃa | Comparar con el anterior | 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 tool_policy/acceptances_filterTemplate for the unified filter element.Context variables required for this template:* action string - The action URL for the form.* filteroptions - Array of filter options.* value string - The option value.* label string - The option label.* selected boolean - Whether the option is selectedExample context (json):{"action": "/admin/tool/policy/acceptances.php","filteroptions": [{"value": "1","label": "Option 1"},{"value": "2","label": "Option 2","selected": true},{"value": "3","label": "Option 3","selected": true},{"value": "4","label": "Option 4"}]}}}<form method="post" action="{{action}}" class="mb-1" role="search"><label for="unified-filters" class="visually-hidden">{{#str}}filters , tool_policy{{/str}}</label><select name="unified-filters[]" id="unified-filters" multiple="multiple" data-originaloptionsjson="{{originaloptionsjson}}" class="form-autocomplete-original-select">{{#filteroptions}}<option value="{{value}}" {{#selected}}selected="selected"{{/selected}}>{{{label}}}</option>{{/filteroptions}}</select><input type="hidden" name="unified-filter-submitted" value="1"></form>{{#js}}require(['tool_policy/acceptances_filter'], function(Filter) {Filter.init();});{{/js}}