Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
{{!
2
    This file is part of Moodle - http://moodle.org/
3
    Moodle is free software: you can redistribute it and/or modify
4
    it under the terms of the GNU General Public License as published by
5
    the Free Software Foundation, either version 3 of the License, or
6
    (at your option) any later version.
7
    Moodle is distributed in the hope that it will be useful,
8
    but WITHOUT ANY WARRANTY; without even the implied warranty of
9
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
10
    GNU General Public License for more details.
11
    You should have received a copy of the GNU General Public License
12
    along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
13
}}
14
{{!
15
    @template gradereport_singleview/report_navigation
16
    The previous/next user navigation for the user report view.
17
    Context variables required for this template:
18
    * previoususer - (optional) The object containing information about the previous user.
19
        * name - The name of the previous user.
20
        * url - The URL to the previous user report.
21
    * nextuser - (optional) The object containing information about the next user.
22
        * name - The name of the next user.
23
        * url - The URL to the next user report.
24
    Example context (json):
25
    {
26
        "previoususer": {
27
            "name": "John Smith",
28
            "url": "https://example.com/grade/report/user/index.php?id=2&userid=3"
29
        },
30
        "previoususer": {
31
            "name": "Jane Doe",
32
            "url": "https://example.com/grade/report/user/index.php?id=2&userid=5"
33
        }
34
    }
35
}}
36
<div class="mr-auto d-flex align-items-center report-navigation">
37
    {{#perpageselect}}
38
        <div class="d-inline-flex report-paging ml-3">
39
            {{{perpageselect}}}
40
            {{{pager}}}
41
        </div>
42
    {{/perpageselect}}
43
    <div class="d-inline-flex {{#perpageselect}}ml-3{{/perpageselect}}">
44
 
45
            {{#previoususer}}
46
                <div class="previous d-flex mr-2">
47
                    <a href="{{url}}" class="btn btn-sm btn-secondary"  aria-label="{{#str}} gotopreviousreport, gradereport_singleview {{/str}}">
48
                        <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">
49
                            <path d="M18.5 12H6m0 0l6-6m-6 6l6 6" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path>
50
                        </svg>
51
                        <span class="ml-2">{{name}}</span>
52
                    </a>
53
                </div>
54
            {{/previoususer}}
55
 
56
            {{#nextuser}}
57
                <div class="next d-flex {{#previoususer}}ml-2{{/previoususer}} mr-2">
58
                    <a href="{{url}}" class="btn btn-sm btn-secondary"  aria-label="{{#str}} gotonextreport, gradereport_singleview {{/str}}">
59
                        <span class="mr-2">{{name}}</span>
60
                        <svg width="18" height="18" stroke-width="2" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" color="currentColor">
61
                            <path d="M6 12h12.5m0 0l-6-6m6 6l-6 6" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path>
62
                        </svg>
63
                    </a>
64
                </div>
65
            {{/nextuser}}
66
 
67
    </div>
68
</div>