diff options
| author | RomainLibert <rli@odoo.com> | 2018-08-09 14:22:00 +0200 |
|---|---|---|
| committer | RomainLibert <rli@odoo.com> | 2018-08-10 12:08:09 +0200 |
| commit | fd02fec8d8d0dc73d2403cef540922dc25534e93 (patch) | |
| tree | d1a05b00fe352cb57e69c3fa860a0705ea6c98a4 /addons/mail/static/src/xml/web_kanban_activity.xml | |
| parent | 3f3593a4fd35cb4956e9ae0954b7c0944ce418df (diff) | |
[IMP] mail: add feedback option to kanban activities
In the kanban view, there was no possibility to add a feedback when
closing an activity this commit adds the same popover as the one we have
in the form view.
This commit also add the templates to this popover with the possible to
directly send the template or open the composer.
Task #1870662
Closes #26280
Diffstat (limited to 'addons/mail/static/src/xml/web_kanban_activity.xml')
| -rw-r--r-- | addons/mail/static/src/xml/web_kanban_activity.xml | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/addons/mail/static/src/xml/web_kanban_activity.xml b/addons/mail/static/src/xml/web_kanban_activity.xml index cfa88d90bb2..f61d22d569e 100644 --- a/addons/mail/static/src/xml/web_kanban_activity.xml +++ b/addons/mail/static/src/xml/web_kanban_activity.xml @@ -38,6 +38,19 @@ <div> <span class="fa fa-clock-o fa-fw" role="img" aria-label="Deadline" title="Deadline"/> <span t-att-title="log.date_deadline"><t t-esc="log.label_delay" /></span> + <div class="mt16" t-att-data-activity-id="log.id" t-att-data-previous-activity-type-id="log.activity_type_id[0]"> + <t t-if="log.mail_template_ids"> + <t t-foreach="log.mail_template_ids" t-as="mail_template"> + <div> + <i class="fa fa-envelope-o" aria-label="Mail" title="Mail" role="img"></i> + <span t-esc="mail_template.name"/>: + <span class="o_activity_template_preview" t-att-data-template-id="mail_template.id">Preview</span> + <span class="text-muted">or</span> + <span class="o_activity_template_send" t-att-data-template-id="mail_template.id">Send Now</span> + </div> + </t> + </t> + </div> <t t-if="log.user_id[0] != uid"> <span class="ml4 fa fa-user" role="img" aria-label="User" title="User"/> <span><t t-esc="log.user_id[1]" /></span> @@ -45,7 +58,7 @@ </div> </div> <div class="float-right"> - <span class="o_mark_as_done o_activity_link o_activity_link_kanban fa fa-check-circle fa-2x mt4" t-att-data-activity-id="log.id" title="Mark as done" role="img" aria-label="Mark as done"/> + <span class="o_mark_as_done o_activity_link o_activity_link_kanban fa fa-check-circle fa-2x mt4" t-att-data-previous-activity-type-id="log.activity_type_id[0]" t-att-data-activity-id="log.id" title="Mark as done" role="img" aria-label="Mark as done"/> </div> </li> </t> |
