[IMP] website_mail: mailing editor buttons
authorRavi Gohil <rgo@openerp.com>
Mon, 1 Dec 2014 07:34:37 +0000 (13:04 +0530)
committerMartin Trigaux <mat@odoo.com>
Mon, 1 Dec 2014 10:45:43 +0000 (11:45 +0100)
Button "Save and continue" was wrongly named as it worked only once the template
is not in edit mode (so already saved).
Hide the button to only get it in readonly mode and rename it for better
understanding of its purpose. (opw 614563)

addons/website_mail/views/website_email_designer.xml

index 187191b..d230d68 100644 (file)
@@ -7,7 +7,7 @@
     <t t-call="website.layout">
         <div id="wrap" class="container" t-ignore="True">
             <div id="email_template" class="mb32" t-att-style="mode != 'email_template' and 'display: none' or ''">
-                <a class="mt16 btn btn-default pull-right" 
+                <a class="mt16 btn btn-default pull-right css_editable_mode_hidden" 
                   t-attf-href="/web#return_label=Website&amp;model=#{model}&amp;id=#{res_id}&amp;view_type=form">
                     Back
                 </a>
@@ -32,9 +32,9 @@
                 </div>
             </div>
             <div id="email_designer" class="mb32" t-att-style="mode != 'email_designer' and 'display: none' or ''">
-                <a class="mt16 btn btn-primary pull-right" 
+                <a class="mt16 btn btn-primary pull-right css_editable_mode_hidden" 
                   t-attf-href="/web#return_label=Website&amp;model=#{model}&amp;id=#{res_id}&amp;view_type=form">
-                    Save and Continue
+                    Back to the mass mailing
                 </a>
                 <h1 class="page-header mt16">
                     Design Your Email