1 |
efrain |
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 core_reportbuilder/local/settings/area
|
|
|
19 |
|
|
|
20 |
Template for system report filters area
|
|
|
21 |
|
|
|
22 |
Example context (json):
|
|
|
23 |
{
|
|
|
24 |
"conditions": [{
|
|
|
25 |
"hasavailableconditions": true,
|
|
|
26 |
"availableconditions": [{
|
|
|
27 |
"optiongroup": [{
|
|
|
28 |
"text": "User",
|
|
|
29 |
"values": [{
|
|
|
30 |
"value": 1,
|
|
|
31 |
"visiblename": "User name"
|
|
|
32 |
}]
|
|
|
33 |
}]
|
|
|
34 |
}],
|
|
|
35 |
"hasactiveconditions": true,
|
|
|
36 |
"activeconditionsform": "form"
|
|
|
37 |
}],
|
|
|
38 |
"filters": [{
|
|
|
39 |
"hasavailablefilters": true,
|
|
|
40 |
"availablefilters": [{
|
|
|
41 |
"optiongroup": [{
|
|
|
42 |
"text": "User",
|
|
|
43 |
"values": [{
|
|
|
44 |
"value": 1,
|
|
|
45 |
"visiblename": "User name"
|
|
|
46 |
}]
|
|
|
47 |
}]
|
|
|
48 |
}],
|
|
|
49 |
"hasactivefilters": true,
|
|
|
50 |
"activefilters": [{
|
|
|
51 |
"heading": "Email address",
|
|
|
52 |
"entityname": "user",
|
|
|
53 |
"headingeditable": "Email address"
|
|
|
54 |
}]
|
|
|
55 |
}],
|
|
|
56 |
"sorting": [{
|
|
|
57 |
"hassortablecolumns": true,
|
|
|
58 |
"sortablecolumns": [{
|
|
|
59 |
"id": 1,
|
|
|
60 |
"title": "Email address",
|
|
|
61 |
"sortdirection": "4",
|
|
|
62 |
"sortenabled": true,
|
|
|
63 |
"sortorder": 1,
|
|
|
64 |
"sorticon": [{
|
|
|
65 |
"key": "t/uplong",
|
|
|
66 |
"component": "core",
|
|
|
67 |
"title": "Sort column 'Email address' ascending"
|
|
|
68 |
}],
|
|
|
69 |
"heading": "Email address"
|
|
|
70 |
}]
|
|
|
71 |
}],
|
|
|
72 |
"cardview": {
|
|
|
73 |
"form": "form"
|
|
|
74 |
}
|
|
|
75 |
}
|
|
|
76 |
}}
|
|
|
77 |
|
|
|
78 |
<div class="reportbuilder-sidebar-settings d-flex flex-column mt-3 mt-lg-0 mb-3 mb-lg-0 ml-lg-3">
|
|
|
79 |
|
|
|
80 |
{{< core_reportbuilder/toggle_card }}
|
|
|
81 |
{{$collapsed}}collapsed{{/collapsed}}
|
|
|
82 |
{{$id}}settingsconditions{{/id}}
|
|
|
83 |
{{$header}}{{#str}} conditions, core_reportbuilder {{/str}}{{/header}}
|
|
|
84 |
{{$helpicon}}{{{conditions.helpicon}}}{{/helpicon}}
|
|
|
85 |
{{$body}}
|
|
|
86 |
{{> core_reportbuilder/local/settings/conditions}}
|
|
|
87 |
{{/body}}
|
|
|
88 |
{{/ core_reportbuilder/toggle_card }}
|
|
|
89 |
|
|
|
90 |
{{< core_reportbuilder/toggle_card }}
|
|
|
91 |
{{$collapsed}}collapsed{{/collapsed}}
|
|
|
92 |
{{$id}}settingsfilters{{/id}}
|
|
|
93 |
{{$header}}{{#str}} filters, core_reportbuilder {{/str}}{{/header}}
|
|
|
94 |
{{$helpicon}}{{{filters.helpicon}}}{{/helpicon}}
|
|
|
95 |
{{$body}}
|
|
|
96 |
{{> core_reportbuilder/local/settings/filters}}
|
|
|
97 |
{{/body}}
|
|
|
98 |
{{/ core_reportbuilder/toggle_card }}
|
|
|
99 |
|
|
|
100 |
{{< core_reportbuilder/toggle_card }}
|
|
|
101 |
{{$collapsed}}collapsed{{/collapsed}}
|
|
|
102 |
{{$id}}settingssorting{{/id}}
|
|
|
103 |
{{$header}}{{#str}} sorting, core_reportbuilder {{/str}}{{/header}}
|
|
|
104 |
{{$helpicon}}{{{sorting.helpicon}}}{{/helpicon}}
|
|
|
105 |
{{$body}}
|
|
|
106 |
{{> core_reportbuilder/local/settings/sorting}}
|
|
|
107 |
{{/body}}
|
|
|
108 |
{{/ core_reportbuilder/toggle_card }}
|
|
|
109 |
|
|
|
110 |
{{< core_reportbuilder/toggle_card }}
|
|
|
111 |
{{$collapsed}}collapsed{{/collapsed}}
|
|
|
112 |
{{$id}}settingscardview{{/id}}
|
|
|
113 |
{{$header}}{{#str}} cardview, core_reportbuilder {{/str}}{{/header}}
|
|
|
114 |
{{$helpicon}}{{{cardview.helpicon}}}{{/helpicon}}
|
|
|
115 |
{{$body}}
|
|
|
116 |
{{> core_reportbuilder/local/settings/card_view}}
|
|
|
117 |
{{/body}}
|
|
|
118 |
{{/ core_reportbuilder/toggle_card }}
|
|
|
119 |
|
|
|
120 |
</div>
|