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 core/emoji/picker
19
 
20
    This template will render the emoji picker.
21
 
22
    Classes required for JS:
23
    * none
24
 
25
    Data attributes required for JS:
26
    *
27
 
28
    Context variables required for this template:
29
    *
30
 
31
    Example context (json):
32
    {}
33
 
34
}}
35
 
36
<div
37
    data-region="emoji-picker"
38
    class="card shadow emoji-picker"
39
>
40
    <div class="card-header px-1 pt-1 pb-0 d-flex justify-content-between flex-shrink-0">
41
        <button
42
            class="btn btn-outline-secondary icon-no-margin category-button rounded-0 selected"
43
            data-action="show-category"
44
            data-category="Recent"
45
            title="{{#str}} emojicategoryrecent, core {{/str}}"
46
        >
47
            {{#pix}} i/emojicategoryrecent, core {{/pix}}
48
        </button>
49
        <button
50
            class="btn btn-outline-secondary icon-no-margin category-button rounded-0"
51
            data-action="show-category"
52
            data-category="Smileys & Emotion"
53
            title="{{#str}} emojicategorysmileysemotion, core {{/str}}"
54
        >
55
            {{#pix}} i/emojicategorysmileysemotion, core {{/pix}}
56
        </button>
57
        <button
58
            class="btn btn-outline-secondary icon-no-margin category-button rounded-0"
59
            data-action="show-category"
60
            data-category="People & Body"
61
            title="{{#str}} emojicategorypeoplebody, core {{/str}}"
62
        >
63
            {{#pix}} i/emojicategorypeoplebody, core {{/pix}}
64
        </button>
65
        <button
66
            class="btn btn-outline-secondary icon-no-margin category-button rounded-0"
67
            data-action="show-category"
68
            data-category="Animals & Nature"
69
            title="{{#str}} emojicategoryanimalsnature, core {{/str}}"
70
        >
71
            {{#pix}} i/emojicategoryanimalsnature, core {{/pix}}
72
        </button>
73
        <button
74
            class="btn btn-outline-secondary icon-no-margin category-button rounded-0"
75
            data-action="show-category"
76
            data-category="Food & Drink"
77
            title="{{#str}} emojicategoryfooddrink, core {{/str}}"
78
        >
79
            {{#pix}} i/emojicategoryfooddrink, core {{/pix}}
80
        </button>
81
        <button
82
            class="btn btn-outline-secondary icon-no-margin category-button rounded-0"
83
            data-action="show-category"
84
            data-category="Travel & Places"
85
            title="{{#str}} emojicategorytravelplaces, core {{/str}}"
86
        >
87
            {{#pix}} i/emojicategorytravelplaces, core {{/pix}}
88
        </button>
89
        <button
90
            class="btn btn-outline-secondary icon-no-margin category-button rounded-0"
91
            data-action="show-category"
92
            data-category="Activities"
93
            title="{{#str}} emojicategoryactivities, core {{/str}}"
94
        >
95
            {{#pix}} i/emojicategoryactivities, core {{/pix}}
96
        </button>
97
        <button
98
            class="btn btn-outline-secondary icon-no-margin category-button rounded-0"
99
            data-action="show-category"
100
            data-category="Objects"
101
            title="{{#str}} emojicategoryobjects, core {{/str}}"
102
        >
103
            {{#pix}} i/emojicategoryobjects, core {{/pix}}
104
        </button>
105
        <button
106
            class="btn btn-outline-secondary icon-no-margin category-button rounded-0"
107
            data-action="show-category"
108
            data-category="Symbols"
109
            title="{{#str}} emojicategorysymbols, core {{/str}}"
110
        >
111
            {{#pix}} i/emojicategorysymbols, core {{/pix}}
112
        </button>
113
        <button
114
            class="btn btn-outline-secondary icon-no-margin category-button rounded-0"
115
            data-action="show-category"
116
            data-category="Flags"
117
            title="{{#str}} emojicategoryflags, core {{/str}}"
118
        >
119
            {{#pix}} i/emojicategoryflags, core {{/pix}}
120
        </button>
121
    </div>
122
    <div class="card-body p-2 d-flex flex-column overflow-hidden">
123
        <div class="input-group mb-1 flex-shrink-0">
124
            <div class="input-group-prepend">
125
                <span class="input-group-text pr-0 bg-white text-muted">
126
                    {{#pix}} i/search, core {{/pix}}
127
                </span>
128
            </div>
129
            <input
130
                type="text"
131
                class="form-control border-left-0"
132
                placeholder="{{#str}} search, core {{/str}}"
133
                aria-label="{{#str}} search, core {{/str}}"
134
                data-region="search-input"
135
            >
136
        </div>
137
        <div class="flex-grow-1 overflow-auto emojis-container h-100" data-region="emojis-container">
138
            <div class="position-relative" data-region="row-container"></div>
139
        </div>
140
        <div class="flex-grow-1 overflow-auto search-results-container h-100 hidden" data-region="search-results-container">
141
            <div class="position-relative" data-region="row-container"></div>
142
        </div>
143
    </div>
144
    <div
145
        class="card-footer d-flex flex-shrink-0"
146
        data-region="footer"
147
    >
148
        <div class="emoji-preview" data-region="emoji-preview"></div>
149
        <div data-region="emoji-short-name" class="emoji-short-name text-muted text-wrap ml-2"></div>
150
    </div>
151
</div>