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_brickfield/errors
19
 
20
    This template renders the list view for the errors accessibility report.
21
 
22
    Example context (json):
23
    {
24
        "pagetitle": "Error details",
25
        "pagenavigation": " ",
26
        "tableheading1": "Activity",
27
        "tableheading2": "Check",
28
        "tableheading3": "Existing HTML code",
29
        "tableheading4": "Line",
30
        "tableheading5": "Edit",
31
        "tabledata": [
32
            {
33
                "activity": "Book",
34
                "check": "Headings",
35
                "html": "&lt;h3&gt;&lt;/h3&gt;",
36
                "line": 2,
37
                "edit": "<a href=\"link.com\">Edit</a>"
38
            },
39
            {
40
                "activity": "Label",
41
                "check": "Headings",
42
                "html": "&lt;h3&gt;&lt;/h3&gt;",
43
                "line": 4,
44
                "edit": "<a href=\"link.com\">Edit</a>"
45
            }
46
        ]
47
    }
48
}}
49
 
50
<h3>{{{pagetitle}}}</h3>
51
{{{pagenavigation}}}
52
<table class="generaltable">
53
    <thead>
54
    <tr>
55
        <th class="header c0" style="width: 30%;" scope="col">{{tableheading1}}</th>
56
        <th class="header c1" style="width: 30%;" scope="col">{{tableheading2}}</th>
57
        <th class="header c2" style="width: 30%;" scope="col">{{tableheading3}}</th>
58
        <th class="header c3" style="width: 5%;" scope="col">{{tableheading4}}</th>
59
        <th class="header c4 lastcol" style="width: 5%;" scope="col">{{{tableheading5}}}</th>
60
    </tr>
61
    </thead>
62
    <tbody>
63
    {{#tabledata}}
64
    <tr>
65
        <td class="cell c0" style="width:30%;">{{activity}}</td>
66
        <td class="cell c1" style="width:30%;">{{check}}</td>
67
        <td class="cell c2 text-break" style="width:30%;">{{html}}</td>
68
        <td class="cell c3" style="width:5%;">{{line}}</td>
69
        <td class="cell c4" style="width:5%;">{{{edit}}}</td>
70
    </tr>
71
    {{/tabledata}}
72
    </tbody>
73
</table>