Files
odoo_source/addons/mail/static/src/discuss/channel_selector.xml
T
Sébastien Theys 90cb44e1e1 [REF] mail, *: rename mail.channel to discuss.channel
* = bus, calendar, crm_livechat, hr, hr_holidays, im_livechat, mail_bot,
    mass_mailing, privacy_lookup, test_discuss_full, test_mail,
    test_mail_full, website_crm_livechat, website_livechat, base

In preparation of splitting discuss and mail modules.

Part of task-3265211

closes odoo/odoo#118354

Related: odoo/upgrade#4553
Related: odoo/enterprise#39661
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2023-04-21 02:21:53 +02:00

37 lines
1.3 KiB
XML

<?xml version="1.0" encoding="UTF-8" ?>
<templates xml:space="preserve">
<t t-name="discuss.ChannelSelector" owl="1">
<div class="o-mail-ChannelSelector d-flex flex-wrap form-control rounded bg-white p-1" t-att-class="props.class" t-ref="root">
<TagsList t-if="props.multiple" tags="tagsList"/>
<input
class="text-truncate form-control flex-grow-1 border-0 px-2 py-0"
t-att-placeholder="inputPlaceholder"
t-model="state.value"
t-ref="input"
t-on-click="(ev) => markEventHandled(ev, 'channelSelector.onClickInput')"
t-on-keydown="onKeydownInput"
type="text"
/>
</div>
<NavigableList class="'o-mail-ChannelSelector-list z-index-1'" t-props="navigableListProps"/>
</t>
<t t-name="discuss.ChannelSelector.channel" owl="1">
<strong class="px-2 py-1 align-self-center flex-shrink-0 text-truncate">
<t t-if="option.channelId === '__create__'">
Create: #
</t>
<t t-esc="option.label"/>
</strong>
</t>
<t t-name="discuss.ChannelSelector.chat" owl="1">
<ImStatus t-if="option.partner" persona="option.partner"/>
<strong class="px-2 py-1 align-self-center flex-shrink-0 text-truncate">
<t t-esc="option.label"/>
</strong>
</t>
</templates>