summaryrefslogtreecommitdiff
path: root/addons/web_tour/static/src/xml/debug_manager.xml
diff options
context:
space:
mode:
authorqsm-odoo <qsm@odoo.com>2016-09-02 11:11:54 +0100
committerqsm-odoo <qsm@odoo.com>2016-09-02 12:39:06 +0100
commitd41ed40c70faa9b30144c070a06fe2f07f15084b (patch)
treec177d0a8a023ca0d580bb273957e7cdb6c88a22b /addons/web_tour/static/src/xml/debug_manager.xml
parentf7cfef83b48f15d3c34f1506ccc142358e51f099 (diff)
[IMP] web, website: adapt tour launching to new system
* The debug manager contains a feature to launch tours, adapt it to new web_tour.tour system * The website help menu allowed to relaunch tutorial tour in debug mode. This feature is not adapted to new tour system and was useless in the first place (debug mode in frontend is barely used anyway). -> remove the website help menu and the feature
Diffstat (limited to 'addons/web_tour/static/src/xml/debug_manager.xml')
-rw-r--r--addons/web_tour/static/src/xml/debug_manager.xml31
1 files changed, 27 insertions, 4 deletions
diff --git a/addons/web_tour/static/src/xml/debug_manager.xml b/addons/web_tour/static/src/xml/debug_manager.xml
index d11aa2d0763..032e5278f5a 100644
--- a/addons/web_tour/static/src/xml/debug_manager.xml
+++ b/addons/web_tour/static/src/xml/debug_manager.xml
@@ -2,11 +2,34 @@
<templates id="template" xml:space="preserve">
<t t-extend="WebClient.DebugManager.Global">
- <t t-jquery="li > a[data-action='start_tour']" t-operation="after">
- <li t-if="manager._is_admin and manager.consume_tours_enabled">
- <a href="#" data-action="consume_tours">Consume Tours</a>
- </li>
+ <t t-jquery="li > a[data-action='select_view']" t-operation="after">
+ <t t-if="manager._is_admin">
+ <li t-if="manager.consume_tours_enabled">
+ <a href="#" data-action="consume_tours">Consume Tours</a>
+ </li>
+ <li>
+ <a href="#" data-action="start_tour">Start tour</a>
+ </li>
+ </t>
</t>
</t>
+<t t-name="WebClient.DebugManager.ToursDialog">
+ <div>
+ <table class="table table-condensed table-striped table-responsive">
+ <tr>
+ <th>Name</th>
+ <th>Path</th>
+ <th/>
+ </tr>
+
+ <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-sm btn-primary fa fa-play o_start_tour" t-att-data-name="tour"/></td>
+ </tr>
+ </table>
+ </div>
+</t>
+
</templates>