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/item navigation for the singleview report.
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/item.
20
        * url - The URL to the previous user/item report.
21
    * nextuser - (optional) The object containing information about the next user.
22
        * name - The name of the next user/item.
23
        * url - The URL to the next user/item report.
24
    Example context (json):
25
    {
26
        "previoususer": {
27
            "name": "John Smith",
28
            "url": "https://example.com/grade/report/singleview/index.php?id=2&itemid=3"
29
        },
30
        "previoususer": {
31
            "name": "Jane Doe",
32
            "url": "https://example.com/grade/report/singleview/index.php?id=2&itemid=5"
33
        }
34
    }
35
}}
36
<div class="report-navigation w-100">
37
    <div class="container w-100 d-flex">
38
        {{#perpageselect}}
39
            <div class="d-flex report-paging">
40
                {{{perpageselect}}}
41
            </div>
42
        {{/perpageselect}}
43
        <div class="d-flex ml-auto mt-2">
44
            {{#previoususer}}
45
                <div class="previous d-flex">
46
                    <a href="{{url}}" aria-label="{{#str}} gotopreviousreport, gradereport_singleview {{/str}}">
47
                        <i class="fa fa-caret-{{previousarrow}} fa-lg pr-1"></i>
48
                        {{name}}
49
                    </a>
50
                </div>
51
            {{/previoususer}}
52
        </div>
53
        <div class="d-flex ml-auto mt-2">
54
            {{#nextuser}}
55
                <div class="next d-flex ml-auto">
56
                    <a href="{{url}}" aria-label="{{#str}} gotonextreport, gradereport_singleview {{/str}}">
57
                        {{name}}
58
                        <i class="fa fa-caret-{{nextarrow}} fa-lg pl-1"></i>
59
                    </a>
60
                </div>
61
            {{/nextuser}}
62
        </div>
63
    </div>
64
</div>