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/defaults_display
20 Renders the current default category and purpose.
22 Classes required for JS:
24 Data attributes required for JS:
26 Context variables required for this template:
27 * contextlevel Number - The context level.
28 * categoryid Number - The category ID.
29 * purposeid Number - The purpose ID.
30 * category String - The category name.
31 * purpose String - The purpose name.
32 * canedit Boolean - Whether this is being rendered for editing purposes.
34 Example context (json):
36 "category": "Awesome default category",
38 "purpose": "Awesome default purpose",
44 <div class="row-fluid rtl-compatible m-t-1 m-b-1">
45 <div class="col-md-9 span9">
46 <div class="row-fluid rtl-compatible m-t-1 m-b-1">
47 <div class="col-md-3 span3">
48 <strong>{{#str}}category, tool_dataprivacy{{/str}}</strong>
50 <div class="col-md-9 span9">
54 <div class="row-fluid rtl-compatible m-t-1 m-b-1">
55 <div class="col-md-3 span3">
56 <strong>{{#str}}purpose, tool_dataprivacy{{/str}}</strong>
58 <div class="col-md-9 span9">
63 <div class="col-md-3 align-self-center">
65 <button class="btn btn-default" {{!
66 }}data-action="edit-level-defaults" {{!
67 }}data-contextlevel="{{contextlevel}}" {{!
68 }}data-category="{{categoryid}}" {{!
69 }}data-purpose="{{purposeid}}">