[FIX] don't leave a dangling input box when removing the follow/unfollow button in...
authorXavier Morel <xmo@openerp.com>
Wed, 30 Oct 2013 15:09:58 +0000 (16:09 +0100)
committerXavier Morel <xmo@openerp.com>
Wed, 30 Oct 2013 15:09:58 +0000 (16:09 +0100)
bzr revid: xmo@openerp.com-20131030150958-si48ypzrxabegdpo

addons/website_mail/views/website_mail.xml

index 5fdff8d..d7e8008 100644 (file)
@@ -3,17 +3,20 @@
     <data>
 
         <template id="follow">
-            <div name="follow">
-                <a href="#" t-att-data-id="object.id" t-att-data-object="object._name" t-att-data-follow="object.id and object.message_is_follower and 'on' or 'off'"
-                        class="pull-right js_follow" t-if="editable" t-ignore="true">
+            <div name="follow" t-if="editable">
+                <a href="#" t-att-data-id="object.id"
+                   t-att-data-object="object._name"
+                   t-att-data-follow="object.id and object.message_is_follower and 'on' or 'off'"
+                   class="pull-right js_follow" t-ignore="true">
                     <span t-attf-class="label label-success css_follow">Follow</span>
                     <span t-attf-class="label label-danger css_unfollow">Unfollow</span>
                     <span t-attf-class="label label-success css_followed">Following</span>
                     <span t-attf-class="label label-danger css_unfollowed">Not Following</span>
                 </a>
-                <input type="email" name="email" class="js_follow_email css_unfollowed_email"
-                    t-att-value="email"
-                    t-att-placeholder="email or 'Email Address'"/>
+                <input type="email" name="email"
+                       class="js_follow_email css_unfollowed_email"
+                       t-att-value="email"
+                       t-att-placeholder="email or 'Email Address'"/>
             </div>
         </template>