{{! 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_admin/admin_setting_encryptedpassword Admin encrypted password template. Context variables required for this template: * name - form element name * set - whether it is set or empty * id - element id Example context (json): { "name": "test", "id": "test0", "set": true } }}
{{#set}} {{# str }} encryptedpassword_set, admin {{/ str }} {{/set}} {{^set}} {{# str }} novalueclicktoset, form {{/ str }} {{# pix }} t/passwordunmask-edit, core, {{# str }} passwordunmaskedithint, form {{/ str }}{{/ pix }} {{/set}} {{! Using buttons instead of links here allows them to be connected to the label, so the button works if you click the label. }} {{#set}} {{/set}}
{{#js}} require(['core_form/encryptedpassword'], function(encryptedpassword) { new encryptedpassword.EncryptedPassword("{{ id }}"); }); {{/js}}