Added missing delete block
[GitHub/WoltLab/com.woltlab.wcf.conversation.git] / templates / conversationQuickReply.tpl
CommitLineData
4781b65e 1<li id="messageQuickReply" class="jsOnly{if $conversation->userID == $__wcf->getUser()->userID} messageGroupStarter{/if}{if $pageNo < $pages} messageQuickReplyCollapsed{/if}" data-object-id="{@$conversation->conversationID}" data-last-post-time="{@$conversation->lastPostTime}" data-page-no="{@$pageNo}">
7961609e 2 <article class="message messageSidebarOrientation{@$__wcf->getStyleHandler()->getStyle()->getVariable('messageSidebarOrientation')|ucfirst}{if $__wcf->getUserProfileHandler()->userOnlineGroupID} userOnlineGroupMarking{@$__wcf->getUserProfileHandler()->userOnlineGroupID}{/if}">
3b3b17a4 3 {include file='messageSidebar' userProfile=$__wcf->getUserProfileHandler()->getUserProfile()}
3639da31 4
de163bbd 5 <div class="messageContent messageQuickReplyContent"{if $pageNo < $pages} data-placeholder="{lang}wcf.conversation.reply{/lang}"{/if}>
3639da31
AE
6 <div class="messageBody">
7 {if !$conversation->isDraft && !$conversation->hasOtherParticipants()}
8 <p class="warning" style="margin-bottom: 14px">{lang}wcf.conversation.noParticipantsWarning{/lang}</p>
9 {/if}
10
d12e45c8 11 <textarea id="text" name="text" class="wysiwygTextarea"
3639da31 12 data-autosave="com.woltlab.wcf.conversation.messageAdd-{@$conversation->conversationID}"
dd495bf5 13 data-support-mention="true"
3639da31
AE
14 ></textarea>
15 {include file='messageFormTabsInline' inConversationQuickReply=true}
16 </div>
5e52978f 17
3639da31
AE
18 <footer class="messageFooter">
19 <div class="formSubmit">
20 <button class="buttonPrimary" data-type="save" accesskey="s">{lang}wcf.global.button.submit{/lang}</button>
dfecaf59 21 {include file='messageFormPreviewButton' previewMessageObjectType='com.woltlab.wcf.conversation.message' previewMessageObjectID=0}
5e52978f 22 </div>
3639da31 23 </footer>
5e52978f
AE
24 </div>
25 </article>
26
8462c673 27 <script data-relocate="true">
ab10f51f 28 require(['WoltLabSuite/Core/Ui/Message/Reply'], function(UiMessageReply) {
3639da31
AE
29 new UiMessageReply({
30 ajax: {
31 className: 'wcf\\data\\conversation\\message\\ConversationMessageAction'
32 }
33 });
709a10f7 34 });
709a10f7 35 </script>
5e52978f
AE
36 {include file='wysiwyg'}
37</li>