summaryrefslogtreecommitdiff
path: root/addons/point_of_sale/static/src/xml/ChromeWidgets/SyncNotification.xml
blob: 4a08c7ac7691500f2b6f7f24c2f7d814acf958bc (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
<?xml version="1.0" encoding="UTF-8"?>
<templates id="template" xml:space="preserve">

    <t t-name="SyncNotification" owl="1">
        <div class="oe_status" t-on-click="onClick">
            <span t-if="state.msg" class="js_msg">
                <t t-esc="state.msg" />
                <span> </span>
            </span>
            <div t-if="state.status === 'connected'" class="js_connected oe_icon oe_green">
                <i class="fa fa-fw fa-wifi" role="img" aria-label="Synchronisation Connected"
                   title="Synchronisation Connected"></i>
            </div>
            <div t-if="state.status === 'connecting'" class="js_connecting oe_icon">
                <i class="fa fa-fw fa-spin fa-spinner" role="img"
                   aria-label="Synchronisation Connecting" title="Synchronisation Connecting"></i>
            </div>
            <div t-if="state.status === 'disconnected'" class="js_disconnected oe_icon oe_red">
                <i class="fa fa-fw fa-wifi" role="img" aria-label="Synchronisation Disconnected"
                   title="Synchronisation Disconnected"></i>
            </div>
            <div t-if="state.status === 'error'" class="js_error oe_icon oe_red">
                <i class="fa fa-fw fa-warning" role="img" aria-label="Synchronisation Error"
                   title="Synchronisation Error"></i>
            </div>
        </div>
    </t>

</templates>