4 var website = openerp.website;
6 website.EditorBar.include({
8 this.registerTour(new website.EventTour(this));
13 website.EventTour = website.Tour.extend({
15 name: "Create an event",
16 init: function (editor) {
20 stepId: 'welcome-event',
21 title: "Create an Event",
22 content: "Let's go through the firsts step to publish a new event.",
23 template: self.popover({ next: "Start Tutorial", end: "Skip It" }),
27 stepId: 'content-menu',
28 element: '#content-menu-button',
31 content: "The <em>Content</em> menu allows to create new pages, events, menus, etc.",
35 stepId: 'new-post-entry',
36 element: 'a[data-action=new_event]',
39 content: "Click here to create a new event.",
43 afterSubmit: 'event-page',
48 stepId: 'choose-name',
49 element: '.modal input',
51 title: "Choose an Event Name",
52 content: "Choose a name for your new event and click <em>'Continue'</em>. e.g: Technical Training",
56 title: "New Event Created",
57 content: "This is your new event page. We will edit the event presentation page.",
58 template: self.popover({ next: "OK" }),
61 stepId: 'event-price',
62 element: '[data-oe-field=price]',
64 title: "Ticket price",
65 content: "Edit your ticket price.",
66 template: self.popover({ next: "OK" }),
70 element: 'button[data-action=snippet]',
72 title: "Layout your event",
73 content: "Insert blocks like 'Banner' to layout the body of your event.",
77 stepId: 'drag-banner',
80 title: "Drag & Drop a block",
81 content: "Drag the 'Banner' block and drop it in your page.",
85 stepId: 'add-text-block',
86 element: 'button[data-action=snippet]',
88 title: "Layout your event",
89 content: "Insert another block to your event.",
93 stepId: 'drag-text-block',
96 title: "Drag & Drop a block",
97 content: "Drag the 'Text Block' block below the banner.",
101 stepId: 'add-three-columns',
102 element: 'button[data-action=snippet]',
104 title: "Layout your event",
105 content: "Insert a last block to your event.",
109 stepId: 'drag-three-columns',
110 snippet: 'three-columns',
112 title: "Drag & Drop a block",
113 content: "Drag the 'Three Columns' block at the bottom.",
117 stepId: 'save-changes',
118 element: 'button[data-action=save]',
120 title: "Save your modifications",
121 content: "Once you click on save, your event is updated.",
125 stepId: 'publish-event',
126 element: 'button.js_publish_btn',
128 title: "Publish your event",
129 content: "Click to publish your event.",
133 stepId: 'customize-event',
134 element: '.js_publish_management button:last',
136 title: "Customize your event",
137 content: "Click here to customize your event further.",
141 stepId: 'edit-event-backend',
142 element: '.js_publish_management ul>li>a',
144 title: "Customize your event",
145 content: "Click here to edit your event in the backend.",
149 return this._super();
151 trigger: function () {
152 return (this.resume() && this.testUrl(/^\/event\/[0-9]+\/register/)) || this._super();