diff options
| author | Hiral Bhavsar <hbh@odoo.com> | 2018-11-20 13:22:15 +0000 |
|---|---|---|
| committer | Martin Geubelle <mge@odoo.com> | 2019-05-03 10:19:40 +0000 |
| commit | ff6415b63cc01ad6758eef33d516cdda2f687e10 (patch) | |
| tree | f33f1373821c939375b55651a6a91b687c8a3cf8 /addons/mail/static/src/xml | |
| parent | a02d273ebcf0ba92243afd338c75cb1546065afc (diff) | |
[IMP] mail: add a progress bar by column in activity view
At the top of each column of the activity view, a progress bar is now
displayed below the activity type name based on activities scheduled.
Note that the progress bar widget is an extension of the kanban progress
bar as both have a very similar behavior.
Task 1894990
Diffstat (limited to 'addons/mail/static/src/xml')
| -rw-r--r-- | addons/mail/static/src/xml/activity_view.xml | 32 |
1 files changed, 20 insertions, 12 deletions
diff --git a/addons/mail/static/src/xml/activity_view.xml b/addons/mail/static/src/xml/activity_view.xml index 2abada1486a..2db197373b7 100644 --- a/addons/mail/static/src/xml/activity_view.xml +++ b/addons/mail/static/src/xml/activity_view.xml @@ -1,23 +1,31 @@ <?xml version="1.0" encoding="UTF-8"?> <templates xml:space="preserve"> -<t t-name="mail.ActivityViewHeaderCell"> - <th class="o_activity_type_cell" t-att-data-activity-type-id="id"> - <span><t t-esc="name"/></span> - <span t-if="template_list.length > 0" class="dropdown pull-right"> - <i class="fa fa-ellipsis-v fa-fw" data-toggle="dropdown"/> - <div class="dropdown-menu"> - <div t-foreach="template_list" t-as="template" title="This action will send an email." class="o_template_element o_send_mail_template" t-att-data-template-id="template.id"> - <i class="fa fa-envelope fa-fw"/> <t t-esc="template.name"/> +<t t-name="mail.ActivityViewHeader"> + <thead> + <tr> + <th></th> + <th t-foreach="types" t-as="type" class="o_activity_type_cell" t-att-data-activity-type-id="type[0]" t-attf-width="#{100/types.length}%"> + <div> + <span><t t-esc="type[1]"/></span> + <span t-if="type[2].length > 0" class="dropdown pull-right"> + <i class="fa fa-ellipsis-v fa-fw" data-toggle="dropdown"/> + <div class="dropdown-menu"> + <div t-foreach="type[2]" t-as="template" title="This action will send an email." class="o_template_element o_send_mail_template" t-att-data-template-id="template.id"> + <i class="fa fa-envelope fa-fw"/> <t t-esc="template.name"/> + </div> + </div> + </span> </div> - </div> - </span> - </th> + <div t-if="activityTypeIDs.length and !_.contains(activityTypeIDs, type[0])" class="mt24"/> + </th> + </tr> + </thead> </t> <t t-name="mail.ActivityViewRow"> <td t-att-data-res-id="resId" t-att-data-activity-type-id="activityTypeId" - t-attf-class="o_activity_summary_cell #{activityGroup.state ? activityGroup.state : 'o_activity_empty_cell'}"> + t-attf-class="o_activity_summary_cell #{activityGroup.state ? activityGroup.state : 'o_activity_empty_cell'} #{_.contains(widget.filteredResIDs, resId) ? 'o_activity_filter_' + widget.activeFilter : ''}"> <i t-if="!activityGroup.state" title="Create" class="text-center fa fa-plus"/> </td> </t> |
