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

    <t t-name="ProxyStatus" owl="1">
        <div class="oe_status js_proxy" t-on-click="onClick">
            <span t-if="state.msg and !env.isMobile" class="js_msg">
                <t t-esc="state.msg" />
            </span>
            <span t-if="state.status === 'connected'" class="js_connected oe_green">
                <i class="fa fa-fw fa-sitemap" role="img" aria-label="Proxy Connected"
                   title="Proxy Connected"></i>
            </span>
            <span t-if="state.status === 'connecting'" class="js_connecting">
                <i class="fa fa-fw fa-spin fa-spinner" role="img" aria-label="Connecting to Proxy"
                   title="Connecting to Proxy"></i>
            </span>
            <span t-if="state.status === 'warning'" class="js_warning oe_orange">
                <i class="fa fa-fw fa-sitemap" role="img" aria-label="Proxy Warning"
                   title="Proxy Warning"></i>
            </span>
            <span t-if="state.status === 'disconnected'" class="js_disconnected oe_red">
                <i class="fa fa-fw fa-sitemap" role="img" aria-label="Proxy Disconnected"
                   title="Proxy Disconnected"></i>
            </span>
        </div>
    </t>

</templates>