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 tool_dataprivacy/contact_dpo
20 The purpose of this template is to enable the user to contact the site's DPO via email.
22 Classes required for JS:
25 Data attributes required for JS:
28 Context variables required for this template:
29 * userid int The user's ID.
30 * email string The user's email address.
32 Example context (json):
35 "replytoemail": "martha@example.com"
38 <div class="container">
39 <div class="row mb-2">
40 <label class="col-md-3 col-form-label">{{#str}}replyto, tool_dataprivacy{{/str}}</label>
41 <div class="col-md-9 col-form-label">{{replytoemail}}</div>
43 <div class="row" data-region="messageinput">
44 <label for="message" class="col-md-3 col-form-label">
45 {{#str}}message, tool_dataprivacy{{/str}}
46 <span class="pull-xs-right text-nowrap">
47 <abbr class="initialism text-danger" title="{{#str}}required{{/str}}">{{#pix}}req, core, {{#str}}required{{/str}}{{/pix}}</abbr>
50 <div class="col-md-9">
51 <textarea class="form-control" id="message" cols="60" rows="8"></textarea>
52 <div class="form-control-feedback" id="id_error_message" hidden="hidden">
53 {{#str}}required, moodle{{/str}}