|
1 | 1 | <?xml version="1.0" encoding="UTF-8"?> |
2 | 2 | <templates> |
3 | 3 | <t t-name="website_sale.WebsiteSaleDashboard"> |
4 | | - <div class="o_website_sale_dashboard container-fluid d-flex flex-wrap justify-content-between align-items-start gap-3 p-3 border-bottom"> |
| 4 | + <div class="o_website_sale_dashboard container-fluid d-flex justify-content-between align-items-center gap-3 p-3 border-bottom"> |
5 | 5 |
|
6 | 6 | <!-- Left Section --> |
7 | | - <div class="o_left_section align-content-center d-flex flex-wrap gap-4 flex-grow-1 justify-content-start"> |
8 | | - <div |
| 7 | + <div class="grid w-100 w-lg-50 gap-1"> |
| 8 | + <button |
9 | 9 | title="Orders to Fulfill" |
10 | | - class="o_dashboard_card o_purple_card text-center rounded-3 p-2 shadow-sm flex-shrink-1" |
11 | | - t-on-click="setSearchContext" |
| 10 | + class="o_dashboard_card btn g-col-4 g-col-md-2 g-col-lg-3 g-col-xxl-2 g-start-md-4 g-start-lg-1 py-2 py-lg-3 lh-sm" |
| 11 | + t-att-class="this.getDashboardCardAdditionalClass('to_fulfill')" |
| 12 | + t-on-click="state.eCommerceData['overall']['to_fulfill'] > 0 ? setSearchContext : () => {}" |
12 | 13 | filter_name="to_fulfill,from_website,order_confirmed" |
13 | 14 | > |
14 | | - <a href="#" class="btn p-1 p-lg-2 text-truncate text-wrap"> |
15 | | - <h2 class="m-0 fw-bold o_dashboard_card_data" t-esc="state.eCommerceData['overall']['to_fulfill']"/> |
16 | | - <h4 class="fw-semibold text-muted o_dashboard_card_text">To Fulfill</h4> |
17 | | - </a> |
18 | | - </div> |
| 15 | + <span class="o_dashboard_card_data fs-4 fw-bolder" t-esc="state.eCommerceData['overall']['to_fulfill']"/> |
| 16 | + <span class="d-block">To Fulfill</span> |
| 17 | + </button> |
19 | 18 |
|
20 | | - <div |
| 19 | + <button |
| 20 | + t-if="state.eCommerceData['overall']['to_confirm'] > 0" |
21 | 21 | title="Orders to Confirm" |
22 | | - class="o_dashboard_card o_orange_card text-center rounded-3 p-2 shadow-sm flex-shrink-1" |
23 | | - t-on-click="setSearchContext" |
| 22 | + class="o_dashboard_card btn g-col-4 g-col-md-2 g-col-lg-3 g-col-xxl-2 py-2 py-lg-3 lh-sm" |
| 23 | + t-att-class="this.getDashboardCardAdditionalClass('to_confirm')" |
| 24 | + t-on-click="state.eCommerceData['overall']['to_confirm'] > 0 ? setSearchContext : () => {}" |
24 | 25 | filter_name="to_confirm,from_website" |
25 | 26 | > |
26 | | - <a href="#" class="btn p-1 p-lg-2 text-truncate text-wrap"> |
27 | | - <h2 class="m-0 fw-bold o_dashboard_card_data" t-esc="state.eCommerceData['overall']['to_confirm']"/> |
28 | | - <h4 class="fw-semibold text-muted o_dashboard_card_text">To Confirm</h4> |
29 | | - </a> |
30 | | - </div> |
| 27 | + <span class="o_dashboard_card_data fs-4 fw-bolder" t-esc="state.eCommerceData['overall']['to_confirm']"/> |
| 28 | + <span class="d-block">To Confirm</span> |
| 29 | + </button> |
31 | 30 |
|
32 | | - <div |
| 31 | + <button |
33 | 32 | title="Orders to Invoice" |
34 | | - class="o_dashboard_card o_blue_card text-center rounded-3 p-2 shadow-sm flex-shrink-1" |
35 | | - t-on-click="setSearchContext" |
| 33 | + class="o_dashboard_card btn g-col-4 g-col-md-2 g-col-lg-3 g-col-xxl-2 py-2 py-lg-3 lh-sm" |
| 34 | + t-att-class="this.getDashboardCardAdditionalClass('to_invoice')" |
| 35 | + t-on-click="state.eCommerceData['overall']['to_invoice'] > 0 ? setSearchContext : () => {}" |
36 | 36 | filter_name="to_invoice,from_website,order_confirmed" |
37 | 37 | > |
38 | | - <a href="#" class="btn p-1 p-lg-2 text-truncate text-wrap"> |
39 | | - <h2 class="m-0 fw-bold o_dashboard_card_data" t-esc="state.eCommerceData['overall']['to_invoice']"/> |
40 | | - <h4 class="fw-semibold text-muted o_dashboard_card_text">To Invoice</h4> |
41 | | - </a> |
42 | | - </div> |
| 38 | + <span class="o_dashboard_card_data fs-4 fw-bolder" t-esc="state.eCommerceData['overall']['to_invoice']"/> |
| 39 | + <span class="d-block">To Invoice</span> |
| 40 | + </button> |
43 | 41 | </div> |
44 | 42 |
|
45 | 43 | <!-- Right Section --> |
46 | | - <div class="o_right_section align-content-center d-flex flex-wrap gap-4 flex-grow-1 justify-content-end"> |
47 | | - <div class="o_date_filter_wrapper d-flex align-items-center w-100 w-md-auto mb-3 mb-md-0"> |
48 | | - <DateFilterButton update.bind="updateDashboardState" selectedFilter="state.selectedFilter"/> |
| 44 | + <div class="d-none d-lg-flex border rounded-3 py-3"> |
| 45 | + <div class="o_date_filter_wrapper d-flex align-items-center"> |
| 46 | + <DateFilterButton update.bind="updateDashboardState" selectedDateFilter="state.selectedDateFilter"/> |
49 | 47 | </div> |
50 | 48 |
|
51 | | - <div class="o_cards_container d-flex flex-wrap justify-content-end gap-4"> |
| 49 | + <div class="o_cards_container d-flex align-items-center gap-4 border-start px-4"> |
52 | 50 | <!-- Sales --> |
53 | | - <div class="o_dashboard_card o_visitors_card text-center bg-secondary rounded-3 p-3 shadow-sm flex-shrink-1"> |
54 | | - <h3 |
55 | | - class="m-0 fw-bold o_dashboard_card_data" |
| 51 | + <div class="d-flex align-items-baseline gap-1"> |
| 52 | + <span |
| 53 | + class="fs-5 fw-bolder" |
56 | 54 | t-att-class="this.getPeriodCardClass('total_visitors')" |
57 | 55 | > |
58 | 56 | <t t-esc="state.eCommerceData['current_period']['total_visitors']"/> |
59 | | - </h3> |
60 | | - <div class="fw-semibold text-muted o_dashboard_card_text">Visitors</div> |
| 57 | + </span> |
| 58 | + <span class="fs-6 text-body fw-bold">Visitors</span> |
61 | 59 | </div> |
62 | 60 |
|
63 | 61 | <!-- Conversion --> |
64 | | - <div class="o_dashboard_card o_orders_card text-center bg-secondary rounded-3 p-3 shadow-sm flex-shrink-1"> |
65 | | - <h3 |
66 | | - class="m-0 fw-bold o_dashboard_card_data" |
| 62 | + <div class="d-flex align-items-baseline gap-1"> |
| 63 | + <span |
| 64 | + class="fs-5 fw-bolder" |
67 | 65 | t-att-class="this.getPeriodCardClass('total_orders')" |
68 | 66 | > |
69 | 67 | <t t-esc="state.eCommerceData['current_period']['total_orders']"/> |
70 | | - </h3> |
71 | | - <div class="fw-semibold text-muted o_dashboard_card_text">Orders</div> |
| 68 | + </span> |
| 69 | + <span class="fs-6 text-body fw-bold">Orders</span> |
72 | 70 | </div> |
73 | 71 |
|
74 | 72 | <!-- Average Cart --> |
75 | | - <div class="o_dashboard_card o_sales_card text-center bg-secondary rounded-3 p-3 shadow-sm flex-shrink-1"> |
76 | | - <h3 |
77 | | - class="m-0 fw-bold o_dashboard_card_data" |
| 73 | + <div class="d-flex align-items-baseline gap-1"> |
| 74 | + <span |
| 75 | + class="fs-5 fw-bolder" |
78 | 76 | t-att-class="this.getPeriodCardClass('total_sales')" |
79 | 77 | > |
80 | 78 | $ <t t-esc="state.eCommerceData['current_period']['total_sales']"/> |
81 | | - </h3> |
82 | | - <div class="fw-semibold text-muted o_dashboard_card_text">Sales</div> |
| 79 | + </span> |
| 80 | + <span class="fs-6 text-body fw-bold">Sales</span> |
83 | 81 | </div> |
84 | 82 | </div> |
85 | 83 | </div> |
|
0 commit comments