From 4881787cf0648570ece8a5f689de79fd720567ac Mon Sep 17 00:00:00 2001 From: yuri Date: Fri, 9 Nov 2018 17:08:09 +0200 Subject: [PATCH] stick list view actions --- client/res/templates/record/list.tpl | 63 ++++++++++-- client/src/ui.js | 8 +- client/src/views/email/record/list.js | 5 +- client/src/views/modal.js | 2 +- client/src/views/modals/related-list.js | 2 + client/src/views/record/list.js | 130 +++++++++++++++++++++--- frontend/less/espo-vertical/layout.less | 22 ++++ frontend/less/espo/custom.less | 37 ++++++- frontend/less/espo/layout.less | 16 +++ 9 files changed, 253 insertions(+), 32 deletions(-) diff --git a/client/res/templates/record/list.tpl b/client/res/templates/record/list.tpl index 9b185bf0c6..c8645ffaff 100644 --- a/client/res/templates/record/list.tpl +++ b/client/res/templates/record/list.tpl @@ -8,14 +8,41 @@ {{/if}} - {{#if checkboxes}} - {{#if massActionList}} + {{#if displayActionsButtonGroup}}
- -
+ + - {{/if}} {{/if}} {{#if displayTotalCount}} @@ -37,10 +86,6 @@ {{translate 'Total'}}: {{collection.total}} {{/if}} - - {{#each buttonList}} - {{button name scope=../../scope label=label style=style}} - {{/each}} {{/if}} diff --git a/client/src/ui.js b/client/src/ui.js index c2a08b4ef5..055730ef97 100644 --- a/client/src/ui.js +++ b/client/src/ui.js @@ -72,9 +72,13 @@ Espo.define('ui', [], function () { this.contents = ''; if (this.header) { - this.contents += '