diff --git a/addons/website_mail/__openerp__.py b/addons/website_mail/__openerp__.py index 400411ed329..74fe86c6193 100644 --- a/addons/website_mail/__openerp__.py +++ b/addons/website_mail/__openerp__.py @@ -26,7 +26,7 @@ 'version': '0.1', 'description': """Glue module holding mail improvements for website.""", 'author': 'OpenERP SA', - 'depends': ['website', 'mail'], + 'depends': ['website', 'mail', 'email_template'], 'data': [ 'views/snippets.xml', 'views/website_mail.xml', diff --git a/addons/website_mail/models/email_template.py b/addons/website_mail/models/email_template.py index aed01c179f7..6d84f91e5ab 100644 --- a/addons/website_mail/models/email_template.py +++ b/addons/website_mail/models/email_template.py @@ -30,7 +30,7 @@ class EmailTemplate(osv.Model): _inherit = 'email.template' def _get_website_link(self, cr, uid, ids, name, args, context=None): - return dict((id, _('Edit in Website') % id) for id in ids) + return dict((id, _('Open with visual editor') % id) for id in ids) _columns = { 'website_link': fields.function( diff --git a/addons/website_mail/static/src/img/blocks/block_three_columns.png b/addons/website_mail/static/src/img/blocks/block_three_columns.png new file mode 100644 index 00000000000..dd50e0336d3 Binary files /dev/null and b/addons/website_mail/static/src/img/blocks/block_three_columns.png differ diff --git a/addons/website_mail/static/src/img/blocks/block_two_columns.png b/addons/website_mail/static/src/img/blocks/block_two_columns.png new file mode 100644 index 00000000000..55a3f0c1c99 Binary files /dev/null and b/addons/website_mail/static/src/img/blocks/block_two_columns.png differ diff --git a/addons/website_mail/views/email_template_view.xml b/addons/website_mail/views/email_template_view.xml index 3206eaeaee6..bb346af5e97 100644 --- a/addons/website_mail/views/email_template_view.xml +++ b/addons/website_mail/views/email_template_view.xml @@ -6,8 +6,10 @@ email.template - - + +
+
diff --git a/addons/website_mail/views/snippets.xml b/addons/website_mail/views/snippets.xml index 0ec93296ddd..35932f6f7c3 100644 --- a/addons/website_mail/views/snippets.xml +++ b/addons/website_mail/views/snippets.xml @@ -5,14 +5,62 @@
-
+
+ + +
+
+ + Text Block +
+
+ + + + + + + + + +
+

+ A Great Headline +

+

+ A good subtitle +

+
+
+

+ A great way to catch your reader's attention is to tell a story. + Everything you consider writing can be told as a story. +

+

+ Great stories have personality. Consider telling + a great story that provides personality. Writing a story + with personality for potential clients will asist with + making a relationship connection. This shows up in small + quirks like word choices or phrases. Write from your point + of view, not from someone else's experience. +

+

+ Great stories are for everyone even when only written for + just one person. If you try to write with a wide general + audience in mind, your story will ring false and be bland. + No one will be interested. Write for one person. If it’s genuine + for the one, it’s genuine for the rest. +

+ +
+
+
+
@@ -97,125 +145,34 @@
-
+
- - Big Message -
-
- - - - - - -
-
-

Sell Online. Easily.

-

- Write one sentence to convince visitor about your message. -

-
-
-
-
- - -
-
- - Text Block -
-
- - - - - - - - - -
-

- A Great Headline -

-

- A good subtitle -

-
-
-

- A great way to catch your reader's attention is to tell a story. - Everything you consider writing can be told as a story. -

-

- Great stories have personality. Consider telling - a great story that provides personality. Writing a story - with personality for potential clients will asist with - making a relationship connection. This shows up in small - quirks like word choices or phrases. Write from your point - of view, not from someone else's experience. -

-

- Great stories are for everyone even when only written for - just one person. If you try to write with a wide general - audience in mind, your story will ring false and be bland. - No one will be interested. Write for one person. If it’s genuine - for the one, it’s genuine for the rest. -

- -
-
-
-
- - -
-
- - Separator + + Two Columns
- - - -
-
-
-
+
+
-
-
- - -
-
- - Big Picture -
-
- - - - - - - - +
-

A Punchy Headline

+
+
- -
-

-

A Small Subtitle

+
+

Feature One

+

+ Choose a vibrant image and write an inspiring paragraph + about it. It does not have to be long, but it should + reinforce your image.

-

+

+

Feature Two

+

Choose a vibrant image and write an inspiring paragraph about it. It does not have to be long, but it should reinforce your image. @@ -230,7 +187,7 @@

- + Three Columns
@@ -278,10 +235,67 @@
+ +
+
+ + Separator +
+
+ + + + + + +
+
+
+
+
+
+
+ -
+
+ + +
+
+ + Big Picture +
+
+ + + + + + + + + + + + +
+

A Punchy Headline

+
+ +
+

+

A Small Subtitle

+

+

+ Choose a vibrant image and write an inspiring paragraph + about it. It does not have to be long, but it should + reinforce your image. +

+
+
+
@@ -375,6 +389,30 @@
+
+
+ + Big Message +
+
+ + + + + + +
+
+

Sell Online. Easily.

+

+ Write one sentence to convince visitor about your message. +

+
+
+
+
+ +
@@ -443,8 +481,6 @@
-
-
diff --git a/addons/website_mail/views/website_email_designer.xml b/addons/website_mail/views/website_email_designer.xml index e44c9f84a03..dc2014c9310 100644 --- a/addons/website_mail/views/website_email_designer.xml +++ b/addons/website_mail/views/website_email_designer.xml @@ -10,35 +10,43 @@
-

-
-
-
Email From
-
-
+
+
+ + + +

+
+
+
Email From
+
+
-
-
To (Email)
-
-
+
+
To (Email)
+
+
-
-
To (Partners)
-
-
+
+
To (Partners)
+
+
-
-
Reply To
-
-
+
+
Reply To
+
+
-
-
Subject
-
-
+
+
Subject
+
+
-
-
+
+
+
+