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/>.
18 @template mod_forum/inpage_reply_v2
20 In page reply HTML for the nested v2 discussion display mode.
22 Classes required for JS:
25 Data attributes required for JS:
28 Example context (json):
38 data-content="inpage-reply-content"
39 style="display: none;"
42 <div class="author-image-container">
45 class="rounded-circle w-100"
46 src="{{{profileimageurl}}}"
47 alt="{{#str}} pictureof, core, {{fullname}} {{/str}}"
54 <h4 class="h5 font-weight-bold reply-author">{{#str}} replyauthorself, mod_forum, {{firstname}}{{/str}}</h4>
56 <form data-post-id="{{postid}}" data-content="inpage-reply-form" action="{{{reply_url}}}">
62 placeholder="{{#str}} replyingtoauthor, forum, {{.}} {{/str}}"
65 placeholder="{{#str}} replyplaceholder, forum {{/str}}"
71 <input type="hidden" name="postformat" value="{{postformat}}"/>
72 <input type="hidden" name="subject" value="{{parentsubject}}"/>
73 <input type="hidden" name="reply" value="{{postid}}"/>
74 <input type="hidden" name="sesskey" value="{{sesskey}}"/>
75 <div class="d-flex mt-3 align-items-center flex-wrap">
76 <button class="btn btn-primary font-weight-bold px-3" data-action="forum-inpage-submit">
77 <span data-region="submit-text">{{#str}} post, core {{/str}}</span>
78 <span data-region="loading-icon-container" class="hidden">{{> core/loading }}</span>
80 <button data-action="forum-advanced-reply" class="btn btn-link mr-auto" type="submit">
81 {{#str}} advanced, core {{/str}}
83 {{#canreplyprivately}}
84 <div class="form-check form-check-inline">
85 <div class="custom-control custom-switch">
86 <input name="privatereply" type="checkbox" class="custom-control-input" id="private-reply-checkbox-{{uniqid}}">
87 <label class="custom-control-label" for="private-reply-checkbox-{{uniqid}}">
88 {{#str}} privatereply, forum {{/str}}
92 {{/canreplyprivately}}
94 class="btn btn-icon icon-no-margin icon-size-4 text-muted"
95 title="{{#str}} cancelreply, mod_forum {{/str}}"
96 data-action="cancel-inpage-reply"
98 {{#pix}} i/delete, core {{/pix}}