diff options
| author | Debauche Stéphane <std@odoo.com> | 2019-11-08 09:51:21 +0000 |
|---|---|---|
| committer | Thibault Delavallée <tde@odoo.com> | 2019-12-13 10:18:49 +0000 |
| commit | e870ccf9ab541a4a2660a73cfcce46c0ca82a860 (patch) | |
| tree | 097cb08ee734a629a00dea2db1441dbec8980adc /addons/mail/static/src/xml | |
| parent | 0ddfbab90f68b4a7af7548471742f9a1dd20ae58 (diff) | |
[MOV] mail, social: move emojis mixin and field from social to mail
PURPOSE
Allow to use the text field with integrated emojis support in other apps
notably mass mailing
SPECIFICATIONS
Move emojis mixin and FieldTextEmojis field definition from social to mail
application. Rename emojis namespace accordingly.
LINKS
Task #2117238
PR #40045
Enterprise PR odoo/enterprise#6630
Diffstat (limited to 'addons/mail/static/src/xml')
| -rw-r--r-- | addons/mail/static/src/xml/text_emojis.xml | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/addons/mail/static/src/xml/text_emojis.xml b/addons/mail/static/src/xml/text_emojis.xml new file mode 100644 index 00000000000..89f26daf18c --- /dev/null +++ b/addons/mail/static/src/xml/text_emojis.xml @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="UTF-8"?> +<templates xml:space="preserve"> + <div t-name="mail.EmojisDropdown" t-attf-class="o_mail_emojis_dropdown o_mail_add_emoji dropdown"> + <button class="btn btn-block dropdown-toggle px-3 py-1" + type="button" t-att-id="emojisDropdownId" + data-toggle="dropdown" + aria-haspopup="true" + aria-expanded="false" + title="Add an emoji"> + <i class="fa fa-smile-o"></i> + </button> + <div class="dropdown-menu dropdown-menu-right border-0 p-2" t-att-aria-labelledby="emojisDropdownId" style="width: 406px"> + <t t-call="mail.Composer.emojis"> + <t t-set="emojis" t-value="widget.emojis"></t> + </t> + </div> + </div> +</templates> |
