Proyectos de Subversion Moodle

Rev

Rev 1 | | Comparar con el anterior | 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 core_reportbuilder/local/sidebar-menu/card_item
19
 
20
    Template for showing a single element in a sidebar menu card.
21
 
22
    Example context (json):
23
    {
24
        "name": "Manually added users",
25
        "identifier": "tool_reportbuilder:users"
26
    }
27
}}
28
{{^disabled}}
29
    <a href="#"
30
       title="{{title}}"
31
       role="button"
32
       class="list-group-item list-group-item-action pr-2 bg-transparent"
33
       data-region="sidebar-item"
34
       data-action="{{action}}"
35
       data-unique-identifier="{{identifier}}"
36
       data-name="{{name}}"
37
    >
38
        <span class="d-flex align-items-center justify-content-between small">
39
            <span>{{{name}}}</span>
40
            <span class="btn btn-xs btn-info p-1">
1441 ariadna 41
                {{#pix}} t/add, core {{/pix}}
1 efrain 42
            </span>
43
        </span>
44
    </a>
45
{{/disabled}}
46
{{#disabled}}
1441 ariadna 47
    <div title="{{#str}} notavailable, core {{/str}}"
1 efrain 48
         class="list-group-item list-group-item-action pr-2 bg-transparent text-muted"
49
         data-region="sidebar-item"
50
    >
51
        <span class="d-flex align-items-center justify-content-between small">
52
            {{{name}}}
53
            {{#pix}} i/info, core {{/pix}}
54
        </span>
55
    </div>
56
{{/disabled}}