[FIX] Mail snippet - Set generic URL
[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               groups="base.group_public"/>
15         <span class="input-group-btn">
16             <button href="#" t-attf-class="btn btn-default js_unfollow_btn">Unsubscribe</button>
17             <button href="#" t-attf-class="btn btn-primary js_follow_btn">Subscribe</button>
18         </span>
19         <div class="alert alert-success hidden">Thanks for your subscription!</div>
20     </div>
21 </template>
22
23 <template id="head" inherit_id="website.layout" name="Mail customization">
24     <xpath expr="//head" position="inside">
25         <script type="text/javascript" src="/website_mail/static/src/js/website_mail.js"></script>
26         <link rel='stylesheet' href='/website_mail/static/src/css/website_mail.css'/>
27     </xpath>
28 </template>
29
30 </data>
31 </openerp>