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
|
|
|
19 |
|
|
|
20 |
This template will render the message drawer.
|
|
|
21 |
|
|
|
22 |
Classes required for JS:
|
|
|
23 |
* none
|
|
|
24 |
|
|
|
25 |
Data attributes required for JS:
|
|
|
26 |
* All data attributes are required
|
|
|
27 |
|
|
|
28 |
Context variables required for this template:
|
|
|
29 |
* userid The logged in user id
|
|
|
30 |
* urls The URLs for the popover
|
|
|
31 |
|
|
|
32 |
Example context (json):
|
|
|
33 |
{}
|
|
|
34 |
|
|
|
35 |
}}
|
|
|
36 |
{{< core/drawer}}
|
|
|
37 |
{{$drawercontent}}
|
|
|
38 |
<div id="message-drawer-{{uniqid}}" class="message-app" data-region="message-drawer" role="region">
|
|
|
39 |
<div class="header-container" data-region="header-container">
|
|
|
40 |
<div class="rui-message-header-container row no-gutters justify-content-between w-100">
|
|
|
41 |
<button class="message-drawer-toggle btn-msg-danger" title="{{#cleanstr}} closebuttontitle {{/cleanstr}}" aria-label="{{#cleanstr}} closebuttontitle {{/cleanstr}}">
|
|
|
42 |
<svg width="20" height="20" fill="none" viewBox="0 0 24 24">
|
|
|
43 |
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2.5" d="M17.25 6.75L6.75 17.25"></path>
|
|
|
44 |
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2.5" d="M6.75 6.75L17.25 17.25"></path>
|
|
|
45 |
</svg>
|
|
|
46 |
</button>
|
|
|
47 |
{{> core_message/message_drawer_view_overview_header }}
|
|
|
48 |
</div>
|
|
|
49 |
|
|
|
50 |
<h3 class="w-100 mt-2 mb-3 mx-3">{{#str}}messages, core_message {{/str}}</h3>
|
|
|
51 |
|
|
|
52 |
<div class="d-block w-100">
|
|
|
53 |
<hr class="rui-message-hr" />
|
|
|
54 |
<div aria-hidden="false" data-region="view-overview">
|
|
|
55 |
<div class="d-flex align-items-center">
|
|
|
56 |
<div class="input-group">
|
|
|
57 |
|
|
|
58 |
<input
|
|
|
59 |
type="text"
|
|
|
60 |
class="form-control rui-message-search-input my-2 mx-3"
|
|
|
61 |
placeholder="{{#str}} search, core_search {{/str}}"
|
|
|
62 |
aria-label="{{#str}} search, core_search {{/str}}"
|
|
|
63 |
data-region="view-overview-search-input"
|
|
|
64 |
>
|
|
|
65 |
</div>
|
|
|
66 |
</div>
|
|
|
67 |
|
|
|
68 |
</div>
|
|
|
69 |
</div>
|
|
|
70 |
|
|
|
71 |
{{> core_message/message_drawer_view_search_header }}
|
|
|
72 |
{{> core_message/message_drawer_view_settings_header }}
|
|
|
73 |
{{> core_message/message_drawer_view_contacts_header }}
|
|
|
74 |
{{> core_message/message_drawer_view_conversation_header }}
|
|
|
75 |
</div>
|
|
|
76 |
<div class="body-container position-relative" data-region="body-container">
|
|
|
77 |
{{> core_message/message_drawer_view_contact_body }}
|
|
|
78 |
{{> core_message/message_drawer_view_contacts_body }}
|
|
|
79 |
{{> core_message/message_drawer_view_conversation_body }}
|
|
|
80 |
{{> core_message/message_drawer_view_group_info_body }}
|
|
|
81 |
{{> core_message/message_drawer_view_overview_body }}
|
|
|
82 |
{{> core_message/message_drawer_view_search_body }}
|
|
|
83 |
{{> core_message/message_drawer_view_settings_body }}
|
|
|
84 |
</div>
|
|
|
85 |
<div class="position-relative" data-region="footer-container">
|
|
|
86 |
{{> core_message/message_drawer_view_conversation_footer }}
|
|
|
87 |
</div>
|
|
|
88 |
|
|
|
89 |
</div>
|
|
|
90 |
{{/drawercontent}}
|
|
|
91 |
{{/core/drawer}}
|
|
|
92 |
|
|
|
93 |
{{#js}}
|
|
|
94 |
require(['jquery', 'core_message/message_drawer'], function($, MessageDrawer) {
|
|
|
95 |
var root = $('#message-drawer-{{uniqid}}, .message-drawer-toggle, .message-drawer-backdrop');
|
|
|
96 |
MessageDrawer.init(root, '{{uniqid}}', false);
|
|
|
97 |
});
|
|
|
98 |
{{/js}}
|