Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1441 ariadna 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 gradepenalty_duedate/penalty_rule_action_bar
16
 
17
    Actions bar for the penalty rule page.
18
 
19
    Example context (json):
20
    {
21
        "title": "Penalty rule",
22
        "editbutton": {
23
           "id": "single_button123",
24
            "method" : "get",
25
            "classes": "singlebutton",
26
            "formid": null,
27
            "url" : "#",
28
            "primary" : true,
29
            "tooltip" : null,
30
            "label" : "Edit",
31
            "attributes": []
32
        },
33
        "resetbutton": {
34
           "id": "single_button456",
35
            "method" : "get",
36
            "classes": "singlebutton",
37
            "formid": null,
38
            "url" : "#",
39
            "primary" : true,
40
            "tooltip" : null,
41
            "label" : "Reset",
42
            "attributes": []
43
        },
44
        "info": {
45
            "message": "This is a notification message.",
46
            "classes": "alert-info"
47
        }
48
 
49
    }
50
}}
51
<div class="container-fluid tertiary-navigation full-width-bottom-border">
52
    <div class="d-flex">
53
        <div>
54
            {{{title}}}
55
        </div>
56
 
57
        <div class="navitem ms-auto">
58
            {{#editbutton}}
59
                <div class="ms-1">
60
                    {{>core/single_button}}
61
                </div>
62
            {{/editbutton}}
63
 
64
            {{#resetbutton}}
65
                <div class="ms-1">
66
                    {{>core/single_button}}
67
                </div>
68
            {{/resetbutton}}
69
        </div>
70
    </div>
71
 
72
    {{#info}}
73
        {{>core/notification}}
74
    {{/info}}
75
 
76
</div>