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_view_conversation_body_confirm_dialogue
|
|
|
19 |
|
|
|
20 |
This template will render the confirmation dialogue inside the conversation page of
|
|
|
21 |
the message drawer.
|
|
|
22 |
|
|
|
23 |
Classes required for JS:
|
|
|
24 |
* none
|
|
|
25 |
|
|
|
26 |
Data attributes required for JS:
|
|
|
27 |
* All data attributes are required
|
|
|
28 |
|
|
|
29 |
Context variables required for this template:
|
|
|
30 |
* userid The logged in user id
|
|
|
31 |
* urls The URLs for the popover
|
|
|
32 |
|
|
|
33 |
Example context (json):
|
|
|
34 |
{}
|
|
|
35 |
|
|
|
36 |
}}
|
|
|
37 |
|
|
|
38 |
<div class="p-3 bg-white" data-region="confirm-dialogue" role="alert">
|
|
|
39 |
<p class="text-muted" data-region="dialogue-text"></p>
|
|
|
40 |
<div class="mb-2 custom-control custom-checkbox hidden" data-region="delete-messages-for-all-users-toggle-container">
|
|
|
41 |
<input type="checkbox" class="custom-control-input" id="delete-messages-for-all-users" data-region="delete-messages-for-all-users-toggle">
|
|
|
42 |
<label class="custom-control-label text-muted" for="delete-messages-for-all-users">
|
|
|
43 |
{{#cleanstr}} deleteforeveryone, core_message {{/cleanstr}}
|
|
|
44 |
</label>
|
|
|
45 |
</div>
|
|
|
46 |
<button type="button" class="btn btn-primary btn-block hidden" data-action="confirm-block">
|
|
|
47 |
<span data-region="dialogue-button-text">{{#cleanstr}} blockuserconfirmbutton, core_message {{/cleanstr}}</span>
|
|
|
48 |
<span class="hidden" data-region="loading-icon-container">{{> core/loading }}</span>
|
|
|
49 |
</button>
|
|
|
50 |
<button type="button" class="btn btn-primary btn-block hidden" data-action="confirm-unblock">
|
|
|
51 |
<span data-region="dialogue-button-text">{{#cleanstr}} unblock, core_message {{/cleanstr}}</span>
|
|
|
52 |
<span class="hidden" data-region="loading-icon-container">{{> core/loading }}</span>
|
|
|
53 |
</button>
|
|
|
54 |
<button type="button" class="btn btn-primary btn-block hidden" data-action="confirm-remove-contact">
|
|
|
55 |
<span data-region="dialogue-button-text">{{#cleanstr}} remove, core {{/cleanstr}}</span>
|
|
|
56 |
<span class="hidden" data-region="loading-icon-container">{{> core/loading }}</span>
|
|
|
57 |
</button>
|
|
|
58 |
<button type="button" class="btn btn-primary btn-block hidden" data-action="confirm-add-contact">
|
|
|
59 |
<span data-region="dialogue-button-text">{{#cleanstr}} add, core {{/cleanstr}}</span>
|
|
|
60 |
<span class="hidden" data-region="loading-icon-container">{{> core/loading }}</span>
|
|
|
61 |
</button>
|
|
|
62 |
<button type="button" class="btn btn-primary btn-block hidden" data-action="confirm-delete-selected-messages">
|
|
|
63 |
<span data-region="dialogue-button-text">{{#cleanstr}} delete, core {{/cleanstr}}</span>
|
|
|
64 |
<span class="hidden" data-region="loading-icon-container">{{> core/loading }}</span>
|
|
|
65 |
</button>
|
|
|
66 |
<button type="button" class="btn btn-primary btn-block hidden" data-action="confirm-delete-conversation">
|
|
|
67 |
<span data-region="dialogue-button-text">{{#cleanstr}} delete, core {{/cleanstr}}</span>
|
|
|
68 |
<span class="hidden" data-region="loading-icon-container">{{> core/loading }}</span>
|
|
|
69 |
</button>
|
|
|
70 |
<button type="button" class="btn btn-primary btn-block hidden" data-action="request-add-contact">
|
|
|
71 |
<span data-region="dialogue-button-text">{{#cleanstr}} sendcontactrequest, core_message {{/cleanstr}}</span>
|
|
|
72 |
<span class="hidden" data-region="loading-icon-container">{{> core/loading }}</span>
|
|
|
73 |
</button>
|
|
|
74 |
<button type="button" class="btn btn-primary btn-block hidden" data-action="accept-contact-request">
|
|
|
75 |
<span data-region="dialogue-button-text">{{#cleanstr}} acceptandaddcontact, core_message {{/cleanstr}}</span>
|
|
|
76 |
<span class="hidden" data-region="loading-icon-container">{{> core/loading }}</span>
|
|
|
77 |
</button>
|
|
|
78 |
<button type="button" class="btn btn-secondary btn-block hidden" data-action="decline-contact-request">
|
|
|
79 |
<span data-region="dialogue-button-text">{{#cleanstr}} decline, core_message {{/cleanstr}}</span>
|
|
|
80 |
<span class="hidden" data-region="loading-icon-container">{{> core/loading }}</span>
|
|
|
81 |
</button>
|
|
|
82 |
<button type="button" class="btn btn-primary btn-block" data-action="okay-confirm">{{#cleanstr}} ok, core {{/cleanstr}}</button>
|
|
|
83 |
<button type="button" class="btn btn-secondary btn-block" data-action="cancel-confirm">{{#cleanstr}} cancel, core {{/cleanstr}}</button>
|
|
|
84 |
</div>
|