{{!
    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/moodlenet/send_activity_modal_base
    Modal to send activity to MoodleNet
    Example context (json):
    {
        "uniqid": 123456,
        "activitytype": "assignment",
        "activityname": "Test assignment",
        "sharetype": "resource"
    }
}}
<div class="modal moodle-has-zindex" data-region="modal-container" aria-hidden="true" role="dialog">
    <div class="modal-dialog moodlenet-share-dialog" role="document" data-region="modal" aria-labelledby="{{uniqid}}-moodlenet-modal-title" tabindex="0">
        <div class="modal-content">
            <div class="modal-header no-border" data-region="header">
                <div id="{{uniqid}}-moodlenet-modal-title" class="modal-title" data-region="title">
                    <h5 class="visually-hidden modal-title">{{#str}} moodlenet:sharetomoodlenet, moodle {{/str}}</h5>
                    <div class="d-flex moodlenet-share-moodlenetinfo">
                        <span class="moodlenet-logo">{{#pix}} moodlenet, moodle, {{#str}} moodlenet:sharetomoodlenet, moodle {{/str}} {{/pix}}</span>
                        <span class="moodlenet-title">{{#str}} moodlenet:sharetomoodlenet, moodle {{/str}}</span>
                    </div>
                </div>
                <button type="button" class="btn-close" data-action="hide" aria-label="{{#cleanstr}}closebuttontitle{{/cleanstr}}"></button>
            </div>
            <div class="modal-body" data-region="body">
                <div class="moodlenet-share-modal-content">
                    <div class="moodlenet-share-activity-info">
                        <span class="moodlenet-activity-type text-uppercase">{{activitytype}}</span>
                        <span class="moodlenet-activity-name">{{activityname}}</span>
                    </div>
                    <hr class="moodlenet-share-activity-info-hr">
                    <div class="moodlenet-share-notice">
                        {{sharenotice}}
                    </div>
                    {{^fullsharing}}
                        <div class="moodlenet-share-total-activities fw-bold ps-2 ms-3">
                            {{selectedactivitiesnotice}}
                        </div>
                    {{/fullsharing}}
                </div>
            </div>
            <div class="modal-footer" data-region="footer">
                {{> core/moodlenet/send_activity_modal_footer_share }}
            </div>
        </div>
    </div>
</div>
