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
        "deleteallrulebutton": {
23
           "id": "single_button12345",
24
            "method" : "get",
25
            "classes": "singlebutton",
26
            "formid": null,
27
            "url" : "#",
28
            "primary" : true,
29
            "tooltip" : null,
30
            "label" : "Reset",
31
            "attributes": []
32
        },
33
        "info": {
34
            "message": "This is a notification message.",
35
            "classes": "alert-info"
36
        }
37
 
38
    }
39
}}
40
<div class="container-fluid tertiary-navigation full-width-bottom-border">
41
    <div class="d-flex">
42
        <div>
43
            {{{title}}}
44
        </div>
45
 
46
        <div class="navitem ms-auto">
47
            <div class="ms-1">
48
                <button id="addrulebutton" type="button" class="btn btn-primary">{{# str }} addrule, gradepenalty_duedate {{/ str }}</button>
49
            </div>
50
 
51
            {{#deleteallrulebutton }}
52
                <div id="deleteallrulesbuttoncontainer" class="ms-1">
53
                    {{>core/single_button}}
54
                </div>
55
            {{/deleteallrulebutton }}
56
        </div>
57
    </div>
58
</div>