summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/xml/composer.xml
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2022-05-10 21:51:50 +0700
committerstephanchrst <stephanchrst@gmail.com>2022-05-10 21:51:50 +0700
commit3751379f1e9a4c215fb6eb898b4ccc67659b9ace (patch)
treea44932296ef4a9b71d5f010906253d8c53727726 /addons/mail/static/src/xml/composer.xml
parent0a15094050bfde69a06d6eff798e9a8ddf2b8c21 (diff)
initial commit 2
Diffstat (limited to 'addons/mail/static/src/xml/composer.xml')
-rw-r--r--addons/mail/static/src/xml/composer.xml20
1 files changed, 20 insertions, 0 deletions
diff --git a/addons/mail/static/src/xml/composer.xml b/addons/mail/static/src/xml/composer.xml
new file mode 100644
index 00000000..49c0a3bf
--- /dev/null
+++ b/addons/mail/static/src/xml/composer.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<templates xml:space="preserve">
+
+ <div t-name="mail.legacy.Composer.emojis" class="o_mail_emoji_container">
+ <t t-foreach="emojis" t-as="emoji">
+ <span t-att-data-emoji="emoji.sources[0]" class="o_mail_emoji" t-att-title="emoji.description" t-att-aria-label="emoji.description">
+ <t t-raw="emoji.unicode"/>
+ </span>
+ </t>
+ </div>
+
+ <t t-name="FieldMany2ManyTagsEmail" t-extend="FieldMany2ManyTag">
+ <t t-jquery="[t-attf-class*=badge]" t-operation="replace">
+ <div t-attf-class="badge badge-pill dropdown o_tag_color_0 #{el.email.indexOf('@') &lt; 0 ? 'o_tag_error' : ''}" t-att-data-color="color" t-att-data-index="el_index" t-att-data-id="el.id" t-attf-title="Tag color: #{colornames[color]}">
+ <span class="o_badge_text" t-att-title="el.email"><t t-esc="el.display_name"/></span>
+ <a t-if="!readonly" href="#" class="fa fa-times o_delete" title="Delete" aria-label="Delete"/>
+ </div>
+ </t>
+ </t>
+</templates>