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
 
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_lesson/edit_action_buttons
19
 
20
    Actions panel for essay grading.
21
 
22
    Classes required for JS:
23
    * none
24
 
25
    Context variables required for this template:
26
    * see mod/lesson/classes/output/edit_action_buttons.php
27
 
28
    Example context (json):
29
    {
30
        "edit": {
31
            "button": {
32
                "id" : "id1",
33
                "method" : "get",
34
                "url" : "#",
35
                "formid": "1",
36
                "primary" : true,
37
                "tooltip" : "This is a tooltip",
38
                "label" : "Edit",
39
                "attributes": [
40
                    {
41
                      "name": "data-attribute",
42
                      "value": "yeah"
43
                    }
44
                ]
45
            }
46
        },
47
        "gradeessays": {
48
            "button": {
49
                "id" : "id2",
50
                "method" : "get",
51
                "url" : "#",
52
                "formid": "2",
53
                "primary" : false,
54
                "tooltip" : "This is a tooltip",
55
                "label" : "Grade essays",
56
                "attributes": [
57
                    {
58
                      "name": "data-attribute",
59
                      "value": "yeah"
60
                    }
61
                ]
62
            }
63
        }
64
    }
65
 
66
}}
67
<div class="container-fluid tertiary-navigation">
68
    <div class="row">
69
        {{#edit}}
70
            {{#button}}
71
                <div class="navitem">
72
                    {{>core/single_button}}
73
                </div>
74
            {{/button}}
75
        {{/edit}}
76
        {{#editcontents}}
77
            {{#button}}
78
                <div class="navitem">
79
                    {{>core/single_button}}
80
                </div>
81
            {{/button}}
82
        {{/editcontents}}
83
        {{#gradeessays}}
84
            {{#button}}
85
                <div class="navitem">
86
                    {{>core/single_button}}
87
                </div>
88
            {{/button}}
89
        {{/gradeessays}}
90
    </div>
91
</div>
92
{{#notification}}
93
    {{> core/notification }}
94
{{/notification}}