Skip to content

Commit f495c12

Browse files
committed
[IMP] awesome_dashboard: improving visual
1 parent 65ab331 commit f495c12

2 files changed

Lines changed: 10 additions & 11 deletions

File tree

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
.o_dashboard {
22
background-color: #bfbfbf;
33
display: flex;
4-
flex-direction: row;
5-
align-items: flex-start;
4+
flex-flow: row wrap;
5+
align-content: flex-start;
66
gap: 1rem;
77
padding: 0.5rem;
8-
flex-wrap: wrap;
98
justify-content: flex-start;
109
}

awesome_dashboard/static/src/dashboard.xml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<button class="btn btn-primary" t-on-click="openLeads">Leads</button>
88
</t>
99

10-
<DashboardItem>
10+
<DashboardItem size="1.5">
1111
<t t-set-slot="title">
1212
Average amount of t-shirt by order this month
1313
</t>
@@ -18,10 +18,10 @@
1818

1919
<DashboardItem size="2">
2020
<t t-set-slot="title">
21-
Average time for an order to go from 'newe' to 'sent' or 'cancelled'
21+
Average time for an order to go from 'new' to 'sent' or 'cancelled'
2222
</t>
2323
<t t-set-slot="count">
24-
<t t-esc="this.state.statistics.average_quantity"></t>
24+
<t t-esc="this.state.statistics.average_time"></t>
2525
</t>
2626
</DashboardItem>
2727

@@ -30,25 +30,25 @@
3030
Number of new orders this month
3131
</t>
3232
<t t-set-slot="count">
33-
<t t-esc="this.state.statistics.average_quantity"></t>
33+
<t t-esc="this.state.statistics.nb_new_orders"></t>
3434
</t>
3535
</DashboardItem>
3636

37-
<DashboardItem size="0.8">
37+
<DashboardItem size="1.5">
3838
<t t-set-slot="title">
3939
Number of cancelled orders this month
4040
</t>
4141
<t t-set-slot="count">
42-
<t t-esc="this.state.statistics.average_quantity"></t>
42+
<t t-esc="this.state.statistics.nb_cancelled_orders"></t>
4343
</t>
4444
</DashboardItem>
4545

46-
<DashboardItem size="0.8">
46+
<DashboardItem size="1.5">
4747
<t t-set-slot="title">
4848
Total amount of new orders this month
4949
</t>
5050
<t t-set-slot="count">
51-
<t t-esc="this.state.statistics.average_quantity"></t>
51+
<t t-esc="this.state.statistics.total_amount"></t>
5252
</t>
5353
</DashboardItem>
5454
</Layout>

0 commit comments

Comments
 (0)