summaryrefslogtreecommitdiff
path: root/addons/web_tour/static/src/xml
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2022-05-10 21:51:50 +0700
committerstephanchrst <stephanchrst@gmail.com>2022-05-10 21:51:50 +0700
commit3751379f1e9a4c215fb6eb898b4ccc67659b9ace (patch)
treea44932296ef4a9b71d5f010906253d8c53727726 /addons/web_tour/static/src/xml
parent0a15094050bfde69a06d6eff798e9a8ddf2b8c21 (diff)
initial commit 2
Diffstat (limited to 'addons/web_tour/static/src/xml')
-rw-r--r--addons/web_tour/static/src/xml/debug_manager.xml54
-rw-r--r--addons/web_tour/static/src/xml/tip.xml9
2 files changed, 63 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>
diff --git a/addons/web_tour/static/src/xml/tip.xml b/addons/web_tour/static/src/xml/tip.xml
new file mode 100644
index 00000000..eba661f6
--- /dev/null
+++ b/addons/web_tour/static/src/xml/tip.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<templates id="template" xml:space="preserve">
+ <div t-name="Tip" t-attf-class="o_tooltip #{widget.info.position} #{widget.is_anchor_fixed_position ? 'o_tooltip_fixed' : ''}">
+ <div class="o_tooltip_overlay"/>
+ <div class="o_tooltip_content">
+ <t t-raw="widget.info.content"/>
+ </div>
+ </div>
+</templates>