[IMP] website(_*): tours

* Adapt modals for new pages/product/... to leave some space for tour
tips on the right
* Remove the "click on add page" step which was the start of each tours
and leave it to be the last of the website tour
* Change position of some tips
* Remove step "click on parent button" in website tour as it is not
necessary anymore
* Remove the possibility to skip the frontend tours
This commit is contained in:
qsm-odoo
2016-07-05 18:05:24 +02:00
parent b0a25e5b0e
commit 3247400291
6 changed files with 12 additions and 37 deletions
@@ -115,8 +115,7 @@ odoo.define("website.tour.banner", function (require) {
});
tour.register("banner", {
skip_enabled: true,
url: "/page/homepage?debug=assets",
url: "/",
}, [{
trigger: "a[data-action=edit]",
content: _t("Every page of your website can be modified through the <b>Edit</b> button."),
@@ -132,15 +131,11 @@ odoo.define("website.tour.banner", function (require) {
content: _t("Click in the title text and start editing it."),
position: "left",
run: "text",
}, {
trigger: ".oe_snippet_parent",
extra_trigger: "#wrapwrap .s_text_block_image_fw h2:not(:containsExact(\"Headline\"))",
content: _t("Select the parent container to get the global options of the banner."),
position: "left",
}, {
trigger: ".oe_overlay_options .oe_options",
extra_trigger: "#wrapwrap .s_text_block_image_fw h2:not(:containsExact(\"Headline\"))",
content: _t("Customize any block through this menu. Try to change the background of the banner."),
position: "right",
position: "bottom",
}, {
trigger: "#snippet_structure .oe_snippet:eq(6) .oe_snippet_thumbnail",
content: _t("Drag the \"Features\" block and drop it below the banner."),
+1 -1
View File
@@ -21,7 +21,7 @@
<label for="page-name" class="col-sm-3 control-label">
<t t-esc="field_name"/>:
</label>
<div class="col-sm-9">
<div class="col-sm-8">
<input t-if="field_type == 'input'" type="text" class="form-control" required="required"/>
<textarea t-if="field_type == 'textarea'" class="form-control" required="required" rows="5"></textarea>
<select t-if="field_type == 'select'" class="form-control"></select>
@@ -129,16 +129,11 @@ odoo.define("website_blog.tour", function (require) {
});
tour.register("blog", {
skip_enabled: true,
url: "/blog",
url: "/",
}, [{
trigger: "#oe_main_menu_navbar a[data-action=new_page]",
content: _t("Use this button to create a new blog post like any other document (page, menu, products, event, ...)."),
position: "bottom",
}, {
trigger: "a[data-action=new_blog_post]",
content: _t("Select this menu item to create a new blog post."),
position: "left",
position: "bottom",
}, {
trigger: "h1[data-oe-expression=\"blog_post.name\"]",
content: _t("Write a title, the subtitle is optional."),
@@ -88,16 +88,11 @@ odoo.define("website_event.tour", function (require) {
});
tour.register("event", {
skip_enabled: true,
url: "/event",
url: "/",
}, [{
trigger: "#oe_main_menu_navbar a[data-action=new_page]",
content: _t("This button allows you to create new pages, events, menus, etc."),
position: "bottom",
}, {
trigger: "a[data-action=new_event]",
content: _t("Click here to create a new event."),
position: "left",
position: "bottom",
}, {
trigger: ".modal-dialog #editor_new_event input[type=text]",
content: _t("Create a name for your new event and click <em>\"Continue\"</em>. e.g: Technical Training"),
@@ -130,16 +130,11 @@ odoo.define("website_forum.tour_forum", function (require) {
});
tour.register("question", {
skip_enabled: true,
url: "/forum",
url: "/",
}, [{
trigger: "#oe_main_menu_navbar a[data-action=new_page]",
content: _t("Use this button to create a new forum like any other document (page, menu, products, event, ...)."),
position: "bottom",
}, {
trigger: "a[data-action=new_forum]",
content: _t("Select this menu item to create a new forum."),
position: "left",
position: "bottom",
}, {
trigger: "#editor_new_forum input[type=text]",
content: _t("Enter a name for your new forum."),
@@ -116,16 +116,11 @@ odoo.define("website_sale.tour_shop", function (require) {
});
tour.register("shop", {
skip_enabled: true,
url: "/shop",
url: "/",
}, [{
trigger: "#oe_main_menu_navbar a[data-action=new_page]",
content: _t("You successfully installed the e-commerce.<br/>Click here to add a new product."),
position: "bottom",
}, {
trigger: "a[data-action=new_product]",
content: _t("Select <b>New Product</b> to create it and manage its properties to boost your sales."),
position: "left",
position: "bottom",
}, {
trigger: ".modal-dialog #editor_new_product input[type=text]",
content: _t("Enter a name for your new product"),