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_message/message_drawer_view_conversation_footer_content
|
|
|
19 |
|
|
|
20 |
This template will render the footer content for the conversation page in
|
|
|
21 |
the message drawer.
|
|
|
22 |
|
|
|
23 |
Classes required for JS:
|
|
|
24 |
* none
|
|
|
25 |
|
|
|
26 |
Data attributes required for JS:
|
|
|
27 |
* All data attributes are required
|
|
|
28 |
|
|
|
29 |
Context variables required for this template:
|
|
|
30 |
* userid The logged in user id
|
|
|
31 |
* urls The URLs for the popover
|
|
|
32 |
|
|
|
33 |
Example context (json):
|
|
|
34 |
{}
|
|
|
35 |
|
|
|
36 |
}}
|
|
|
37 |
|
|
|
38 |
{{#showemojipicker}}
|
|
|
39 |
<div
|
|
|
40 |
class="d-block emoji-auto-complete-container w-100 hidden"
|
|
|
41 |
data-region="emoji-auto-complete-container"
|
|
|
42 |
aria-live="polite"
|
|
|
43 |
aria-hidden="true"
|
1441 |
ariadna |
44 |
></div>
|
1 |
efrain |
45 |
{{/showemojipicker}}
|
1441 |
ariadna |
46 |
<div class="mt-1 row no-gutters">
|
1 |
efrain |
47 |
<textarea
|
|
|
48 |
dir="auto"
|
|
|
49 |
data-region="send-message-txt"
|
1441 |
ariadna |
50 |
class="rui-textarea form-control w-100 mx-0 mb-2"
|
1 |
efrain |
51 |
rows="4"
|
|
|
52 |
data-auto-rows
|
|
|
53 |
data-min-rows="4"
|
|
|
54 |
data-max-rows="5"
|
|
|
55 |
aria-label="{{#str}} writeamessage, core_message {{/str}}"
|
|
|
56 |
placeholder="{{#str}} writeamessage, core_message {{/str}}"
|
|
|
57 |
style="resize: none"
|
|
|
58 |
maxlength="{{messagemaxlength}}"
|
|
|
59 |
></textarea>
|
|
|
60 |
<button
|
1441 |
ariadna |
61 |
class="btn btn-primary mt-1 {{#showemojipicker}}col mr-2{{/showemojipicker}} {{^showemojipicker}}w-100{{/showemojipicker}}"
|
1 |
efrain |
62 |
aria-label="{{#str}} sendmessage, core_message {{/str}}"
|
|
|
63 |
data-action="send-message"
|
|
|
64 |
>
|
|
|
65 |
<span data-region="send-icon-container">
|
|
|
66 |
<svg width="24" height="24" fill="none" viewBox="0 0 24 24">
|
|
|
67 |
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17.25 15.25V6.75H8.75"></path>
|
|
|
68 |
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17 7L6.75 17.25"></path>
|
|
|
69 |
</svg>
|
|
|
70 |
</span>
|
|
|
71 |
<span class="hidden" data-region="loading-icon-container">{{> core/loading }}</span>
|
|
|
72 |
</button>
|
|
|
73 |
|
|
|
74 |
{{#showemojipicker}}
|
|
|
75 |
<div
|
|
|
76 |
data-region="emoji-picker-container"
|
|
|
77 |
class="w-100 emoji-picker-container hidden"
|
|
|
78 |
aria-hidden="true"
|
|
|
79 |
>
|
|
|
80 |
{{> core/emoji/picker }}
|
|
|
81 |
</div>
|
|
|
82 |
<button
|
1441 |
ariadna |
83 |
class="btn btn-secondary mt-1"
|
1 |
efrain |
84 |
aria-label="{{#str}} toggleemojipicker, core {{/str}}"
|
|
|
85 |
data-action="toggle-emoji-picker"
|
|
|
86 |
>
|
|
|
87 |
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
|
88 |
<path d="M19.25 12C19.25 16.0041 16.0041 19.25 12 19.25C7.99594 19.25 4.75 16.0041 4.75 12C4.75 7.99594 7.99594 4.75 12 4.75C16.0041 4.75 19.25 7.99594 19.25 12Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
|
|
|
89 |
<path d="M9.75 13.75C9.75 13.75 10 15.25 12 15.25C14 15.25 14.25 13.75 14.25 13.75" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
|
|
|
90 |
<path d="M10.5 10C10.5 10.2761 10.2761 10.5 10 10.5C9.72386 10.5 9.5 10.2761 9.5 10C9.5 9.72386 9.72386 9.5 10 9.5C10.2761 9.5 10.5 9.72386 10.5 10Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"></path>
|
|
|
91 |
<path d="M14.5 10C14.5 10.2761 14.2761 10.5 14 10.5C13.7239 10.5 13.5 10.2761 13.5 10C13.5 9.72386 13.7239 9.5 14 9.5C14.2761 9.5 14.5 9.72386 14.5 10Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"></path>
|
|
|
92 |
</svg>
|
|
|
93 |
</button>
|
|
|
94 |
{{/showemojipicker}}
|
|
|
95 |
</div>
|