summaryrefslogtreecommitdiff
path: root/addons/crm_iap_lead/views/mail_templates.xml
blob: dbb4fa1a569147cb1948697fe467069492641751 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<?xml version="1.0" encoding="utf-8"?>

<odoo>
    <template id="enrich_company" inherit_id="iap_mail.enrich_company">
        <xpath expr="//div[hasclass('o_partner_autocomplete_enrich_info')]" position="inside">
            <t t-if="people_data">
                <div style="font-size:16px; margin: 9px 0;">
                    <b>Contacts</b>
                </div>
                <table style="width:100%;
                    border-top-style: solid;border-top-color: #eeeeee;border-top-width: 1px;
                    border-bottom-style: solid;border-bottom-color: #eeeeee;border-bottom-width: 1px;
                    border-left-style: solid;border-left-color: #eeeeee;border-left-width: 1px;
                    border-right-style: solid;border-right-color: #eeeeee;border-right-width: 1px;" t-if="people_data">
                    <thead>
                        <tr style="background-color: #eeeeee">
                            <th style="padding: 5px; width: 20%;">
                                Name
                            </th>
                            <th style="padding: 5px; width: 20%;">
                                Title
                            </th>
                            <th style="padding: 5px; width: 30%;">
                                <img style="vertical-align: text-top;" src="web_editor/font_to_img/61664/rgb(102,102,102)/13"/>
                                Email
                            </th>
                            <th style="padding: 5px; width: 30%;">
                                <img style="vertical-align: text-top;" src="web_editor/font_to_img/61589/rgb(102,102,102)/13"/>
                                Phone
                            </th>
                        </tr>
                    </thead>
                    <tbody>
                        <t t-foreach="people_data" t-as="people">
                            <tr t-att-style="people_odd and 'background-color:#eeeeee' or None">
                                <td style="padding: 5px">
                                    <t t-esc="people['full_name'] or ''"/>
                                </td>
                                <td style="padding: 5px">
                                    <t t-esc="people['title'] or ''"/>
                                </td>
                                <td style="padding: 5px">
                                    <a t-if="people['email']" t-attf-href="mailto:{{people['email']}}" target="_top">
                                        <t t-esc="people['email']"/>
                                    </a>
                                </td>
                                <td style="padding: 5px">
                                    <a t-if="people['phone']" t-attf-href="tel:{{people['phone']}}">
                                        <t t-esc="people['phone']"/>
                                    </a>
                                </td>
                            </tr>
                        </t>
                    </tbody>
                </table>
            </t>
        </xpath>
    </template>
</odoo>