From 3751379f1e9a4c215fb6eb898b4ccc67659b9ace Mon Sep 17 00:00:00 2001 From: stephanchrst Date: Tue, 10 May 2022 21:51:50 +0700 Subject: initial commit 2 --- .../static/src/js/utm_campaign_kanban_examples.js | 34 ++++++++++++++++++++++ addons/utm/static/src/scss/utm_views.scss | 27 +++++++++++++++++ 2 files changed, 61 insertions(+) create mode 100644 addons/utm/static/src/js/utm_campaign_kanban_examples.js create mode 100644 addons/utm/static/src/scss/utm_views.scss (limited to 'addons/utm/static/src') 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; + } + } +} -- cgit v1.2.3