Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 1441
Línea 20... Línea 20...
20
    Renders a section with all available bulk actions.
20
    Renders a section with all available bulk actions.
Línea 21... Línea 21...
21
 
21
 
22
    Context variables required for this template:
22
    Context variables required for this template:
23
    * actions - Array of objects with the following properties:
23
    * actions - Array of objects with the following properties:
-
 
24
        * actiontrigger - The HTML for the action trigger.
-
 
25
    * hasmoreactions - Whether there are more actions than the ones displayed.
-
 
26
    * moreactions - Array of objects with the following properties:
Línea 24... Línea 27...
24
        * actiontrigger - The HTML for the action trigger.
27
        * actiontrigger - The HTML for the action trigger.
25
 
28
 
26
    Example context (json):
29
    Example context (json):
27
    {
30
    {
28
        "actions": [
31
        "actions": [
29
            {
32
            {
-
 
33
                "actiontrigger": "<button>Move</button>"
-
 
34
            }
-
 
35
        ],
-
 
36
        "hasmoreactions": true,
-
 
37
        "moreactions": [
-
 
38
            {
30
                "actiontrigger": "<button>Move</button>"
39
                "actiontrigger": "<button>Delete</button>"
31
            }
40
            }
32
        ]
41
        ]
33
    }
42
    }
34
}}
43
}}
35
<div class="justify-content-between" data-type="bulkactions">
44
<div class="justify-content-between px-3 py-2" data-type="bulkactions">
36
    <div class="d-flex">
45
    <div class="d-flex">
37
    </div>
46
    </div>
38
    <div data-for="bulktools">
47
    <div data-for="bulktools">
39
        <ul class="actions nav" data-for="bulkactions">
-
 
40
            {{#actions}}
48
        <div class="btn-toolbar" role="toolbar" aria-label="{{#str}} bulkactions, core {{/str}}" data-for="bulkactions">
41
                <li class="nav-item">
-
 
42
                    {{{actiontrigger}}}
49
            {{#actions}}
-
 
50
                {{{actiontrigger}}}
-
 
51
            {{/actions}}
-
 
52
            {{#hasmoreactions}}
-
 
53
                <div class="dropup">
-
 
54
                    <button
-
 
55
                        class="btn py-0 d-flex flex-column"
-
 
56
                        type="button"
-
 
57
                        id="more-actions-toggle-{{uniqid}}"
-
 
58
                        data-bs-toggle="dropdown"
-
 
59
                        aria-haspopup="true"
-
 
60
                        aria-expanded="false"
-
 
61
                        tabindex="-1"
-
 
62
                    >
-
 
63
                        <span class="w-100 ps-2">
-
 
64
                            {{#pix}} i/menu, core {{/pix}}
-
 
65
                        </span>
-
 
66
                        <span>{{#str}} moremenu, core {{/str}}</span>
-
 
67
                    </button>
-
 
68
                    <div class="dropdown-menu" aria-labelledby="more-actions-toggle-{{uniqid}}" role="menu">
-
 
69
                        {{#moreactions}}
-
 
70
                            {{{actiontrigger}}}
-
 
71
                        {{/moreactions}}
-
 
72
                    </div>
43
                </li>
73
                </div>
44
            {{/actions}}
74
            {{/hasmoreactions}}
45
        </ul>
75
        </div>
46
    </div>
76
    </div>
47
    <div class="d-flex flex-column">
77
    <div class="d-flex flex-column">
48
        <div class="ml-auto">
78
        <div class="ms-auto">
49
            <button
79
            <button
50
                type="button"
80
                type="button"
51
                class="btn pr-0 pb-0"
81
                class="btn pe-0 pb-0"
52
                data-action="bulkcancel"
82
                data-action="bulkcancel"
53
                data-for="bulkcancel"
83
                data-for="bulkcancel"
54
                title="{{#str}} bulkcancel, core {{/str}}"
84
                title="{{#str}} bulkcancel, core {{/str}}"
55
            >
85
            >
56
                {{#pix}} e/cancel, core {{/pix}}
86
                {{#pix}} e/cancel, core {{/pix}}
57
            </button>
87
            </button>
58
        </div>
88
        </div>
59
        <div data-for="bulkcount">
89
        <div data-for="bulkcount" role="status">
60
            {{#str}} bulkselection, core, {{bulkselectioncount}} {{/str}}
90
            &nbsp;{{#str}} bulkselection, core, {{bulkselectioncount}} {{/str}}
61
        </div>
91
        </div>