{{! This file is part of Moodle - http://moodle.org/ Moodle is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the 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 of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with Moodle. If not, see . }} {{! @template mod_data/presets Form containing all database presets displayed within a table. Context variables required for this template: * formactionurl - The form action url. * id - The database course module id (cmid). * presets - List of presets containing id, name, fullname, shortname and actions. Example context (json): { "formactionurl": "http://www.example.com", "id": 1, "presets": [ { "id": 1, "cmid": 1, "name": "Image gallery", "shortname": "imagegallery", "fullname": "Image gallery", "description": "Use this preset to collect images", "userid": 0, "url": "http://www.example.com", "actions": [], "presetindex": 0 }, { "id": 2, "cmid": 2, "name": "Preset saved manually", "shortname": "Preset saved manually", "fullname": "Preset saved manually (admin)", "userid": 2, "url": "http://www.example.com", "actions": [], "presetindex": 1 } ] } }} {{#str}}presetshelp, mod_data{{/str}}
{{#str}}presets, mod_data{{/str}} {{#presets}} {{/presets}}
{{#str}}select{{/str}} {{#str}} name {{/str}} {{#str}} description {{/str}} {{#str}}actions{{/str}}
{{fullname}} {{description}} {{#actions}}
{{>core/action_menu}}
{{/actions}}
{{< core/sticky_footer }} {{$ stickycontent }} {{/ stickycontent }} {{/ core/sticky_footer }}
{{#js}} require(['mod_data/selectpreset'], function(selectPreset) { selectPreset.init(); }); require(['mod_data/editpreset'], function(editPreset) { editPreset.init(); }); require(['mod_data/importmappingdialogue'], function(importPreset) { importPreset.init(); }); {{/js}}