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 tool_admin_presets/presets_list
19
 
20
    Template for presets list.
21
 
22
    Context variables required for this template:
23
    * nopresets - Whether presets list is empty or not.
24
    * showactions - Whether the actions should be displayed or not.
25
    * presets - Presets to display in the list, with information such as name, description or author.
26
 
27
    Example context (json):
28
    {
29
        "nopresets": 0,
30
        "showactions": 1
31
    }
32
}}
33
 
34
{{#nopresets}}
35
    <div id="id_nopresets" class="box py-3 generalbox">
36
        <p id="{{uniqid}}">{{#str}}nopresets, tool_admin_presets{{/str}}</p>
37
    </div>
38
{{/nopresets}}
39
{{^nopresets}}
40
    <table class="generaltable boxaligncenter mb-5">
41
        <caption class="accesshide">{{#str}}presetslisttable, tool_admin_presets{{/str}}</caption>
42
        <thead>
43
            <tr>
44
                <th scope="col">{{#str}}name{{/str}}</th>
45
                <th scope="col">{{#str}}description{{/str}}</th>
46
                {{^showactions}}
47
                    <th scope="col">{{#str}}presetmoodlerelease, tool_admin_presets{{/str}}</th>
48
                    <th scope="col">{{#str}}author, tool_admin_presets{{/str}}</th>
49
                    <th scope="col">{{#str}}site, tool_admin_presets{{/str}}</th>
50
                    <th scope="col">{{#str}}created, tool_admin_presets{{/str}}</th>
51
                    <th scope="col">{{#str}}imported, tool_admin_presets{{/str}}</th>
52
                {{/showactions}}
53
                {{#showactions}}
54
                    <th scope="col" aria-label="{{#str}}actions{{/str}}"></th>
55
                {{/showactions}}
56
            </tr>
57
        </thead>
58
        <tbody>
59
            {{#presets}}
60
                <tr>
61
                    <td>{{{name}}}</td>
62
                    <td>{{{description}}}</td>
63
                    {{^showactions}}
64
                        <td>{{{release}}}</td>
65
                        <td>{{{author}}}</td>
66
                        <td>{{{site}}}</td>
67
                        <td>{{{timecreated}}}</td>
68
                        <td>{{{timeimported}}}</td>
69
                    {{/showactions}}
70
                    {{#showactions}}
71
                        <td>
72
                            {{#actions}}{{> core/action_menu}}{{/actions}}
73
                        </td>
74
                    {{/showactions}}
75
                </tr>
76
            {{/presets}}
77
        </tbody>
78
    </table>
79
{{/nopresets}}