Merge branch 'MDL-73996-master-fix' of https://github.com/junpataleta/moodle
[moodle.git] / user / templates / send_bulk_message.mustache
bloba448116378b8f7a1a01805eb795605cf7c893572
1 {{!
2     This file is part of Moodle - http://moodle.org/
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.
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.
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/>.
17 {{!
18     @template core_user/send_bulk_message
20     Template for the send bulk message modal.
22     Context variables required for this template:
23       None
25     Example context (json):
26     {
27     }
29 <form>
30 <p>
31 <label for="bulk-message">
32 <span class="sr-only">{{#str}}message, core_message{{/str}}</span>
33 </label>
34 <textarea id="bulk-message" rows="3" data-max-rows="10" data-auto-rows="true" cols="30" class="form-control"></textarea>
35 </p>
36 <div class="text-danger" data-role="messagetextrequired" hidden>
37     {{#str}} messagetextrequired, core_message {{/str}}
38 </div>
39 </form>
40 {{#js}}
41 require(['core/auto_rows'], function(AutoRows) {
42     AutoRows.init(document.getElementById('bulk-message'));
43 });
44 {{/js}}