Public release from ruodoo-project: 19.0 - 2026-07-26 21:17:35 UTC
This commit is contained in:
@ -0,0 +1,43 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<templates xml:space="preserve">
|
||||
<t t-name="mail.Composer" t-inherit="mail.Composer" t-inherit-mode="extension">
|
||||
<xpath expr="//div[hasclass('o-mail-Composer-footer')]" position="before">
|
||||
<t t-if="tierState.availableChannels.length > 0 or tierState.availableMailboxes.length > 0">
|
||||
<div style="display:flex; flex-direction:column; gap:4px; padding:4px 12px 2px; grid-column:1/-1;">
|
||||
|
||||
<!-- Channel row: horizontal pill buttons (radio) -->
|
||||
<t t-if="tierState.availableChannels.length > 0">
|
||||
<div style="display:flex; flex-direction:row; flex-wrap:wrap; align-items:center; gap:6px;">
|
||||
<span style="font-size:0.78rem; color:#6c757d; white-space:nowrap; flex-shrink:0;">Канал:</span>
|
||||
<t t-foreach="tierState.availableChannels" t-as="channel" t-key="channel.id">
|
||||
<button
|
||||
t-on-click="() => this.selectChannel(channel.id)"
|
||||
t-att-style="tierState.selectedChannelId === channel.id
|
||||
? 'display:inline-block; font-size:0.78rem; line-height:1.4; padding:1px 10px; border-radius:20px; border:1px solid #0d6efd; background:#0d6efd; color:#fff; cursor:pointer; white-space:nowrap;'
|
||||
: 'display:inline-block; font-size:0.78rem; line-height:1.4; padding:1px 10px; border-radius:20px; border:1px solid #6c757d; background:transparent; color:#6c757d; cursor:pointer; white-space:nowrap;'"
|
||||
><t t-esc="channel.name"/></button>
|
||||
</t>
|
||||
</div>
|
||||
</t>
|
||||
|
||||
<!-- Assign conversation to mailbox: green arrow buttons -->
|
||||
<t t-if="tierState.availableMailboxes.length > 0">
|
||||
<div style="display:flex; flex-direction:row; flex-wrap:wrap; align-items:center; gap:6px;">
|
||||
<span style="font-size:0.78rem; color:#6c757d; white-space:nowrap; flex-shrink:0;">Перенести в:</span>
|
||||
<t t-foreach="tierState.availableMailboxes" t-as="mailbox" t-key="mailbox.id">
|
||||
<button
|
||||
t-on-click="() => this.assignToMailbox(mailbox.id, mailbox.name)"
|
||||
style="display:inline-flex; align-items:center; gap:4px; font-size:0.78rem; line-height:1.4; padding:1px 10px; border-radius:20px; border:1px solid #198754; background:transparent; color:#198754; cursor:pointer; white-space:nowrap;"
|
||||
>
|
||||
<i class="fa fa-arrow-right" style="font-size:0.7rem;"/>
|
||||
<t t-esc="mailbox.name"/>
|
||||
</button>
|
||||
</t>
|
||||
</div>
|
||||
</t>
|
||||
|
||||
</div>
|
||||
</t>
|
||||
</xpath>
|
||||
</t>
|
||||
</templates>
|
||||
Reference in New Issue
Block a user