summaryrefslogtreecommitdiff
path: root/addons/web_tour/static/src/xml/debug_manager.xml
blob: 2585c1f662f76b9ebf55f978b80c22e1dc4fb563 (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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<?xml version="1.0" encoding="UTF-8"?>
<templates id="template" xml:space="preserve">

<t t-extend="WebClient.DebugManager.Backend">
    <t t-jquery="a[data-action='select_view']" t-operation="after">
        <t t-if="manager._is_admin">
            <a t-if="manager.consume_tours_enabled" href="#" class="dropdown-item" data-action="consume_tours">Disable Tours</a>
            <a href="#" class="dropdown-item" data-action="start_tour">Start Tour</a>
        </t>
    </t>
</t>

<t t-name="web_tour.ToursDialog">
    <div>
        <t t-call="web_tour.ToursDialog.Table">
            <t t-set="caption" t-value="'Onboarding tours'"/>
            <t t-set="tours" t-value="onboardingTours"/>
        </t>
        <t t-if="testingTours.length" t-call="web_tour.ToursDialog.Table">
            <t t-set="caption" t-value="'Testing tours'"/>
            <t t-set="tours" t-value="testingTours"/>
        </t>
    </div>
</t>

<t t-name="web_tour.ToursDialog.Table">
    <div class="table-responsive">
        <table class="table table-sm table-striped">
            <caption style="caption-side: top; font-size: 14px">
                <t t-esc="caption"/>
            </caption>
            <thead>
                <tr>
                    <th>Sequence</th>
                    <th width="50%">Name</th>
                    <th width="50%">Path</th>
                    <th>Start</th>
                    <th>Test</th>
                </tr>
            </thead>
            <tbody>
                <tr t-foreach="tours" t-as="tour">
                    <td><t t-esc="tour.sequence"/></td>
                    <td><t t-esc="tour.name"/></td>
                    <td><t t-esc="tour.url"/></td>
                    <td><button type="button" class="btn btn-primary fa fa-play o_start_tour" t-att-data-name="tour.name" aria-label="Start tour" title="Start tour"/></td>
                    <td><button type="button" class="btn btn-primary fa fa-cogs o_test_tour" t-att-data-name="tour.name" aria-label="Test tour" title="Test tour"/></td>
                </tr>
            </tbody>
        </table>
    </div>
</t>

</templates>