From 1ceccf68e8010f95036c14066580fb49dc17728a Mon Sep 17 00:00:00 2001 From: "Chong Wang (cwg)" Date: Tue, 2 Nov 2021 15:52:23 +0000 Subject: [PATCH] [IMP] sign: improve ui for buttons Put "Sign Now", "Send" and "Share" into the dropdown menu of "Action" button when the window is too small Add add "Send" "Sign Now" and "Share" buttons in the list view Make green saving Kanban in the center of the screen when the window is too small Change the order of buttons for signature popover Make "width: 30%" css only for buttons for signature popover to avoid text overflow change 'Adopt and Sign' to 'Adopt & Sign' before this commit: there are some overflow and misalignment for buttons task-2630720 closes odoo/odoo#79292 Related: odoo/enterprise#21671 Signed-off-by: Arnaud Joset --- addons/web/static/src/legacy/js/views/signature_dialog.js | 2 +- addons/web/static/src/legacy/xml/base.xml | 2 +- addons/web/static/src/legacy/xml/name_and_signature.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/addons/web/static/src/legacy/js/views/signature_dialog.js b/addons/web/static/src/legacy/js/views/signature_dialog.js index 9835feb7c74..6530a67d99f 100644 --- a/addons/web/static/src/legacy/js/views/signature_dialog.js +++ b/addons/web/static/src/legacy/js/views/signature_dialog.js @@ -36,7 +36,7 @@ var SignatureDialog = Dialog.extend({ if (!options.buttons) { options.buttons = []; - options.buttons.push({text: _t("Adopt and Sign"), classes: "btn-primary", disabled: true, click: function (e) { + options.buttons.push({text: _t("Adopt & Sign"), classes: "btn-primary", disabled: true, click: function (e) { self._onConfirm(); }}); options.buttons.push({text: _t("Cancel"), close: true}); diff --git a/addons/web/static/src/legacy/xml/base.xml b/addons/web/static/src/legacy/xml/base.xml index fad07c5706b..164c0d9958b 100644 --- a/addons/web/static/src/legacy/xml/base.xml +++ b/addons/web/static/src/legacy/xml/base.xml @@ -1297,7 +1297,7 @@
-
By clicking Adopt and Sign, I agree that the chosen signature/initials will be a valid electronic representation of my hand-written signature/initials for all purposes when it is used on documents, including legally binding contracts.
+
By clicking Adopt & Sign, I agree that the chosen signature/initials will be a valid electronic representation of my hand-written signature/initials for all purposes when it is used on documents, including legally binding contracts.
Styles
diff --git a/addons/web/static/src/legacy/xml/name_and_signature.xml b/addons/web/static/src/legacy/xml/name_and_signature.xml index aecffdfa295..55d4b27c005 100644 --- a/addons/web/static/src/legacy/xml/name_and_signature.xml +++ b/addons/web/static/src/legacy/xml/name_and_signature.xml @@ -103,6 +103,6 @@
-
By clicking Adopt and Sign, I agree that the chosen signature/initials will be a valid electronic representation of my hand-written signature/initials for all purposes when it is used on documents, including legally binding contracts.
+
By clicking Adopt & Sign, I agree that the chosen signature/initials will be a valid electronic representation of my hand-written signature/initials for all purposes when it is used on documents, including legally binding contracts.