-
Notifications
You must be signed in to change notification settings - Fork 3k
Expand file tree
/
Copy pathdashboard.xml
More file actions
26 lines (24 loc) · 1.23 KB
/
dashboard.xml
File metadata and controls
26 lines (24 loc) · 1.23 KB
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
<?xml version="1.0" encoding="UTF-8" ?>
<templates xml:space="preserve">
<t t-name="awesome_dashboard.AwesomeDashboard">
<Layout className="'o_dashboard h-100'" display="{controlPanel: {} }">
<t t-set-slot="layout-buttons">
<button class="btn btn-primary" t-on-click="() => openCustomers()">Customers</button>
<button class="btn btn-primary" t-on-click="() => openLeads()">Leads</button>
</t>
<t t-set-slot="control-panel-additional-actions">
<i class="fa fa-cog align-self-center cursor-pointer" t-on-click="() => openDashboardConfig()"/>
</t>
<t t-set-slot="default">
<div class="d-flex flex-wrap">
<t t-foreach="items" t-as="item" t-key="item.id">
<DashboardItem size="item.size || 1" t-if="!state.disabledItems.includes(item.id)">
<t t-set="itemProp" t-value="item.props ? item.props(statistics) : {'data': statistics}"/>
<t t-component="item.Component" t-props="itemProp" />
</DashboardItem>
</t>
</div>
</t>
</Layout>
</t>
</templates>