1 <?xml version="1.0" encoding="utf-8"?>
6 <div class="input-group js_follow" t-att-data-id="object.id"
7 t-att-data-object="object._name"
8 t-att-data-follow="object.id and object.message_is_follower and 'on' or 'off'">
10 type="email" name="email"
11 class="js_follow_email form-control"
12 t-att-value="email or ''"
13 placeholder="your email..."/>
14 <span class="input-group-btn">
16 t-attf-class="btn btn-#{object.message_is_follower and 'default' or 'primary'} js_follow_btn">
17 <t t-if="object.message_is_follower">Unsubscribe</t>
18 <t t-if="not object.message_is_follower">Subscribe</t>
24 <template id="website.secure_layout" name="Mail customization">
25 <xpath expr="//head" position="inside">
26 <script type="text/javascript" src="/website_mail/static/src/js/website_mail.js"></script>