Proyectos de Subversion Moodle

Rev

Autoría | Ultima modificación | Ver Log |

{{!
    This file is part of Moodle - http://moodle.org/

    Moodle is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    Moodle is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
}}
{{!
    @template core_message/message_drawer

    This template will render the message drawer.

    Classes required for JS:
    * none

    Data attributes required for JS:
    * All data attributes are required

    Context variables required for this template:
    * userid The logged in user id
    * urls The URLs for the popover

    Example context (json):
    {}

}}
{{< core/drawer}}
    {{$drawercontent}}
    <div id="message-drawer-{{uniqid}}" class="message-app" data-region="message-drawer" role="region">
        <div class="header-container" data-region="header-container">
            <div class="rui-message-header-container row no-gutters justify-content-between w-100">
                <button class="message-drawer-toggle btn-msg-danger" title="{{#cleanstr}} closebuttontitle {{/cleanstr}}" aria-label="{{#cleanstr}} closebuttontitle {{/cleanstr}}">
                    <svg width="20" height="20" fill="none" viewBox="0 0 24 24">
                        <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2.5" d="M17.25 6.75L6.75 17.25"></path>
                        <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2.5" d="M6.75 6.75L17.25 17.25"></path>
                    </svg>
                </button>
                {{> core_message/message_drawer_view_overview_header }}
            </div>

            <h3 class="w-100 mt-2 mb-3 mx-3">{{#str}}messages, core_message {{/str}}</h3>

            <div class="d-block w-100">
                <hr class="rui-message-hr" />
                <div aria-hidden="false" data-region="view-overview">
                    <div class="d-flex align-items-center">
                        <div class="input-group">

                            <input
                                type="text"
                                class="form-control rui-message-search-input my-2 mx-3"
                                placeholder="{{#str}} search, core_search {{/str}}"
                                aria-label="{{#str}} search, core_search {{/str}}"
                                data-region="view-overview-search-input"
                            >
                        </div>
                    </div>

                </div>
            </div>

            {{> core_message/message_drawer_view_search_header }}
            {{> core_message/message_drawer_view_settings_header }}
            {{> core_message/message_drawer_view_contacts_header }}
            {{> core_message/message_drawer_view_conversation_header }}
        </div>
        <div class="body-container position-relative" data-region="body-container">
            {{> core_message/message_drawer_view_contact_body }}
            {{> core_message/message_drawer_view_contacts_body }}
            {{> core_message/message_drawer_view_conversation_body }}
            {{> core_message/message_drawer_view_group_info_body }}
            {{> core_message/message_drawer_view_overview_body }}
            {{> core_message/message_drawer_view_search_body }}
            {{> core_message/message_drawer_view_settings_body }}
        </div>
        <div class="position-relative" data-region="footer-container">
            {{> core_message/message_drawer_view_conversation_footer }}
        </div>

    </div>
    {{/drawercontent}}
{{/core/drawer}}

  {{#js}}
  require(['jquery', 'core_message/message_drawer'], function($, MessageDrawer) {
      var root = $('#message-drawer-{{uniqid}}, .message-drawer-toggle, .message-drawer-backdrop');
      MessageDrawer.init(root, '{{uniqid}}', false);
  });
  {{/js}}