summaryrefslogtreecommitdiff
path: root/addons/web_tour/static/src/xml/debug_manager.xml
diff options
context:
space:
mode:
authorAaron Bohy <aab@odoo.com>2020-04-02 14:01:26 +0000
committerAaron Bohy <aab@odoo.com>2020-04-03 10:13:33 +0000
commitebb94e629929a2457ab7f6542b1291b08bd6faad (patch)
tree90dc8415961a8ae1c613ffb9121ce36d07bb4c88 /addons/web_tour/static/src/xml/debug_manager.xml
parent1b30a78beb1f3ea39540a5dcb049ffa853db41c1 (diff)
[IMP] web_tour: reset tours from debug manager
This commit improves the "Start tour" dialog accessible via the DebugManager. It is now possible to reset a tour to its initial step, so that it can be re-executed (in onboarding mode). The content of the dialog has been reworked as well: - testing tours are displayed in another table - tour sequence is displayed - tours are sorted by sequence, and by name. Task 2229909 closes odoo/odoo#48892 Signed-off-by: Lucas Perais (lpe) <lpe@odoo.com>
Diffstat (limited to 'addons/web_tour/static/src/xml/debug_manager.xml')
-rw-r--r--addons/web_tour/static/src/xml/debug_manager.xml47
1 files changed, 35 insertions, 12 deletions
diff --git a/addons/web_tour/static/src/xml/debug_manager.xml b/addons/web_tour/static/src/xml/debug_manager.xml
index 13fe0815dd3..2585c1f662f 100644
--- a/addons/web_tour/static/src/xml/debug_manager.xml
+++ b/addons/web_tour/static/src/xml/debug_manager.xml
@@ -10,20 +10,43 @@
</t>
</t>
-<t t-name="WebClient.DebugManager.ToursDialog">
+<t t-name="web_tour.ToursDialog">
<div>
- <table class="table table-sm table-striped table-responsive">
- <tr>
- <th>Name</th>
- <th>Path</th>
- <th/>
- </tr>
+ <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>
- <tr t-foreach="tours" t-as="tour">
- <td><t t-esc="tour"/></td>
- <td><t t-esc="tours[tour].url"/></td>
- <td><button type="button" class="btn btn-primary fa fa-play o_start_tour" t-att-data-name="tour" aria-label="Tour" title="Tour"/></td>
- </tr>
+<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>