{{! 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 } ] } }}
{{#categories}}

{{{name}}} {{#pix}}t/edit, core, {{#str}}edit{{/str}}{{/pix}} {{#candelete}} {{#pix}}t/delete, core, {{#str}}delete{{/str}}{{/pix}} {{/candelete}} {{^isfirst}} {{#pix}}t/up, core, {{#str}}moveup{{/str}}{{/pix}} {{/isfirst}} {{#isfirst}}{{#pix}}spacer, moodle{{/pix}}{{/isfirst}} {{^islast}} {{#pix}}t/down, core, {{#str}}movedown{{/str}}{{/pix}} {{/islast}}

{{#addfieldmenu}}{{> core/action_menu}}{{/addfieldmenu}}
{{#hasfields}} {{#fields}} {{/fields}} {{/hasfields}} {{^hasfields}} {{/hasfields}}
{{#str}}profilefield, admin{{/str}} {{#str}}edit{{/str}}
{{{name}}} {{#pix}}t/edit, core, {{#str}}edit{{/str}}{{/pix}} {{#pix}}t/delete, core, {{#str}}delete{{/str}}{{/pix}} {{^isfirst}} {{#pix}}t/up, core, {{#str}}moveup{{/str}}{{/pix}} {{/isfirst}} {{#isfirst}}{{#pix}}spacer, moodle{{/pix}}{{/isfirst}} {{^islast}} {{#pix}}t/down, core, {{#str}}movedown{{/str}}{{/pix}} {{/islast}} {{#islast}}{{#pix}}spacer, moodle{{/pix}}{{/islast}}
{{#str}}profilenofieldsdefined, admin{{/str}}
{{/categories}}
{{#js}} require(['core_user/edit_profile_fields'], function(s) { s.init(); }); {{/js}}