{{!
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_view_settings_body_content

This template will render the content for the body of the settings page in 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):
{}

}}

{{#settings}}
<div data-region="settings" class="p-0 msg-panel-setting-wrapper">
    <div class="p-p-6  msg-setting-privacy-wrapper">
        <div class="d-flex flex-column msg-setting-privacy-header">
            <h3 class="h-semibold-5  m-0 setting-header">{{#str}} privacy, message {{/str}}</h3>
            <p class="m-0 msg-panel-privacydesc">{{#str}} privacy_desc, message {{/str}}</p>
        </div>
        <div data-preference="blocknoncontacts" class="msg-setting-privacy-content">
            <fieldset>
                <legend class="sr-only">{{#str}} contactableprivacy, message {{/str}}</legend>
                {{#privacy}}
                <div class="custom-control custom-radio pl-0">
                    <input type="radio" name="message_blocknoncontacts" id="block-noncontacts-{{uniqid}}-{{value}}" value="{{value}}">
                    <span class=" h-regular-6 m-0" for="block-noncontacts-{{uniqid}}-{{value}}">{{text}}</span>
                </div>
                {{/privacy}}
            </fieldset>
        </div>
    </div>

    <div class="hidden p-p-6  msg-notification-preference-wrapper" data-region="notification-preference-container">
        <h3 class="m-0 h-semibold-5 setting-header ">{{#str}} notificationpreferences, core_message {{/str}}</h3>
    </div>
    <div class="p-p-6 general-setting-wrapper">
        <h3 class="m-0 h-semibold-5 setting-header">{{#str}} general, core {{/str}}</h3>
        <div data-preference="entertosend">
            <div class="custom-control pl-0">
                <input type="checkbox" id="enter-to-send-{{uniqid}}"
                    {{#entertosend}}checked{{/entertosend}}>
                <span class=" h-regular-6" for="enter-to-send-{{uniqid}}">{{#str}} useentertosend, core_message {{/str}}</span>
            </div>
        </div>
    </div>
</div>
{{/settings}}
