summaryrefslogtreecommitdiff
path: root/addons/point_of_sale/static/src/xml/Screens/OrderManagementScreen/OrderDetails.xml
blob: 87579d09a1e15d5d7b10c40dbd8b94116fe7c2c0 (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
<?xml version="1.0" encoding="UTF-8"?>
<templates id="template" xml:space="preserve">

    <t t-name="OrderDetails" owl="1">
        <div class="order-container">
            <div t-ref="scrollable" class="order-scroller touch-scrollable">
                <div class="order">
                    <t t-if="!props.order">
                        <div class="order-empty">
                            <i class="fa fa-shopping-cart" role="img" aria-label="Shopping cart"
                               title="Shopping cart" />
                            <h1>Select an order</h1>
                        </div>
                    </t>
                    <t t-elif="orderlines.length === 0">
                        <div class="order-empty">
                            <i class="fa fa-shopping-cart" role="img" aria-label="Shopping cart"
                               title="Shopping cart" />
                            <h1>Order is empty</h1>
                        </div>
                    </t>
                    <t t-else="">
                        <ul class="orderlines">
                            <t t-foreach="orderlines" t-as="orderline" t-key="orderline.id">
                                <OrderlineDetails line="orderline" />
                            </t>
                        </ul>
                        <OrderSummary total="total" tax="tax" />
                    </t>
                </div>
            </div>
        </div>
    </t>

</templates>