32 lines
1.3 KiB
XML
32 lines
1.3 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<openerp>
|
|
<data>
|
|
|
|
<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"
|
|
t-att-value="email or ''"
|
|
placeholder="your email..."/>
|
|
<span class="input-group-btn">
|
|
<button href="#"
|
|
t-attf-class="btn btn-#{object.message_is_follower and 'default' or 'primary'} js_follow_btn">
|
|
<t t-if="object.message_is_follower">Unsubscribe</t>
|
|
<t t-if="not object.message_is_follower">Subscribe</t>
|
|
</button>
|
|
</span>
|
|
</div>
|
|
</template>
|
|
|
|
<template id="website.layout" name="Mail customization" inherit_id="website.layout">
|
|
<xpath expr="//head" position="inside">
|
|
<script type="text/javascript" src="/website_mail/static/src/js/website_mail.js"></script>
|
|
</xpath>
|
|
</template>
|
|
|
|
</data>
|
|
</openerp>
|