Proyectos de Subversion Moodle

Rev

Rev 1 | | Comparar con el anterior | 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_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}}
1441 ariadna 37
    {{$tabindex}}-1{{/tabindex}}
38
    {{$role}}dialog{{/role}}
39
    {{$drawerattributes}}
40
        aria-modal="true"
41
        aria-labelledby="message-drawer-header-{{uniqid}}"
42
    {{/drawerattributes}}
1 efrain 43
    {{$drawercontent}}
1441 ariadna 44
        <div id="message-drawer-{{uniqid}}" class="message-app" data-region="message-drawer" role="region" tabindex="0">
45
            <h2 class="visually-hidden" id="message-drawer-header-{{uniqid}}">{{#str}} messagingcategory,admin {{/str}}</h2>
46
            <div class="closewidget text-end pe-2">
1 efrain 47
                <a class="text-dark btn-link" data-action="closedrawer" href="#"
48
                   title="{{#cleanstr}} closebuttontitle {{/cleanstr}}" aria-label="{{#cleanstr}} closebuttontitle {{/cleanstr}}"
49
                >
50
                    {{#pix}} i/window_close, core {{/pix}}
51
                </a>
52
            </div>
53
            <div class="header-container position-relative" data-region="header-container">
54
                {{> core_message/message_drawer_view_contacts_header }}
55
                {{> core_message/message_drawer_view_conversation_header }}
56
                {{> core_message/message_drawer_view_overview_header }}
57
                {{> core_message/message_drawer_view_search_header }}
58
                {{> core_message/message_drawer_view_settings_header }}
59
            </div>
60
            <div class="body-container position-relative" data-region="body-container">
61
                {{> core_message/message_drawer_view_contact_body }}
62
                {{> core_message/message_drawer_view_contacts_body }}
63
                {{> core_message/message_drawer_view_conversation_body }}
64
                {{> core_message/message_drawer_view_group_info_body }}
65
                {{> core_message/message_drawer_view_overview_body }}
66
                {{> core_message/message_drawer_view_search_body }}
67
                {{> core_message/message_drawer_view_settings_body }}
68
            </div>
69
            <div class="footer-container position-relative" data-region="footer-container">
70
                {{> core_message/message_drawer_view_conversation_footer }}
71
                {{> core_message/message_drawer_view_overview_footer }}
72
            </div>
73
        </div>
74
    {{/drawercontent}}
75
{{/core/drawer}}
76
 
77
{{#js}}
78
require(['jquery', 'core_message/message_drawer'], function($, MessageDrawer) {
79
    var root = $('#message-drawer-{{uniqid}}');
80
    MessageDrawer.init(root, '{{uniqid}}', false);
81
});
82
{{/js}}