diff options
| author | Jigar Patel <jat@openerp.com> | 2017-11-01 15:21:40 +0530 |
|---|---|---|
| committer | Aaron Bohy <aab@odoo.com> | 2018-03-15 08:32:43 +0100 |
| commit | 89050f61b7c70ca2947680ed00d09615d72f7706 (patch) | |
| tree | c94f480141f3ccf9a86b65739050181873ff38f5 /addons/web_settings_dashboard/static/src/xml/dashboard.xml | |
| parent | 7dc30bf735a1d7898f5298204e3afdcdb37994a4 (diff) | |
[IMP] web_settings_dashboard,*: improve UX
*crm,project: css selector adapted in tours
This rev. improves the UX of the 'Invite users' and 'Pending
invitations' part of the Settings dashboard.
Task 32804
Closes #19531
Co-authored-by: Aaron Bohy <aab@odoo.com>
Diffstat (limited to 'addons/web_settings_dashboard/static/src/xml/dashboard.xml')
| -rw-r--r-- | addons/web_settings_dashboard/static/src/xml/dashboard.xml | 39 |
1 files changed, 23 insertions, 16 deletions
diff --git a/addons/web_settings_dashboard/static/src/xml/dashboard.xml b/addons/web_settings_dashboard/static/src/xml/dashboard.xml index 8c90f99de8a..f7ccf053e8d 100644 --- a/addons/web_settings_dashboard/static/src/xml/dashboard.xml +++ b/addons/web_settings_dashboard/static/src/xml/dashboard.xml @@ -46,6 +46,16 @@ <div class="clearfix"/> </div> </t> + + <t t-name="EmailBadge"> + <span t-foreach="emails" t-as="email" class="badge"> + <span class="o_badge_text"> + <t t-esc='email'/> + </span> + <span class="fa fa-times o_badge_remove" title="Remove Email" role="button"/> + </span> + </t> + <t t-name="DashboardInvitations"> <div class="text-center o_web_settings_dashboard_invitations"> <i class="fa fa-users fa-4x text-muted o_web_settings_dashboard_access_rights" style="cursor: pointer;"></i> @@ -63,24 +73,21 @@ </div> <hr/> <div class="o_web_settings_dashboard_invitation_form"> - <strong>Invite new users:</strong> - <textarea rows="3" id="user_emails" placeholder="Enter e-mail addresses (one per line)"></textarea> - <button class="btn btn-primary btn-block o_web_settings_dashboard_invitations" role="button"> <strong><i class="fa fa-cog fa-spin hidden"/> Invite</strong></button> - </div> - <div> - <small class="o_web_settings_dashboard_pending_users text-muted text-center"> - <t t-if="pending_users.length"> + <p><strong>Invite new users:</strong></p> + <input class="o_user_emails o_input mt8" type="text" placeholder="Enter e-mail addresses"/> + <button class="btn btn-primary btn-block o_web_settings_dashboard_invite mt16" role="button" data-loading-text="Inviting..."><strong>Invite</strong></button> + </div> + <div class="o_web_settings_dashboard_pending_users mt8"> + <t t-if="pending_users.length"> + <p><strong>Pending invitations:</strong></p> + <span t-foreach="pending_users" t-as="pending"> + <a href="#" class="badge o_web_settings_dashboard_user" t-att-data-user-id="pending[0]"> <t t-esc="pending[1]"/> </a> + </span> + <t t-if="pending_users.length < widget.data.pending_count"> <br/> - <strong>Pending invitations:</strong><br/> - <t t-foreach="pending_users" t-as="pending"> - <a href="#"><div class="o_web_settings_dashboard_user" t-att-data-user-id="pending[0]"> <t t-esc="pending[1]"/></div></a> - </t> - <t t-if="pending_users.length < widget.data.pending_count"> - <br/> - <a href="#"><div class="o_web_settings_dashboard_more"><t t-esc="widget.data.pending_count - pending_users.length"/> more</div></a> - </t> + <a href="#" class="o_web_settings_dashboard_more"><t t-esc="widget.data.pending_count - pending_users.length"/> more </a> </t> - </small> + </t> </div> </div> </t> |
