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 format_tiles/above_tiles
19
 
20
    Example context (json):
21
    {
22
        "editing": "0",
23
        "section_zero_show": "1",
24
        "is_multi_section": "1",
25
        "has_filter_buttons": "1",
26
        "filternumberedbuttons": [{
27
            "id": 12345,
28
            "buttonnum": 2,
29
            "sections": [3,4,5],
30
            "title": "3-5"
31
        }]
32
    }
33
}}
34
 
35
{{#editorwarnings}}
36
    <div class="alert alert-{{class}} alert-block fade show"><i class="icon fa fa-{{icon}}"></i>{{{text}}}
37
        <button type="button" class="close" data-dismiss="alert">
38
            <span aria-hidden="true">&times;</span>
39
            <span class="sr-only">{{#str}}dismissnotification, core{{/str}}</span>
40
        </button>
41
    </div>
42
{{/editorwarnings}}
43
 
44
<div id="section-zero-container" class="{{^usingjsnav}}format-tiles-no-js{{/usingjsnav}}{{^section_zero_show}} section-zero-empty{{/section_zero_show}}">
45
 
46
    {{>format_tiles/above_tiles_buttons}}
47
    <div class="row">
48
        <div class="col-12">{{> format_tiles/section_zero}}</div>
49
    </div>
50
 
51
 
52
</div>
53
{{^editing}}{{#usingjsnav}}
54
        <div id="abovetiles"
55
             class="{{#has_filter_buttons}}justify-content-between{{/has_filter_buttons}}{{^has_filter_buttons}}justify-content-end{{/has_filter_buttons}} tilestyle-{{tilestyle}}{{^section_zero_show}} section-zero-empty{{/section_zero_show}}">
56
        {{#is_multi_section}}
57
            {{#has_filter_buttons}}
58
                <div id="filterbuttons">
59
                    <span id="filterintro">
60
                        {{#pix}}filter, format_tiles, {{#str}}filters, format_tiles{{/str}}{{/pix}}
61
                    </span>
62
                    {{#filternumberedbuttons}}
63
                        {{> format_tiles/filterbutton}}
64
                    {{/filternumberedbuttons}}
65
                    {{#filteroutcomebuttons}}
66
                        {{> format_tiles/filterbutton}}
67
                    {{/filteroutcomebuttons}}
68
                    <div id="filterbutton-all" class="filterbutton" data-buttonid="all" data-sections="[all]">
69
                        {{#str}}all, format_tiles{{/str}}
70
                    </div>
71
                </div>
72
            {{/has_filter_buttons}}
73
            <div id="tiles-overall-progress-outer" class="ml-auto mr-1 mb-2 pt-1 d-none d-sm-block">
74
                {{#overall_progress_indicator}}
75
                    {{> format_tiles/progress}}
76
                {{/overall_progress_indicator}}
77
            </div>
78
        {{/is_multi_section}}
79
        {{^is_multi_section}}
80
            {{^editing}}{{#section_zero_show}}
81
                <div class="buttonhidesec0 open ml-1" id="buttonhidesec0"></div>
82
            {{/section_zero_show}}{{/editing}}
83
        {{/is_multi_section}}
84
    </div>
85
{{/usingjsnav}}{{/editing}}