2013-09-23 09:59:09 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<openerp>
|
2013-12-12 10:58:21 +00:00
|
|
|
<data>
|
2013-09-23 09:59:09 +00:00
|
|
|
|
2013-12-12 10:58:21 +00:00
|
|
|
<template id="follow">
|
|
|
|
<div class="input-group js_follow" 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'">
|
|
|
|
<input
|
|
|
|
type="email" name="email"
|
|
|
|
class="js_follow_email form-control"
|
2014-01-29 17:08:29 +00:00
|
|
|
placeholder="your email..."
|
|
|
|
groups="base.group_public"/>
|
2013-12-12 10:58:21 +00:00
|
|
|
<span class="input-group-btn">
|
2014-01-13 11:05:42 +00:00
|
|
|
<button href="#" t-attf-class="btn btn-default js_unfollow_btn">Unsubscribe</button>
|
|
|
|
<button href="#" t-attf-class="btn btn-primary js_follow_btn">Subscribe</button>
|
2013-12-12 10:58:21 +00:00
|
|
|
</span>
|
2014-01-13 11:05:42 +00:00
|
|
|
<div class="alert alert-success hidden">Thanks for your subscription!</div>
|
2013-12-12 10:58:21 +00:00
|
|
|
</div>
|
|
|
|
</template>
|
2013-09-23 09:59:09 +00:00
|
|
|
|
2014-04-29 14:57:45 +00:00
|
|
|
<template id="head" inherit_id="website.assets_frontend" name="Mail customization">
|
2014-05-27 14:12:52 +00:00
|
|
|
<xpath expr="/t" position="inside">
|
2014-06-19 07:33:36 +00:00
|
|
|
<script type="text/javascript" src="/website_mail/static/src/js/follow.js"></script>
|
2014-01-13 11:05:42 +00:00
|
|
|
<link rel='stylesheet' href='/website_mail/static/src/css/website_mail.css'/>
|
2013-12-12 10:58:21 +00:00
|
|
|
</xpath>
|
|
|
|
</template>
|
2013-09-23 09:59:09 +00:00
|
|
|
|
2013-12-12 10:58:21 +00:00
|
|
|
</data>
|
2013-09-23 09:59:09 +00:00
|
|
|
</openerp>
|