2 This file is part of Moodle - http://moodle.org/
4 Moodle is free software: you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation, either version 3 of the License, or
7 (at your option) any later version.
9 Moodle is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with Moodle. If not, see <http://www.gnu.org/licenses/>.
18 @template core_message/preferences_processor
20 The message processor configuration block for the preferences page
22 Classes required for JS:
25 Data attibutes required for JS:
28 Context variables required for this template:
29 * userid The logged in user id
30 * displayname The display name for the processor form
31 * name The name of the processor
32 * formhtml The form HTML
34 Example context (json):
37 "displayname": "Email",
39 "formhtml": "<input name='test' type='text' />"
42 <h4>{{displayname}}</h4>
43 <div class="processor-container"
44 data-user-id="{{userid}}"
45 data-processor-name="{{name}}"
46 data-processor-id="{{uniqid}}">
48 <div class="loading-container">
49 <div class="vertical-align"></div>
57 require(['jquery', 'core_message/preferences_processor_form'], function($, ProcessorForm) {
58 new ProcessorForm($('[data-processor-id="{{uniqid}}"]'));