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 comments.
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/request_details
22 Classes required for JS:
25 Data attributes required for JS:
28 Context variables required for this template:
29 * foruser Object The context data provided by core_user/external/user_summary_exporter.
30 * reviewurl String The URL for the Review request link.
31 * timecreated Number The timestamp when the request was created.
32 * statuslabel String The text equivalent of the status.
33 * statuslabelclass String The class to be used for rendering the status text.
34 * messagehtml String The HTML version of the request message.
36 Example context (json):
39 "fullname": "Martha Smith",
40 "email": "martha@example.com",
42 "profileimageurl": "https://randomuser.me/api/portraits/women/60.jpg"
46 "timecreated": 1517561224,
48 "fullname": "Martha Smith",
51 "statuslabel": "Pending",
52 "statuslabelclass": "label-default",
53 "messagehtml": "<p>Hello,</p><p>I would like to download all of my personal data.</p><p>Thanks!</p>"
56 <div class="container" data-requestid="{{id}}">
58 <div class="media-left">
59 <img class="userpicture" src="{{foruser.profileimageurl}}"
60 alt="{{#str}}pictureof, moodle, {{foruser.fullname}}{{/str}}"
61 title="{{#str}}pictureof, moodle, {{foruser.fullname}}{{/str}}" />
63 <div class="media-body">
64 <h4 class="m-t-0 m-b-1">
65 <a href="{{foruser.profileurl}}" title="{{#str}}viewprofile{{/str}}">{{foruser.fullname}}</a>
67 <a href="mailto:{{foruser.email}}">{{foruser.email}}</a>
68 <div class="clearfix m-t-1 m-b-1">
69 <span class="pull-left m-r-1">
70 <strong>{{#str}}daterequesteddetail, tool_dataprivacy{{/str}}</strong> {{#userdate}} {{timecreated}}, {{#str}} strftimedatetime {{/str}} {{/userdate}}
72 <span class="pull-left m-r-1">
73 <strong>{{#str}}statusdetail, tool_dataprivacy{{/str}}</strong>
74 <span class="label {{statuslabelclass}}">{{statuslabel}}</span>
76 <span class="pull-left m-r-1">
77 <strong>{{#str}}requestbydetail, tool_dataprivacy{{/str}}</strong>
78 <span><a href="{{requestedbyuser.profileurl}}" title="{{#str}}viewprofile{{/str}}">{{requestedbyuser.fullname}}</a></span>
82 <!--a href="{{reviewurl}}" class="btn btn-secondary">{{#str}}reviewdata, tool_dataprivacy{{/str}}</a-->
88 <strong>{{#str}}messagelabel, tool_dataprivacy{{/str}}</strong>