-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Expand file tree
/
Copy pathdashboard.xml
More file actions
24 lines (23 loc) · 1.11 KB
/
dashboard.xml
File metadata and controls
24 lines (23 loc) · 1.11 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
<?xml version="1.0" encoding="utf-8"?>
<templates xml:space="preserve">
<t t-name="awesome_dashboard.AwesomeDashboard">
<Layout display="display" className="'o_dashboard h-100'">
<t t-set-slot="layout-buttons">
<button t-on-click="openCustomers" class="btn btn-primary">Customers</button>
<button t-on-click="openLeads" class="btn btn-primary">Leads</button>
<button class="btn btn-outline-secondary" t-on-click="openConfiguration">
<i class="oi oi-settings"/> Settings
</button>
</t>
<div class="p-3">Hellooooooooooooooooooo.</div>
<div class="row m-0">
<t t-foreach="this.state.items" t-as="item" t-key="item.id">
<DashboardItem size="item.size || 1">
<t t-set="itemProps" t-value="item.props ? item.props(statistics) : { 'data': statistics }"/>
<t t-component="item.Component" t-props="itemProps" />
</DashboardItem>
</t>
</div>
</Layout>
</t>
</templates>