[IMP] Website builder tour (first steps)

bzr revid: ddm@openerp.com-20131114161740-ymggmzdwwyacz60f
This commit is contained in:
ddm 2013-11-14 17:17:40 +01:00
parent 0d2bf3b02e
commit bf5fcc7b13
2 changed files with 20 additions and 2 deletions

View File

@ -13,13 +13,31 @@
var $body = $(document.body);
self.steps = [
{
stepId: 'welcome',
stepId: 'welcome-builder',
orphan: true,
backdrop: true,
title: "Website builder",
content: "We will guide you to build your website content, editing or add a new menu and install an app.",
template: render('website.tour_popover', { next: "Start Tutorial", end: "Skip It" }),
},
{
stepId: 'content-menu',
element: '#content-menu-button',
placement: 'left',
reflex: true,
title: "Edit the content",
content: "Click here to edit the menu.",
template: render('website.tour_popover'),
},
{
stepId: 'add-menu-entry',
element: 'a[data-action=edit-structure]',
placement: 'left',
reflex: true,
title: "Add a new menu entry",
content: "Click here to create a new menu entry and manage options.",
template: render('website.tour_popover'),
},
];
return this._super();
},

View File

@ -23,7 +23,7 @@
<li class="divider-vertical"></li>
<li><a data-action="promote-current-page" href="#"><span title="Promote page on the web">Promote</span></a></li>
<li class="dropdown js_hide_on_translate">
<a class="dropdown-toggle" data-toggle="dropdown" href="#">Content <span class="caret"></span></a>
<a id="content-menu-button" class="dropdown-toggle" data-toggle="dropdown" href="#">Content <span class="caret"></span></a>
<ul class="dropdown-menu oe_content_menu" role="menu">
<li><a data-action="edit-structure" href="#"><span title="Edit Top Menu">Edit Menu</span></a></li>
<li class="divider"> </li>