summaryrefslogtreecommitdiff
path: root/addons/utm/static/src
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/utm/static/src
parent0a15094050bfde69a06d6eff798e9a8ddf2b8c21 (diff)
initial commit 2
Diffstat (limited to 'addons/utm/static/src')
-rw-r--r--addons/utm/static/src/js/utm_campaign_kanban_examples.js34
-rw-r--r--addons/utm/static/src/scss/utm_views.scss27
2 files changed, 61 insertions, 0 deletions
diff --git a/addons/utm/static/src/js/utm_campaign_kanban_examples.js b/addons/utm/static/src/js/utm_campaign_kanban_examples.js
new file mode 100644
index 00000000..a18e740a
--- /dev/null
+++ b/addons/utm/static/src/js/utm_campaign_kanban_examples.js
@@ -0,0 +1,34 @@
+odoo.define('utm.campaing_kanban_examples', function (require) {
+'use strict';
+
+var core = require('web.core');
+var kanbanExamplesRegistry = require('web.kanban_examples_registry');
+
+var _lt = core._lt;
+
+kanbanExamplesRegistry.add('utm_campaign', {
+ ghostColumns: [_lt('Ideas'), _lt('Design'), _lt('Review'), _lt('Send'), _lt('Done')],
+ applyExamplesText: _lt("Use This For My Campaigns"),
+ examples: [{
+ name: _lt('Creative Flow'),
+ columns: [_lt('Ideas'), _lt('Design'), _lt('Review'), _lt('Send'), _lt('Done')],
+ description: _lt("Collect ideas, design creative content and publish it once reviewed."),
+ }, {
+ name: _lt('Event-driven Flow'),
+ columns: [_lt('Later'), _lt('This Month'), _lt('This Week'), _lt('Running'), _lt('Sent')],
+ description: _lt("Track incoming events (e.g. : Christmas, Black Friday, ...) and publish timely content."),
+ }, {
+ name: _lt('Soft-Launch Flow'),
+ columns: [_lt('Pre-Launch'), _lt('Soft-Launch'), _lt('Deploy'), _lt('Report'), _lt('Done')],
+ description: _lt("Prepare your Campaign, test it with part of your audience and deploy it fully afterwards."),
+ }, {
+ name: _lt('Audience-driven Flow'),
+ columns: [_lt('Gather Data'), _lt('List-Building'), _lt('Copywriting'), _lt('Sent')],
+ description: _lt("Gather data, build a recipient list and write content based on your Marketing target."),
+ }, {
+ name: _lt('Approval-based Flow'),
+ columns: [_lt('To be Approved'), _lt('Approved'), _lt('Deployed')],
+ description: _lt("Prepare Campaigns and get them approved before making them go live."),
+ }],
+});
+});
diff --git a/addons/utm/static/src/scss/utm_views.scss b/addons/utm/static/src/scss/utm_views.scss
new file mode 100644
index 00000000..25c537c8
--- /dev/null
+++ b/addons/utm/static/src/scss/utm_views.scss
@@ -0,0 +1,27 @@
+.o_kanban_view.o_utm_kanban {
+ .o_kanban_group {
+ padding: 0 ($grid-gutter-width * .25) $grid-gutter-width;
+
+ &:not(.o_column_folded) {
+ width: 380px;
+ }
+ }
+
+ #o_utm_actions {
+ margin: 0 ($o-kanban-dashboard-hpadding * -.5);
+
+ > a {
+ border-color: rgba($border-color, .5);
+ padding: ($o-kanban-dashboard-hpadding * .25) ($o-kanban-dashboard-hpadding * .5);
+ white-space: nowrap;
+ }
+
+ > :first-child {
+ border-left: 0;
+ }
+
+ > :last-child {
+ border-right: 0;
+ }
+ }
+}