flectra/addons/website_mail_channel/views/snippets.xml
2018-01-16 02:34:37 -08:00

54 lines
2.3 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<flectra>
<template id="remove_external_snippets" inherit_id="website.external_snippets">
<xpath expr="//t[@t-install='website_mail_channel']" position="replace"/>
</template>
<template id="subscribe" inherit_id="website.snippets" name="Snippet Subscribe">
<xpath expr="//div[@id='snippet_content']//t[@t-snippet][last()]" position="after">
<div>
<div class="oe_snippet_thumbnail">
<img class="oe_snippet_thumbnail_img" src="/website/static/src/img/blocks/button_channel_subscribe.png"/>
<span class="oe_snippet_thumbnail_title">Discussion Group</span>
</div>
<div class="oe_snippet_body js_follow_alias"
data-id="0"
data-object="mail.channel"
data-follow="off">
<div class="input-group js_mg_follow_form">
<input
type="email"
name="email"
class="js_follow_email form-control"
placeholder="your email..."/>
<span class="input-group-btn">
<button href="#" class="btn btn-primary js_follow_btn">Subscribe</button>
</span>
</div>
<p class="js_mg_details hidden well well-sm">
<span class="js_mg_email hidden"><i class="fa fa-envelope-o"/><a href="#" class="js_mg_email"> send mail</a> - </span>
<i class="fa fa-file-o"/><a href="#" class="js_mg_link"> archives</a> -
<i class="fa fa-times"/><a href="#" class="js_unfollow_btn"> unsubscribe</a>
</p>
<p class="js_mg_confirmation hidden well well-sm">
a confirmation email has been sent.
</p>
</div>
</div>
</xpath>
<xpath expr="//div[@id='snippet_options']" position="inside">
<div data-js='subscribe'
data-selector=".js_follow_alias"
data-drop-near="p, h1, h2, h3, blockquote, .well, .panel"
>
<li data-select_mailing_list="" data-no-preview="true"><a>Change Discussion List</a></li>
</div>
</xpath>
</template>
</flectra>