[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
This commit is contained in:
Aaron Bohy
2015-12-28 10:19:22 +01:00
parent e6a92e523f
commit 30003dbce3
9 changed files with 25 additions and 18 deletions
@@ -276,9 +276,9 @@ var Feedback = Widget.extend({
};
return session.rpc('/im_livechat/feedback', args).then(function () {
if (options.close) {
var content = _.str.sprintf(_t("I rated you with :rating_%d"), self.rating);
var content = _.str.sprintf(_t("Rating: :rating_%d"), self.rating);
if (options.reason) {
content += _.str.sprintf(_t(" for the following reason: %s"), options.reason);
content += " \n" + options.reason;
}
self.trigger("send_message", {content: content});
self.trigger("feedback_sent"); // will close the chat
@@ -115,7 +115,7 @@
<div attrs='{"invisible": [["web_page", "=", False]]}'>
<separator string="How to use the Website Live Chat widget?"/>
<p>
Copy and paste this code into your website, within the &amp;lt;head&amp;gt; tag:
Copy and paste this code into your website, within the &lt;head&gt; tag:
</p>
<field name="script_external" readonly="1" class="badge"/>
<p>
+1 -1
View File
@@ -46,7 +46,7 @@ class Channel(models.Model):
'Channel Type', default='channel')
description = fields.Text('Description')
uuid = fields.Char('UUID', size=50, select=True, default=lambda self: '%s' % uuid.uuid4())
email_send = fields.Boolean('Email Sent', default=False)
email_send = fields.Boolean('Send messages by email', default=False)
# multi users channel
channel_last_seen_partner_ids = fields.One2many('mail.channel.partner', 'channel_id', string='Last Seen')
channel_partner_ids = fields.Many2many('res.partner', 'mail_channel_partner', 'channel_id', 'partner_id', string='Listeners')
+1 -1
View File
@@ -11,7 +11,7 @@ var web_client = require('web.web_client');
var _t = core._t;
var LIMIT = 100;
var preview_msg_max_size = 50;
var preview_msg_max_size = 200;
var MessageModel = new Model('mail.message', session.context);
var ChannelModel = new Model('mail.channel', session.context);
+11 -5
View File
@@ -103,12 +103,15 @@
margin-right: 5px;
border: none;
}
&.o_extended_composer .o_composer_input {
margin-right: 0;
}
}
.o_composer_buttons {
.o-flex(0, 0, auto);
.o_composer_button_send {
float: right;
}
.o_composer_buttons {
.o-flex(0, 0, auto);
.o_composer_button_send {
float: right;
}
}
}
@@ -223,4 +226,7 @@
&.o_user_online {
color: @odoo-brand-optional;
}
&.o_user_idle {
color: orange;
}
}
@@ -4,6 +4,7 @@
> input {
.o-flex(1, 1, auto);
padding: 5px;
margin-right: 30px;
}
}
+4 -4
View File
@@ -84,7 +84,7 @@
</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"/>
<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"/>
@@ -97,9 +97,9 @@
</t>
<t t-name="mail.chat.UserStatus">
<i t-if="status == 'online'" class="o_mail_user_status o_user_online fa fa-circle" t-attf-title="Online"/>
<i t-if="status == 'away'" class="o_mail_user_status fa fa-circle" t-attf-title="Idle"/>
<i t-if="status == 'offline'" class="o_mail_user_status fa fa-circle-o" t-attf-title="Offline"/>
<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">
+2 -2
View File
@@ -5,11 +5,11 @@
<div class="o_composer_attachments_list"/>
<t t-if="widget.extended">
<div class="o_composer_subject">
<input placeholder="Subject"></input>
<input type="text" placeholder="Subject"></input>
<t t-call="mail.ChatComposer.Buttons"></t>
</div>
</t>
<div class="o_composer">
<div t-attf-class="o_composer #{widget.extended ? 'o_extended_composer' : ''}">
<textarea class="o_composer_input" placeholder="Write something..."/>
<t t-if="!widget.extended">
<t t-call="mail.ChatComposer.Buttons"></t>
+2 -2
View File
@@ -109,7 +109,7 @@
<field name="name" default_focus="1" placeholder="Name" readonly="0"/>
</h1>
</div>
<group>
<group class="o_label_nowrap">
<field name="email_send"/>
<field name="description" placeholder="Topics discussed in this group..."/>
</group>
@@ -127,7 +127,7 @@
</group>
<notebook>
<page string="Privacy">
<group>
<group class="o_label_nowrap">
<field name="public" widget="radio" string="Who can follow the group's activities?"/>
<field name="group_public_id"
attrs="{'invisible': [('public','&lt;&gt;','groups')], 'required': [('public','=','groups')]}"