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 qbank_managecategories/listitem
19
 
20
    This template renders the list item for each category.
21
 
22
    @deprecated since Moodle 4.3
23
    @todo Final deprecation on Moodle 4.7 MDL-78090
24
 
25
    Example context (json):
26
    {
27
        "questionbankurl": "question/edit.php?cmid=",
28
        "categoryname": "Default for Miscellaneous",
29
        "idnumber": "1",
30
        "questioncount": "1",
31
        "categorydesc": "The default category for questions shared in context Miscellaneous",
32
        "deleteurl": "url",
33
        "deletetitle": "Advanced"
34
    }
35
}}
36
 
37
<b>
38
    <a title="{{#str}}editquestions, question{{/str}}" href="{{{questionbankurl}}}">
39
        {{{categoryname}}}
40
        {{#idnumber}}
41
        <span class="badge bg-primary text-white">
42
            <span class="accesshide">
43
                {{#str}}idnumber, question{{/str}}
44
            </span>
45
            {{idnumber}}
46
        </span>
47
        {{/idnumber}}
48
        {{questioncount}}
49
    </a>
50
</b>
51
{{#categorydesc}}
52
<div class="text_to_html">
53
    {{{categorydesc}}}
54
</div>
55
{{/categorydesc}}
56
{{#deleteurl}}
57
<a title="{{deletetitle}}" href="{{{deleteurl}}}">
58
    {{# pix }} t/delete, core, {{deletetitle}} {{/ pix }}
59
</a>
60
{{/deleteurl}}