芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/.trash/cepali/admin/tool/dataprivacy/templates/category_purpose_form.mustache
{{! 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 tool_dataprivacy/category_purpose_form Manage data registry defaults. Classes required for JS: Data attributes required for JS: Context variables required for this template: * actionurl String The action URL. * contextlevel Number - The context level. * modemodule Boolean - Whether to display the activity select element. * activityoptions Array - An array of objects for the activity select element. * categoryoptions Array - An array of objects for the category select element. * purposeoptions Array - An array of objects for the purpose select element. Example context (json): { "actionurl": "#", "contextlevel": 70, "newactivitydefaults": true, "modemodule": true, "activityoptions": [ { "name": "assign", "displayname": "Assignment" }, { "name": "forum", "displayname": "Forum", "selected": true }, { "name": "lesson", "displayname": "Lesson" }, { "name": "quiz", "displayname": "Quiz" } ], "categoryoptions": [ { "id": 1, "name": "Category 1" }, { "id": 2, "name": "Category 2", "selected": true }, { "id": 3, "name": "Category 3" } ], "purposeoptions": [ { "id": 1, "name": "Purpose 1" }, { "id": 2, "name": "Purpose 2" }, { "id": 3, "name": "Purpose 3", "selected": true } ] } }}
{{#str}}defaultswarninginfo, tool_dataprivacy{{/str}}
{{#modemodule}}
{{#str}}activitymodule{{/str}}
{{^newactivitydefaults}}
{{/newactivitydefaults}}
{{#activityoptions}}
{{displayname}}
{{/activityoptions}}
{{/modemodule}}
{{#str}}category, tool_dataprivacy{{/str}}
{{#categoryoptions}}
{{name}}
{{/categoryoptions}}
{{#str}}purpose, tool_dataprivacy{{/str}}
{{#purposeoptions}}
{{name}}
{{/purposeoptions}}
{{#str}}overrideinstances, tool_dataprivacy{{/str}}