Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 17... Línea 17...
17
{{!
17
{{!
18
    @template core/datafilter/filter
18
    @template core/datafilter/filter
Línea 19... Línea 19...
19
 
19
 
Línea -... Línea 20...
-
 
20
    Template for the form containing one or more filter rows.
-
 
21
 
20
    Template for the form containing one or more filter rows.
22
    This must be included inside a <form> element to support validation on filter fields.
21
 
23
 
22
    Example context (json):
24
    Example context (json):
23
    {
25
    {
24
        "filtertypes": [
26
        "filtertypes": [
Línea 34... Línea 36...
34
                        "value": 0,
36
                        "value": 0,
35
                        "title": "Suspended"
37
                        "title": "Suspended"
36
                    }
38
                    }
37
                ]
39
                ]
38
            }
40
            }
39
        ]
41
        ],
-
 
42
        "showallbutton": false
40
    }
43
    }
41
}}
44
}}
Línea 42... Línea 45...
42
 
45
 
43
<div id="core-filter-{{uniqid}}" class="filter-group my-2 p-2 bg-light border-radius border" data-table-region="{{tableregionid}}" data-table-course-id="{{courseid}}" data-filterverb="2">
46
<div id="core-filter-{{uniqid}}" class="filter-group my-2 p-2 bg-light border-radius border" data-table-region="{{tableregionid}}" data-table-course-id="{{courseid}}" data-filterverb="2">
Línea 48... Línea 51...
48
    </div>
51
    </div>
Línea 49... Línea 52...
49
 
52
 
50
    <div class="d-flex" data-filterregion="actions">
53
    <div class="d-flex" data-filterregion="actions">
51
        &nbsp;
54
        &nbsp;
52
        <button type="button" class="btn btn-link text-reset" data-filteraction="add">
55
        <button type="button" class="btn btn-link text-reset" data-filteraction="add">
53
            {{#pix}}t/add{{/pix}}<span class="pl-3">{{#str}}addcondition{{/str}}</span>
56
            {{#pix}}t/add{{/pix}}<span class="ps-3">{{#str}}addcondition{{/str}}</span>
-
 
57
        </button>
-
 
58
        {{#showallbutton}}
-
 
59
            <button data-filteraction="showall" data-perpage="{{ perpage }}" data-status="0" type="button" class="btn btn-light ms-auto me-2">{{#str}}showall{{/str}}</button>
54
        </button>
60
        {{/showallbutton}}
55
        <button data-filteraction="reset" type="button" class="btn btn-secondary ml-auto mr-2">{{#str}}clearfilters{{/str}}</button>
61
        <button data-filteraction="reset" type="button" class="btn btn-secondary {{^showallbutton}}ms-auto{{/showallbutton}} me-2">{{#str}}clearfilters{{/str}}</button>
56
        <button data-filteraction="apply" type="button" class="btn btn-primary">{{#str}}applyfilters{{/str}}</button>
62
        <button data-filteraction="apply" type="submit" class="btn btn-primary">{{#str}}applyfilters{{/str}}</button>
Línea 57... Línea 63...
57
    </div>
63
    </div>
Línea 58... Línea 64...
58
 
64