6 openerp.Tour.register({
8 name: _t("Create an event"),
11 title: _t("Create an Event"),
12 content: _t("Let's go through the first steps to publish a new event."),
13 popover: { next: _t("Start Tutorial"), end: _t("Skip It") },
16 element: '#content-menu-button',
18 title: _t("Add Content"),
19 content: _t("The <em>Content</em> menu allows you to create new pages, events, menus, etc."),
20 popover: { fixed: true },
23 element: 'a[data-action=new_event]',
25 title: _t("New Event"),
26 content: _t("Click here to create a new event."),
27 popover: { fixed: true },
30 element: '.modal #editor_new_event input[type=text]',
31 sampleText: 'Advanced Technical Training',
33 title: _t("Create an Event Name"),
34 content: _t("Create a name for your new event and click <em>'Continue'</em>. e.g: Technical Training"),
37 waitNot: '.modal input[type=text]:not([value!=""])',
38 element: '.modal button.btn-primary',
40 title: _t("Create Event"),
41 content: _t("Click <em>Continue</em> to create the event."),
44 waitFor: 'body:has(button[data-action=save]:visible):has(.js_event)',
45 title: _t("New Event Created"),
46 content: _t("This is your new event page. We will edit the event presentation page."),
47 popover: { next: _t("Continue") },
50 element: 'button[data-action=snippet]',
52 title: _t("Layout your event"),
53 content: _t("Insert blocks to layout the body of your event."),
54 popover: { fixed: true },
57 snippet: '#snippet_structure .oe_snippet:eq(2)',
59 title: _t("Drag & Drop a block"),
60 content: _t("Drag the 'Image-Text' block and drop it in your page."),
61 popover: { fixed: true },
65 element: 'button[data-action=snippet]',
67 title: _t("Layout your event"),
68 content: _t("Insert another block to your event."),
69 popover: { fixed: true },
72 snippet: '#snippet_structure .oe_snippet:eq(4)',
74 title: _t("Drag & Drop a block"),
75 content: _t("Drag the 'Text Block' in your event page."),
76 popover: { fixed: true },
79 element: 'button[data-action=save]',
81 title: _t("Save your modifications"),
82 content: _t("Once you click on save, your event is updated."),
83 popover: { fixed: true },
86 waitFor: 'button[data-action=edit]:visible',
87 element: 'button.btn-danger.js_publish_btn',
89 title: _t("Publish your event"),
90 content: _t("Click to publish your event."),
93 waitFor: '.js_publish_management button.js_publish_btn.btn-success:visible',
94 element: '.js_publish_management button[data-toggle="dropdown"]',
96 title: _t("Customize your event"),
97 content: _t("Click here to customize your event further."),
100 element: '.js_publish_management ul>li>a:last:visible',