Proyectos de Subversion Moodle

Rev

Ir a la última revisión | | 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
 
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 mod_quiz/overrides_actions
19
    Actions bar at the top of the overrides page UI.
20
 
21
    Classes required for JS:
22
    * none
23
 
24
    Data attributes required for JS:
25
    * none
26
 
27
    Context variables required for this template:
28
    * overridesnav - must alwasy be present.
29
    * addoverridebutton - should only be present if the user has permission to add a new override.
30
 
31
    Example context (json):
32
    {
33
        "overridesnav": {
34
            "options": [{
35
                    "name": "User overrides",
36
                    "value": "/mod/quiz/overrides.php?cmid=71&mode=user"
37
                },
38
                {
39
                    "name": "Group overrides",
40
                    "value": "/mod/quiz/overrides.php?cmid=71&mode=group"
41
                }
42
            ]
43
        },
44
        "addoverridebutton": {
45
            "id": "single_button1234",
46
            "method": "get",
47
            "url": "http://localhost/moodle/mod/quiz/overrideedit.php",
48
            "lablel": "Add user override",
49
            "classes": "singlebutton",
50
            "disabled": false,
51
            "params": [
52
                {
53
                    "name": "cmid",
54
                    "value": "73"
55
                },
56
                {
57
                    "name": "action",
58
                    "value": "adduser"
59
                }
60
            ]
61
        }
62
    }
63
}}
64
<div class="container-fluid tertiary-navigation">
65
    <div class="row">
66
        {{#overridesnav}}
67
            <div class="navitem">
68
                {{>core/url_select}}
69
            </div>
70
        {{/overridesnav}}
71
        {{#addoverridebutton}}
72
            <div class="navitem">
73
                {{>core/single_button}}
74
            </div>
75
        {{/addoverridebutton}}
76
    </div>
77
</div>