MDL-64506 templates: replace spans where and col-x appears
[moodle.git] / admin / tool / dataprivacy / templates / contact_dpo.mustache
CommitLineData
5efc1f9e
DM
1{{!
2 This file is part of Moodle - http://moodle.org/
3
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.
8
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.
13
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/>.
16}}
17{{!
18 @template tool_dataprivacy/contact_dpo
19
20 The purpose of this template is to enable the user to contact the site's DPO via email.
21
22 Classes required for JS:
23 * none
24
25 Data attributes required for JS:
26 * none
27
28 Context variables required for this template:
29 * userid int The user's ID.
30 * email string The user's email address.
31
32 Example context (json):
33 {
34 "userid": 1,
35 "replytoemail": "martha@example.com"
36 }
37}}
38<div class="container">
5cac5fa4 39 <div class="row mb-2">
6ecc4459
MM
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>
5efc1f9e
DM
42 </div>
43 <div class="row" data-region="messageinput">
6ecc4459 44 <label for="message" class="col-md-3 col-form-label">
5efc1f9e
DM
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>
48 </span>
49 </label>
5edb0fbc 50 <div class="col-md-9">
5efc1f9e
DM
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}}
54 </div>
55 </div>
56 </div>
57</div>
58