summaryrefslogtreecommitdiff
path: root/addons/utm/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/utm/static
parent0a15094050bfde69a06d6eff798e9a8ddf2b8c21 (diff)
initial commit 2
Diffstat (limited to 'addons/utm/static')
-rw-r--r--addons/utm/static/description/icon.pngbin0 -> 9224 bytes
-rw-r--r--addons/utm/static/description/icon.svg1
-rw-r--r--addons/utm/static/src/js/utm_campaign_kanban_examples.js34
-rw-r--r--addons/utm/static/src/scss/utm_views.scss27
4 files changed, 62 insertions, 0 deletions
diff --git a/addons/utm/static/description/icon.png b/addons/utm/static/description/icon.png
new file mode 100644
index 00000000..1c7fe494
--- /dev/null
+++ b/addons/utm/static/description/icon.png
Binary files differ
diff --git a/addons/utm/static/description/icon.svg b/addons/utm/static/description/icon.svg
new file mode 100644
index 00000000..78a17762
--- /dev/null
+++ b/addons/utm/static/description/icon.svg
@@ -0,0 +1 @@
+<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="a" d="M4 0h61c4 0 5 1 5 5v60c0 4-1 5-5 5H4c-3 0-4-1-4-5V5c0-4 1-5 4-5z"/><linearGradient id="c" x1="100%" x2="0%" y1="0%" y2="98.616%"><stop offset="0%" stop-color="#797C79"/><stop offset="100%" stop-color="#545554"/></linearGradient><path id="d" d="M39.922 32.578c4.376 4.381 4.316 11.404.026 15.717a.908.908 0 0 1-.026.028L35 53.244c-4.341 4.341-11.404 4.34-15.744 0-4.341-4.34-4.341-11.403 0-15.744l2.718-2.717c.72-.721 1.961-.242 1.999.776.047 1.298.28 2.602.71 3.862.145.426.04.898-.278 1.216l-.958.959c-2.053 2.053-2.117 5.395-.085 7.468a5.28 5.28 0 0 0 7.495.037l4.921-4.921a5.272 5.272 0 0 0-.757-8.086 1.175 1.175 0 0 1-.509-.923 2.917 2.917 0 0 1 .857-2.183l1.542-1.542a1.177 1.177 0 0 1 1.508-.127c.537.375 1.04.796 1.503 1.26zm10.322-10.322c-4.34-4.34-11.403-4.341-15.744 0l-4.922 4.921a.908.908 0 0 0-.026.028c-4.29 4.313-4.35 11.336.026 15.717.463.463.966.884 1.503 1.259a1.177 1.177 0 0 0 1.508-.127l1.542-1.542c.611-.611.886-1.409.857-2.183a1.175 1.175 0 0 0-.51-.923 5.272 5.272 0 0 1-.757-8.086l4.922-4.921a5.28 5.28 0 0 1 7.495.037c2.032 2.073 1.968 5.415-.085 7.468l-.958.958c-.319.319-.423.79-.277 1.217.43 1.26.662 2.564.71 3.862.037 1.018 1.278 1.497 1.998.776L50.244 38c4.341-4.34 4.341-11.404 0-15.744z"/><path id="e" d="M39.922 30.578c4.376 4.381 4.316 11.404.026 15.717a.908.908 0 0 1-.026.028L35 51.244c-4.341 4.341-11.404 4.34-15.744 0-4.341-4.34-4.341-11.403 0-15.744l2.718-2.717c.72-.721 1.961-.242 1.999.776.047 1.298.28 2.602.71 3.862.145.426.04.898-.278 1.216l-.958.959c-2.053 2.053-2.117 5.395-.085 7.468a5.28 5.28 0 0 0 7.495.037l4.921-4.921a5.272 5.272 0 0 0-.757-8.086 1.175 1.175 0 0 1-.509-.923 2.917 2.917 0 0 1 .857-2.183l1.542-1.542a1.177 1.177 0 0 1 1.508-.127c.537.375 1.04.796 1.503 1.26zm10.322-10.322c-4.34-4.34-11.403-4.341-15.744 0l-4.922 4.921a.908.908 0 0 0-.026.028c-4.29 4.313-4.35 11.336.026 15.717.463.463.966.884 1.503 1.259a1.177 1.177 0 0 0 1.508-.127l1.542-1.542c.611-.611.886-1.409.857-2.183a1.175 1.175 0 0 0-.51-.923 5.272 5.272 0 0 1-.757-8.086l4.922-4.921a5.28 5.28 0 0 1 7.495.037c2.032 2.073 1.968 5.415-.085 7.468l-.958.958c-.319.319-.423.79-.277 1.217.43 1.26.662 2.564.71 3.862.037 1.018 1.278 1.497 1.998.776L50.244 36c4.341-4.34 4.341-11.404 0-15.744z"/></defs><g fill="none" fill-rule="evenodd"><mask id="b" fill="#fff"><use xlink:href="#a"/></mask><g mask="url(#b)"><path fill="url(#c)" d="M0 0H70V70H0z"/><path fill="#FFF" fill-opacity=".383" d="M4 1h61c2.667 0 4.333.667 5 2V0H0v3c.667-1.333 2-2 4-2z"/><path fill="#393939" d="M34.664 69H4c-2 0-4-1-4-4V39.037L18.936 20.71 25 18l18 17-.457 1.673L46 33l6 16-17.336 20z" opacity=".324"/><path fill="#000" fill-opacity=".383" d="M4 69h61c2.667 0 4.333-1 5-3v4H0v-4c.667 2 2 3 4 3z"/><use fill="#000" fill-rule="nonzero" opacity=".3" transform="matrix(-1 0 0 1 69.5 0)" xlink:href="#d"/><use fill="#FFF" fill-rule="nonzero" transform="matrix(-1 0 0 1 69.5 0)" xlink:href="#e"/></g></g></svg> \ No newline at end of file
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;
+ }
+ }
+}