summaryrefslogtreecommitdiff
path: root/addons/event/static
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2022-05-10 21:51:50 +0700
committerstephanchrst <stephanchrst@gmail.com>2022-05-10 21:51:50 +0700
commit3751379f1e9a4c215fb6eb898b4ccc67659b9ace (patch)
treea44932296ef4a9b71d5f010906253d8c53727726 /addons/event/static
parent0a15094050bfde69a06d6eff798e9a8ddf2b8c21 (diff)
initial commit 2
Diffstat (limited to 'addons/event/static')
-rw-r--r--addons/event/static/description/icon.pngbin0 -> 6988 bytes
-rw-r--r--addons/event/static/description/icon.svg24
-rw-r--r--addons/event/static/src/img/partner_bloem.pngbin0 -> 11613 bytes
-rw-r--r--addons/event/static/src/img/partner_open_wood.pngbin0 -> 4724 bytes
-rw-r--r--addons/event/static/src/img/partner_pterocarpus.pngbin0 -> 3476 bytes
-rw-r--r--addons/event/static/src/img/partner_tree_dealers.pngbin0 -> 10312 bytes
-rw-r--r--addons/event/static/src/js/tours/event_tour.js87
-rw-r--r--addons/event/static/src/scss/event.scss26
8 files changed, 137 insertions, 0 deletions
diff --git a/addons/event/static/description/icon.png b/addons/event/static/description/icon.png
new file mode 100644
index 00000000..00e02fdd
--- /dev/null
+++ b/addons/event/static/description/icon.png
Binary files differ
diff --git a/addons/event/static/description/icon.svg b/addons/event/static/description/icon.svg
new file mode 100644
index 00000000..35dc50c8
--- /dev/null
+++ b/addons/event/static/description/icon.svg
@@ -0,0 +1,24 @@
+<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="70" height="70" viewBox="0 0 70 70">
+ <defs>
+ <path id="icon-a" d="M4,5.35309892e-14 C36.4160122,9.87060235e-15 58.0836068,-3.97961823e-14 65,5.07020818e-14 C69,6.733808e-14 70,1 70,5 C70,43.0488877 70,62.4235458 70,65 C70,69 69,70 65,70 C61,70 9,70 4,70 C1,70 7.10542736e-15,69 7.10542736e-15,65 C7.25721566e-15,62.4676575 3.83358709e-14,41.8005206 3.60818146e-14,5 C-1.13686838e-13,1 1,5.75716207e-14 4,5.35309892e-14 Z"/>
+ <linearGradient id="icon-c" x1="100%" x2="0%" y1="0%" y2="100%">
+ <stop offset="0%" stop-color="#269396"/>
+ <stop offset="100%" stop-color="#218689"/>
+ </linearGradient>
+ <path id="icon-d" d="M24.4715571,29.3561696 L47.6197052,29.3561696 L47.6197052,43.4186696 L24.4715571,43.4186696 L24.4715571,29.3561696 Z M53.4067423,36.3874196 C53.4067423,38.32907 54.9612851,39.9030446 56.8789645,39.9030446 L56.8789645,46.9342946 C56.8789645,48.875945 55.3244217,50.4499196 53.4067423,50.4499196 L18.6845201,50.4499196 C16.7668407,50.4499196 15.2122978,48.875945 15.2122978,46.9342946 L15.2122978,39.9030446 C17.1299772,39.9030446 18.6845201,38.32907 18.6845201,36.3874196 C18.6845201,34.4457692 17.1299772,32.8717946 15.2122978,32.8717946 L15.2122978,25.8405446 C15.2122978,23.8988942 16.7668407,22.3249196 18.6845201,22.3249196 L53.4067423,22.3249196 C55.3244217,22.3249196 56.8789645,23.8988942 56.8789645,25.8405446 L56.8789645,32.8717946 C54.9612851,32.8717946 53.4067423,34.4457692 53.4067423,36.3874196 Z M49.9345201,28.7702321 C49.9345201,27.7994069 49.1572486,27.0124196 48.1984089,27.0124196 L23.8928534,27.0124196 C22.9340137,27.0124196 22.1567423,27.7994069 22.1567423,28.7702321 L22.1567423,44.0046071 C22.1567423,44.9754323 22.9340137,45.7624196 23.8928534,45.7624196 L48.1984089,45.7624196 C49.1572486,45.7624196 49.9345201,44.9754323 49.9345201,44.0046071 L49.9345201,28.7702321 Z"/>
+ <path id="icon-e" d="M24.4715571,27.3561696 L47.6197052,27.3561696 L47.6197052,41.4186696 L24.4715571,41.4186696 L24.4715571,27.3561696 Z M53.4067423,34.3874196 C53.4067423,36.32907 54.9612851,37.9030446 56.8789645,37.9030446 L56.8789645,44.9342946 C56.8789645,46.875945 55.3244217,48.4499196 53.4067423,48.4499196 L18.6845201,48.4499196 C16.7668407,48.4499196 15.2122978,46.875945 15.2122978,44.9342946 L15.2122978,37.9030446 C17.1299772,37.9030446 18.6845201,36.32907 18.6845201,34.3874196 C18.6845201,32.4457692 17.1299772,30.8717946 15.2122978,30.8717946 L15.2122978,23.8405446 C15.2122978,21.8988942 16.7668407,20.3249196 18.6845201,20.3249196 L53.4067423,20.3249196 C55.3244217,20.3249196 56.8789645,21.8988942 56.8789645,23.8405446 L56.8789645,30.8717946 C54.9612851,30.8717946 53.4067423,32.4457692 53.4067423,34.3874196 Z M49.9345201,26.7702321 C49.9345201,25.7994069 49.1572486,25.0124196 48.1984089,25.0124196 L23.8928534,25.0124196 C22.9340137,25.0124196 22.1567423,25.7994069 22.1567423,26.7702321 L22.1567423,42.0046071 C22.1567423,42.9754323 22.9340137,43.7624196 23.8928534,43.7624196 L48.1984089,43.7624196 C49.1572486,43.7624196 49.9345201,42.9754323 49.9345201,42.0046071 L49.9345201,26.7702321 Z"/>
+ </defs>
+ <g fill="none" fill-rule="evenodd">
+ <mask id="icon-b" fill="#fff">
+ <use xlink:href="#icon-a"/>
+ </mask>
+ <g mask="url(#icon-b)">
+ <rect width="70" height="70" fill="url(#icon-c)"/>
+ <path fill="#FFF" fill-opacity=".383" d="M4,1.8 L65,1.8 C67.6666667,1.8 69.3333333,1.13333333 70,-0.2 C70,2.46666667 70,3.46666667 70,2.8 L1.10547097e-14,2.8 C-1.65952376e-14,3.46666667 -2.9161925e-14,2.46666667 -2.66453526e-14,-0.2 C0.666666667,1.13333333 2,1.8 4,1.8 Z" transform="matrix(1 0 0 -1 0 2.8)"/>
+ <path fill="#393939" d="M35,58 L4,58 C2,58 -7.10542736e-15,57.8520408 0,53.8571429 L2.0734159e-16,30.9596526 L29,0 L37,8.28571429 L58,29 L35,58 Z" opacity=".324" transform="translate(0 12)"/>
+ <path fill="#000" fill-opacity=".383" d="M4,4 L65,4 C67.6666667,4 69.3333333,3 70,1 C70,3.66666667 70,5 70,5 L1.77635684e-15,5 C1.77635684e-15,5 1.77635684e-15,3.66666667 1.77635684e-15,1 C0.666666667,3 2,4 4,4 Z" transform="translate(0 65)"/>
+ <use fill="#000" fill-rule="nonzero" opacity=".3" transform="rotate(45 36.046 36.387)" xlink:href="#icon-d"/>
+ <use fill="#FFF" fill-rule="nonzero" transform="rotate(45 36.046 34.387)" xlink:href="#icon-e"/>
+ </g>
+ </g>
+</svg>
diff --git a/addons/event/static/src/img/partner_bloem.png b/addons/event/static/src/img/partner_bloem.png
new file mode 100644
index 00000000..f7943c18
--- /dev/null
+++ b/addons/event/static/src/img/partner_bloem.png
Binary files differ
diff --git a/addons/event/static/src/img/partner_open_wood.png b/addons/event/static/src/img/partner_open_wood.png
new file mode 100644
index 00000000..3606b8d6
--- /dev/null
+++ b/addons/event/static/src/img/partner_open_wood.png
Binary files differ
diff --git a/addons/event/static/src/img/partner_pterocarpus.png b/addons/event/static/src/img/partner_pterocarpus.png
new file mode 100644
index 00000000..49275350
--- /dev/null
+++ b/addons/event/static/src/img/partner_pterocarpus.png
Binary files differ
diff --git a/addons/event/static/src/img/partner_tree_dealers.png b/addons/event/static/src/img/partner_tree_dealers.png
new file mode 100644
index 00000000..d82bf702
--- /dev/null
+++ b/addons/event/static/src/img/partner_tree_dealers.png
Binary files differ
diff --git a/addons/event/static/src/js/tours/event_tour.js b/addons/event/static/src/js/tours/event_tour.js
new file mode 100644
index 00000000..c1f3c834
--- /dev/null
+++ b/addons/event/static/src/js/tours/event_tour.js
@@ -0,0 +1,87 @@
+odoo.define('event.event_steps', function (require) {
+"use strict";
+
+var core = require('web.core');
+
+var EventAdditionalTourSteps = core.Class.extend({
+
+ _get_website_event_steps: function () {
+ return [false];
+ },
+
+});
+
+return EventAdditionalTourSteps;
+
+});
+
+odoo.define('event.event_tour', function (require) {
+"use strict";
+
+var core = require('web.core');
+var _t = core._t;
+
+var tour = require('web_tour.tour');
+var EventAdditionalTourSteps = require('event.event_steps');
+
+tour.register('event_tour', {
+ url: '/web',
+ rainbowManMessage: _t("Great! Now all you have to do is wait for your attendees to show up!"),
+ sequence: 210,
+}, [tour.stepUtils.showAppsMenuItem(), {
+ trigger: '.o_app[data-menu-xmlid="event.event_main_menu"]',
+ content: _t("Ready to <b>organize events</b> in a few minutes? Let's get started!"),
+ position: 'bottom',
+ edition: 'enterprise',
+}, {
+ trigger: '.o_app[data-menu-xmlid="event.event_main_menu"]',
+ content: _t("Ready to <b>organize events</b> in a few minutes? Let's get started!"),
+ edition: 'community',
+}, {
+ trigger: '.o-kanban-button-new',
+ extra_trigger: '.o_event_kanban_view',
+ content: _t("Let's create your first <b>event</b>."),
+ position: 'bottom',
+ width: 175,
+}, {
+ trigger: '.o_event_form_view input[name="name"]',
+ content: _t("This is the <b>name</b> your guests will see when registering."),
+ run: 'text Odoo Experience 2020',
+}, {
+ trigger: '.o_event_form_view input[name="date_end"]',
+ content: _t("When will your event take place? <b>Select</b> the start and end dates <b>and click Apply</b>."),
+ run: function () {
+ $('input[name="date_begin"]').val('09/30/2020 08:00:00').change();
+ $('input[name="date_end"]').val('10/02/2020 23:00:00').change();
+ },
+}, {
+ trigger: '.o_event_form_view div[name="event_ticket_ids"] .o_field_x2many_list_row_add a',
+ content: _t("Ticket types allow you to distinguish your attendees. Let's <b>create</b> a new one."),
+}, ...new EventAdditionalTourSteps()._get_website_event_steps(), {
+ trigger: '.o_event_form_view div[name="stage_id"]',
+ extra_trigger: 'div.o_form_buttons_view:not(.o_hidden)',
+ content: _t("Now that your event is ready, click here to move it to another stage."),
+ position: 'bottom',
+}, {
+ trigger: 'ol.breadcrumb li.breadcrumb-item:first',
+ extra_trigger: '.o_event_form_view div[name="stage_id"]',
+ content: _t("Use the <b>breadcrumbs</b> to go back to your kanban overview."),
+ position: 'bottom',
+ run: 'click',
+}, {
+ trigger: '.o_event_kanban_view div.o_quick_create_folded',
+ content: _t("This pipeline can be customized on the fly to fit your organizational needs. For example, let's create a new stage."),
+ position: 'bottom',
+ run: function (actions) {
+ actions.click();
+ $('div.o_kanban_header input[type="text"]').val('New Stage');
+ },
+}, {
+ trigger: '.o_event_kanban_view button.o_kanban_add',
+ content: _t("Click <b>add</b> to create a new stage."),
+ position: 'bottom',
+ width: 200,
+ run: 'click',
+}].filter(Boolean));
+
+});
diff --git a/addons/event/static/src/scss/event.scss b/addons/event/static/src/scss/event.scss
new file mode 100644
index 00000000..ec8ff7be
--- /dev/null
+++ b/addons/event/static/src/scss/event.scss
@@ -0,0 +1,26 @@
+.o_kanban_view.o_event_kanban_view {
+ .o_kanban_record {
+ min-height: 140px;
+ }
+ .o_kanban_content {
+ .o_event_fontsize_09 {
+ font-size: .9rem;
+ }
+
+ .o_event_fontsize_11 {
+ font-size: 1.1rem;
+ }
+
+ .o_event_fontsize_20 {
+ font-size: 2rem;
+ }
+ }
+}
+
+.o_kanban_view.o_event_attendee_kanban_view {
+ @media (max-width: 768px) {
+ .o_event_registration_kanban {
+ min-height: 80px;
+ }
+ }
+}