Orphaned conversations were not deleted
[GitHub/WoltLab/com.woltlab.wcf.conversation.git] / templates / conversationQuickReply.tpl
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}">
2 <article class="message messageSidebarOrientation{@$__wcf->getStyleHandler()->getStyle()->getVariable('messageSidebarOrientation')|ucfirst}{if $__wcf->getUserProfileHandler()->userOnlineGroupID} userOnlineGroupMarking{@$__wcf->getUserProfileHandler()->userOnlineGroupID}{/if}">
3 {include file='messageSidebar' userProfile=$__wcf->getUserProfileHandler()->getUserProfile()}
4
5 <div class="messageContent messageQuickReplyContent"{if $pageNo < $pages} data-placeholder="{lang}wcf.conversation.reply{/lang}"{/if}>
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
11 <textarea id="text" name="text" class="wysiwygTextarea"
12 data-autosave="com.woltlab.wcf.conversation.messageAdd-{@$conversation->conversationID}"
13 data-support-mention="true"
14 ></textarea>
15 {include file='messageFormTabsInline' inConversationQuickReply=true}
16 </div>
17
18 <footer class="messageFooter">
19 <div class="formSubmit">
20 <button class="buttonPrimary" data-type="save" accesskey="s">{lang}wcf.global.button.submit{/lang}</button>
21 {include file='messageFormPreviewButton' previewMessageObjectType='com.woltlab.wcf.conversation.message' previewMessageObjectID=0}
22 </div>
23 </footer>
24 </div>
25 </article>
26
27 {include file='wysiwyg'}
28 </li>