{{! 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 core_user/edit_profile_fields UI for editing profile fields Example context (json): { "baseurl": "index.php", "sesskey": "12345", "categories": [ { "id": 1, "name": "Cat1", "fields": [ {"id": 1, "name": "Field1", "isfirst": true, "islast": false}, {"id": 2, "name": "Field2", "isfirst": false, "islast": false}, {"id": 3, "name": "Field3", "isfirst": false, "islast": true} ], "hasfields": true, "isfirst": true, "candelete": true }, { "id": 2, "name": "Cat2", "candelete": true }, { "id": 3, "name": "Cat3", "islast": true, "candelete": true } ] } }}
{{#str}}profilecreatecategory, admin{{/str}}
{{#categories}}

{{{name}}}

{{#candelete}} {{/candelete}} {{^isfirst}} {{/isfirst}} {{^islast}} {{/islast}}
{{#addfieldmenu}}{{> core/action_menu}}{{/addfieldmenu}}
{{#hasfields}}
    {{#fields}}
  • {{{name}}}
    {{^isfirst}} {{/isfirst}} {{^islast}} {{/islast}}
  • {{/fields}}
{{/hasfields}} {{^hasfields}}
{{#str}}profilenofieldsdefined, admin{{/str}}
{{/hasfields}}
{{/categories}}
{{#js}} require(['core_user/edit_profile_fields'], function(s) { s.init(); }); {{/js}}