57096d30beae190c24678a2ba3bbd0a5cda5e569
[odoo/odoo.git] / addons / website_mail / views / website_mail.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <openerp>
3     <data>
4
5         <template id="follow">
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'">
9                 <input
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">
15                     <button href="#"
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>
19                     </button>
20                 </span>
21             </div>
22         </template>
23
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>
27             </xpath>
28         </template>
29
30     </data>
31 </openerp>