diff options
Diffstat (limited to 'addons/web_tour/static/src/xml/debug_manager.xml')
| -rw-r--r-- | addons/web_tour/static/src/xml/debug_manager.xml | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/addons/web_tour/static/src/xml/debug_manager.xml b/addons/web_tour/static/src/xml/debug_manager.xml new file mode 100644 index 00000000..2585c1f6 --- /dev/null +++ b/addons/web_tour/static/src/xml/debug_manager.xml @@ -0,0 +1,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> |
