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 gradereport_user/user_navigation
|
|
|
19 |
|
|
|
20 |
The previous/next user navigation for the user report view.
|
|
|
21 |
|
|
|
22 |
Context variables required for this template:
|
|
|
23 |
* previoususer - (optional) The object containing information about the previous user.
|
|
|
24 |
* name - The name of the previous user.
|
|
|
25 |
* url - The URL to the previous user report.
|
|
|
26 |
* nextuser - (optional) The object containing information about the next user.
|
|
|
27 |
* name - The name of the next user.
|
|
|
28 |
* url - The URL to the next user report.
|
|
|
29 |
|
|
|
30 |
Example context (json):
|
|
|
31 |
{
|
|
|
32 |
"previoususer": {
|
|
|
33 |
"name": "John Smith",
|
|
|
34 |
"url": "https://example.com/grade/report/user/index.php?id=2&userid=3"
|
|
|
35 |
},
|
|
|
36 |
"previoususer": {
|
|
|
37 |
"name": "Jane Doe",
|
|
|
38 |
"url": "https://example.com/grade/report/user/index.php?id=2&userid=5"
|
|
|
39 |
}
|
|
|
40 |
}
|
|
|
41 |
}}
|
|
|
42 |
<div class="user-navigation w-100 p-0">
|
|
|
43 |
<div class="container w-100 d-flex p-0">
|
|
|
44 |
{{#previoususer}}
|
|
|
45 |
<div class="previous d-flex">
|
|
|
46 |
<a class="btn btn-sm btn-secondary" href="{{url}}" aria-label="{{#str}} gotopreviousreport, gradereport_user {{/str}}">
|
|
|
47 |
<svg class="" width="18" height="18" stroke-width="2" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" color="currentColor">
|
|
|
48 |
<path d="M18.5 12H6m0 0l6-6m-6 6l6 6" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path>
|
|
|
49 |
</svg>
|
|
|
50 |
<span class="ml-2">{{name}}</span>
|
|
|
51 |
</a>
|
|
|
52 |
</div>
|
|
|
53 |
{{/previoususer}}
|
|
|
54 |
{{#nextuser}}
|
|
|
55 |
<div class="next d-flex ml-auto">
|
|
|
56 |
<a class="btn btn-sm btn-secondary" href="{{url}}" aria-label="{{#str}} gotonextreport, gradereport_user {{/str}}">
|
|
|
57 |
<span class="mr-2">{{name}}</span>
|
|
|
58 |
<svg width="18" height="18" stroke-width="2" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" color="currentColor">
|
|
|
59 |
<path d="M6 12h12.5m0 0l-6-6m6 6l-6 6" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path>
|
|
|
60 |
</svg>
|
|
|
61 |
</a>
|
|
|
62 |
</div>
|
|
|
63 |
{{/nextuser}}
|
|
|
64 |
</div>
|
|
|
65 |
</div>
|