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 py-1 d-flex justify-content-between flex-shrink-0">
41
        <button
42
            class="btn btn-sm btn-secondary rui-icon-no-margin category-button 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-sm btn-secondary rui-icon-no-margin category-button"
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-secondary rui-icon-no-margin category-button mr-1"
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-sm btn-secondary rui-icon-no-margin category-button"
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-sm btn-secondary rui-icon-no-margin category-button"
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-sm btn-secondary rui-icon-no-margin category-button"
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-sm btn-secondary rui-icon-no-margin category-button"
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-sm btn-secondary rui-icon-no-margin category-button"
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-sm btn-secondary rui-icon-no-margin category-button"
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-sm btn-secondary rui-icon-no-margin category-button"
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 mb-0 d-flex flex-column overflow-hidden">
123
        <div class="input-group mb-1 flex-shrink-0">
124
            <input
125
                type="text"
126
                class="form-control rui-message-search-input"
127
                placeholder="{{#str}} search, core {{/str}}"
128
                aria-label="{{#str}} search, core {{/str}}"
129
                data-region="search-input"
130
            >
131
        </div>
132
        <div class="flex-grow-1 overflow-auto emojis-container h-100" data-region="emojis-container">
133
            <div class="position-relative" data-region="row-container"></div>
134
        </div>
135
        <div class="flex-grow-1 overflow-auto search-results-container h-100 hidden" data-region="search-results-container">
136
            <div class="position-relative" data-region="row-container"></div>
137
        </div>
138
    </div>
139
    <div
140
        class="card-footer d-flex flex-shrink-0"
141
        data-region="footer"
142
    >
143
        <div class="emoji-preview" data-region="emoji-preview"></div>
144
        <div data-region="emoji-short-name" class="emoji-short-name text-muted text-wrap ml-2"></div>
145
    </div>
146
</div>