[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 <arj@odoo.com>
This commit is contained in:
Chong Wang (cwg)
2021-12-01 10:17:57 +00:00
parent db5b055138
commit 1ceccf68e8
3 changed files with 3 additions and 3 deletions
@@ -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});
+1 -1
View File
@@ -1297,7 +1297,7 @@
</div>
<div class="o_sign_signature card-body"/>
</div>
<div class="mt16 small">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.</div>
<div class="mt16 small">By clicking Adopt &amp; 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.</div>
<div class="o_sign_font_dialog card">
<div class="card-header">Styles</div>
@@ -103,6 +103,6 @@
<div t-name="web.signature_dialog">
<div class="o_web_sign_name_and_signature"/>
<div class="mt16 small">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.</div>
<div class="mt16 small">By clicking Adopt &amp; 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.</div>
</div>
</templates>