flectra/addons/mail/static/src/xml/followers.xml
flectra-admin 769eafb483 [INIT] Inception of Flectra from Odoo
Flectra is Forked from Odoo v11 commit : (6135e82d73)
2018-01-16 11:45:59 +05:30

94 lines
3.7 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<templates>
<!--
Followers, actions and subtypes in a record.
-->
<t t-name="mail.Followers">
<div class="o_followers">
<div class="o_followers_title_box">
<button class="btn btn-sm btn-link dropdown-toggle"
data-toggle="dropdown" aria-expanded="false">
<i class="fa fa-user"></i>
<span class="o_followers_count"/>
</button>
<ul class="dropdown-menu o_followers_list" role="menu"></ul>
</div>
<div class="o_followers_actions">
<div class="btn-group btn-group-sm o_subtypes_list">
<button class="btn btn-sm btn-link o_followers_follow_button o_followers_notfollow">
<span class="o_follow">Follow</span>
<span class="fa fa-times o_followers_unfollow"/>
<span class="o_followers_unfollow"> Unfollow</span>
<span class="fa fa-check o_followers_following"/>
<span class="o_followers_following"> Following</span>
</button><button class="btn btn-sm btn-link dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
<span class="fa fa-bell"/>
</button>
<ul class="dropdown-menu" role="menu"/>
</div>
</div>
</div>
</t>
<!--
Partner or channel following the record
-->
<t t-name="mail.Followers.partner">
<li class='o_partner'>
<img t-att-src="record.avatar_url"/>
<a class="o_mail_redirect"
href="#"
t-att-title="record.name"
t-att-data-oe-model="record.res_model"
t-att-data-oe-id="record.res_id"><t t-esc="record.name"/></a>
<i t-if="record.is_editable" class="fa fa-pencil o_edit_subtype hide"
title="Edit subscription"
t-att-data-follower-id="record.id"
t-att-data-oe-id="record.res_id"
t-att-data-oe-model="record.res_model"/>
<i t-if="widget.isEditable" class="fa fa-remove o_remove_follower"
title="Remove this follower"/>
</li>
</t>
<!--
'Add followers' and 'Add channels' buttons
-->
<t t-name="mail.Followers.add_more">
<t t-if="widget.isEditable">
<li class="o_add_follower">
<a href="#"> Add Followers </a>
</li>
<li class="o_add_follower_channel">
<a href="#"> Add Channels </a>
</li>
<li t-if="widget.followers.length > 0" class="divider"/>
</t>
</t>
<!--
Message subtypes of a follower subscription
-->
<t t-name="mail.Followers.subtype">
<li class="o_subtype">
<div class="o_checkbox">
<input type="checkbox" t-att-checked="record.followed"
t-att-id="'input_mail_followers_subtype_'+record.id+(dialog ? '_in_dialog': '')"
t-att-data-id="record.id" t-att-name="record.name" class="o_subtype_checkbox"/>
<span/>
</div>
<span t-att-for="'input_mail_followers_subtype_'+record.id+(dialog ? '_in_dialog': '')">
<t t-esc="record.name"/>
</span>
<i t-if="display_warning" class="fa fa-warning text-warning"/>
</li>
</t>
<t t-name="mail.Followers.subtypes.warning">
<span class="text-warning">
<i class="fa fa-warning"/> Be careful with channels following internal notifications
</span>
</t>
</templates>