Overhauled message templates/styling
[GitHub/WoltLab/com.woltlab.wcf.conversation.git] / templates / conversationQuickReply.tpl
CommitLineData
7cd36813 1<li id="messageQuickReply" class="jsOnly{if $conversation->userID == $__wcf->getUser()->userID} messageGroupStarter{/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}">
3639da31
AE
3 {include file='messageSidebar' userProfile=$__wcf->getUserProfileHandler()}
4
5 <div class="messageContent messageQuickReplyContent">
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" rows="20" cols="40" style="width: 100%"
12 data-autosave="com.woltlab.wcf.conversation.messageAdd-{@$conversation->conversationID}"
13 ></textarea>
14 {include file='messageFormTabsInline' inConversationQuickReply=true}
15 </div>
5e52978f 16
3639da31
AE
17 <footer class="messageFooter">
18 <div class="formSubmit">
19 <button class="buttonPrimary" data-type="save" accesskey="s">{lang}wcf.global.button.submit{/lang}</button>
20 <button data-type="extended">{lang}wcf.message.button.extendedReply{/lang}</button>
5e52978f 21 </div>
3639da31 22 </footer>
5e52978f
AE
23 </div>
24 </article>
25
8462c673 26 <script data-relocate="true">
3639da31
AE
27 require(['WoltLab/WCF/Ui/Message/Reply'], function(UiMessageReply) {
28 new UiMessageReply({
29 ajax: {
30 className: 'wcf\\data\\conversation\\message\\ConversationMessageAction'
31 }
32 });
709a10f7 33 });
709a10f7 34 </script>
5e52978f
AE
35 {include file='wysiwyg'}
36</li>