Files
odoo_source/addons/mail/static/src/xml/client_action.xml
T
Aaron Bohy 30003dbce3 [FIX] im_livechat,mail: various ui fixes/improvements
im_livechat:
  - feedback message wording
  - livechat_channel form view typo

mail:
  - channel form view: email_send field label wording and layout
  - notifications preview extended
  - client action mass mailing composer fine tuning
  - client action mass mailing channels tooltip
  - client action idle bullet color
2015-12-28 10:19:22 +01:00

130 lines
6.3 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<templates xml:space="preserve">
<!-- Client Action -->
<t t-name="mail.client_action">
<div class="o_mail_chat">
<div class="o_mail_chat_sidebar"/>
<div class="o_mail_chat_content"/>
</div>
</t>
<t t-name="mail.chat.Sidebar">
<div class="o_mail_chat_sidebar">
<div t-attf-class="o_mail_chat_channel_item #{(active_channel_id == 'channel_inbox') ? 'o_active': ''}"
data-channel-id="channel_inbox">
@ Inbox
<t t-set="counter" t-value="needaction_counter"/>
<t t-call="mail.chat.SidebarNeedaction"/>
</div>
<div t-attf-class="o_mail_chat_channel_item #{(active_channel_id == 'channel_starred') ? 'o_active': ''}"
data-channel-id="channel_starred">
<span class="fa fa-star-o"/> Starred
</div>
<t t-set="channel_type">public</t>
<t t-call="mail.chat.SidebarTitle">
<t t-set="channel_title">Channels</t>
</t>
<t t-call="mail.chat.SidebarItems">
<t t-set="display_hash">true</t>
<t t-set="input_placeholder">Add a channel</t>
</t>
<t t-set="channel_type">dm</t>
<t t-call="mail.chat.SidebarTitle">
<t t-set="channel_title">Direct Messages</t>
</t>
<t t-call="mail.chat.SidebarItems">
<t t-set="display_status">true</t>
<t t-set="input_placeholder">Open chat</t>
</t>
<t t-set="channel_type">private</t>
<t t-call="mail.chat.SidebarTitle">
<t t-set="channel_title">Private Channels</t>
</t>
<t t-call="mail.chat.SidebarItems">
<t t-set="input_placeholder">Add a channel</t>
<t t-set="display_hash">true</t>
</t>
</div>
</t>
<t t-name="mail.chat.SidebarNeedaction">
<span t-attf-class="o_mail_sidebar_needaction badge pull-right #{(!counter ? 'hide' : '')}">
<t t-esc="counter"/>
</span>
</t>
<t t-name="mail.chat.SidebarTitle">
<!-- Don't display the channel type if there is no channel of such type
and the 'add a channel' option is disabled for this type -->
<t t-if="disable_add_channel">
<t t-set="empty" t-value="true"/>
<t t-foreach="channels" t-as="channel">
<t t-if="channel.type === channel_type">
<t t-set="empty" t-value="false"/>
</t>
</t>
</t>
<t t-if="!disable_add_channel || !empty">
<div class="o_mail_sidebar_title">
<h4><t t-esc="channel_title"/></h4>
<span t-if="!disable_add_channel" class="fa fa-plus o_add" t-att-title="_t('Add')" t-attf-data-type="#{channel_type}"/>
</div>
</t>
</t>
<t t-name="mail.chat.SidebarItems">
<t t-foreach="channels" t-as="channel">
<t t-set="counter" t-value="channel.needaction_counter"/>
<div t-if="channel.type === channel_type" t-att-data-channel-id="channel.id"
t-attf-class="o_mail_chat_channel_item #{channel.unread_counter ? ' o_unread_message' : ''} #{(active_channel_id == channel.id) ? 'o_active': ''}">
<span t-if="display_status">
<t t-call="mail.chat.UserStatus">
<t t-set="status" t-value="channel.status"/>
</t>
</span>
<span t-if="display_hash" class="o_mail_hash">#</span>
<t t-esc="channel.name"/>
<i t-if="channel.mass_mailing" class="fa fa-envelope-o" title="Sends messages by email"/>
<t t-call="mail.chat.SidebarNeedaction"/>
<span t-attf-class="fa fa-times pull-right o_mail_partner_unpin #{counter ? 'hide' : ''}"
t-att-title="_t('Leave this channel')" t-att-data-channel-id="channel.id"/>
</div>
</t>
<div t-if="!disable_add_channel" class="o_mail_add_channel" t-attf-data-type="#{channel_type}">
<span t-if="display_hash">#</span>
<input type="text" t-attf-placeholder="#{input_placeholder}"/>
</div>
</t>
<t t-name="mail.chat.UserStatus">
<i t-if="status == 'online'" class="o_mail_user_status o_user_online fa fa-circle" title="Online"/>
<i t-if="status == 'away'" class="o_mail_user_status o_user_idle fa fa-circle" title="Idle"/>
<i t-if="status == 'offline'" class="o_mail_user_status fa fa-circle-o" title="Offline"/>
</t>
<t t-name="mail.chat.UndoSnackbar">
<div class="alert o_mail_snackbar" data-dismiss="alert" role="alert">
<t t-esc="nb_needactions"/> mention(s) marked as read.
<a href="#" class="alert-link o_snackbar_undo">Undo</a>
</div>
</t>
<!-- Buttons of the Control Panel -->
<t t-name="mail.chat.ControlButtons">
<div>
<button type="button" class="btn btn-primary btn-sm o_mail_toggle_channels visible-xs-inline" t-att-title='_t("Toggle Channels")'>Channels</button>
<button type="button" class="btn btn-primary btn-sm o_mail_chat_button_invite" t-att-title='_t("Invite people")'>Invite</button>
<button type="button" class="btn btn-primary btn-sm o_mail_chat_button_detach hidden-xs" t-att-title='_t("Detach the conversation")'>Detach</button>
<button type="button" class="btn btn-primary btn-sm o_mail_chat_button_mark_read" t-att-title='_t("Mark all as read")'>Mark all read</button>
<button type="button" class="btn btn-primary btn-sm o_mail_chat_button_unstar_all" t-att-title='_t("Unstar all messages")'>Unstar all</button>
<button type="button" class="btn btn-default btn-sm o_mail_chat_button_unsubscribe" t-att-title='_t("Unsubscribe from channel")'>Unsubscribe</button>
<button type="button" class="btn btn-default btn-sm o_mail_chat_button_settings" t-att-title='_t("Open channel settings")'>Settings</button>
</div>
</t>
<!-- Invite dialog's content -->
<div t-name="mail.PartnerInviteDialog">
<input type="text" class="o_mail_chat_partner_invite_input" id="mail_search_partners"/>
</div>
</templates>