diff --git a/htdocs/core/lib/payments.lib.php b/htdocs/core/lib/payments.lib.php index 390961f5db2..2b56d76a6ec 100644 --- a/htdocs/core/lib/payments.lib.php +++ b/htdocs/core/lib/payments.lib.php @@ -174,7 +174,8 @@ function showOnlinePaymentUrl($type, $ref) $out = img_picto('', 'globe').' '.$langs->trans("ToOfferALinkForOnlinePayment", $servicename).'
'; $url = getOnlinePaymentUrl(0, $type, $ref); $out .= ''; + $out .= ''.img_picto('', 'globe', 'class="paddingleft"').''; + $out .= ''; $out .= ajax_autoselect("onlinepaymenturl", 0); return $out; } diff --git a/htdocs/core/lib/signature.lib.php b/htdocs/core/lib/signature.lib.php index bcb430dac41..f14d6a66c40 100644 --- a/htdocs/core/lib/signature.lib.php +++ b/htdocs/core/lib/signature.lib.php @@ -41,6 +41,7 @@ function showOnlineSignatureUrl($type, $ref) } else { $out .= ''; } + $out .= ''.img_picto('', 'globe', 'class="paddingleft"').''; $out .= ''; $out .= ajax_autoselect("onlinesignatureurl", 0); return $out; diff --git a/htdocs/langs/en_US/main.lang b/htdocs/langs/en_US/main.lang index 6004482cb29..492a20bae77 100644 --- a/htdocs/langs/en_US/main.lang +++ b/htdocs/langs/en_US/main.lang @@ -1157,4 +1157,5 @@ RecordsApproved=%s Record(s) approved Properties=Properties hasBeenValidated=%s has been validated ClientTZ=Client Time Zone (user) -NotClosedYet=Not yet closed \ No newline at end of file +NotClosedYet=Not yet closed +ClearSignature=Signature reset \ No newline at end of file diff --git a/htdocs/public/onlinesign/newonlinesign.php b/htdocs/public/onlinesign/newonlinesign.php index 4040bcf1425..fe6abdb7979 100644 --- a/htdocs/public/onlinesign/newonlinesign.php +++ b/htdocs/public/onlinesign/newonlinesign.php @@ -240,7 +240,7 @@ if (!empty($conf->global->ONLINE_SIGN_NEWFORM_TEXT)) { } if (empty($text)) { $text .= '
'.$langs->trans("WelcomeOnOnlineSignaturePage", $mysoc->name).''."\n"; - $text .= ''.$langs->trans("ThisScreenAllowsYouToSignDocFrom", $creditor).'

'."\n"; + $text .= ''.$langs->trans("ThisScreenAllowsYouToSignDocFrom", $creditor).'

'."\n"; } print $text; @@ -251,9 +251,8 @@ print ''.$langs->trans("T $found = false; $error = 0; -$var = false; -// Payment on customer order +// Signature on commercial proposal if ($source == 'proposal') { $found = true; $langs->load("proposal"); @@ -271,24 +270,44 @@ if ($source == 'proposal') { // Creditor - print ''.$langs->trans("Creditor"); - print ''.$creditor.''; + print ''.$langs->trans("Creditor"); + print ''; + print img_picto('', 'company', 'class="pictofixedwidth"'); + print ''.$creditor.''; print ''; print ''."\n"; // Debitor - print ''.$langs->trans("ThirdParty"); - print ''.$proposal->thirdparty->name.''; + print ''.$langs->trans("ThirdParty"); + print ''; + print img_picto('', 'company', 'class="pictofixedwidth"'); + print ''.$proposal->thirdparty->name.''; + print ''."\n"; // Object $text = ''.$langs->trans("SignatureProposalRef", $proposal->ref).''; - print ''.$langs->trans("Designation"); - print ''.$text; + print ''.$langs->trans("Designation"); + print ''.$text; + if ($proposal->status == $proposal::STATUS_VALIDATED) { + $directdownloadlink = $proposal->getLastMainDocLink('proposal'); + if ($directdownloadlink) { + print '
'; + print img_mime($proposal->last_main_doc, ''); + print $langs->trans("DownloadDocument").''; + } + } else { + /* TODO If proposal signed newer than proposal ref, get link of proposal signed + + */ + } + print ''; print ''; print ''."\n"; + + // TODO Add link to download PDF (similar code than for invoice) } @@ -316,9 +335,10 @@ if ($action != 'dosign') { print ''."\n"; print ''; + if ($action == "dosign" && empty($cancel)) { print '
'; - print ''; + print ''; print '
'; print '
'; print ''; @@ -334,8 +354,8 @@ if ($action == "dosign" && empty($cancel)) { if(!$._data($("#signpropal")[0], "events")){ $("#signpropal").on("click",function(){ var signature = $("#signature").jSignature("getData", "image"); - $.ajax({ - type: "POST", + $.ajax({ + type: "POST", url: "'.DOL_URL_ROOT.'/core/ajax/onlineSign.php", dataType: "text", data: { @@ -360,21 +380,23 @@ if ($action == "dosign" && empty($cancel)) { $("#clearsignature").on("click",function(){ $("#signature").jSignature("clear"); $("#signpropal").attr("disabled",true); - $("#clearsignature").css("display","none"); + /* $("#clearsignature").css("display","none"); */ }); - $("#clearsignature").css("display","none"); + /* $("#clearsignature").css("display","none"); */ $("#signpropal").attr("disabled",true); }); '; } else { if ($object->status == $object::STATUS_SIGNED) { - print $langs->trans("PropalAlreadySigned"); + print '
'; + print ''.$langs->trans("PropalAlreadySigned").''; } elseif ($object->status == $object::STATUS_NOTSIGNED) { - print $langs->trans("PropalAlreadyRefused"); + print '
'; + print ''.$langs->trans("PropalAlreadyRefused").''; } else { - print ''; - print ''; + print ''; + print ''; } } print ''."\n"; diff --git a/htdocs/public/payment/newpayment.php b/htdocs/public/payment/newpayment.php index 059042399a2..a5e24312ded 100644 --- a/htdocs/public/payment/newpayment.php +++ b/htdocs/public/payment/newpayment.php @@ -953,7 +953,9 @@ if (!$source) { // Creditor print ''.$langs->trans("Creditor"); - print ''.$creditor.''; + print ''; + print img_picto('', 'company', 'class="pictofixedwidth"'); + print ''.$creditor.''; print ''; print ''."\n"; @@ -1025,13 +1027,17 @@ if ($source == 'order') { // Creditor print ''.$langs->trans("Creditor"); - print ''.$creditor.''; + print ''; + print img_picto('', 'company', 'class="pictofixedwidth"'); + print ''.$creditor.''; print ''; print ''."\n"; // Debitor print ''.$langs->trans("ThirdParty"); - print ''.$order->thirdparty->name.''; + print ''; + print img_picto('', 'company', 'class="pictofixedwidth"'); + print ''.$order->thirdparty->name.''; print ''."\n"; // Object @@ -1149,13 +1155,17 @@ if ($source == 'invoice') { // Creditor print ''.$langs->trans("Creditor"); - print ''.$creditor.''; + print ''; + print img_picto('', 'company', 'class="pictofixedwidth"'); + print ''.$creditor.''; print ''; print ''."\n"; // Debitor print ''.$langs->trans("ThirdParty"); - print ''.$invoice->thirdparty->name.''; + print ''; + print img_picto('', 'company', 'class="pictofixedwidth"'); + print ''.$invoice->thirdparty->name.''; print ''."\n"; // Object diff --git a/htdocs/theme/eldy/global.inc.php b/htdocs/theme/eldy/global.inc.php index b54087c55a6..e1117b6d659 100644 --- a/htdocs/theme/eldy/global.inc.php +++ b/htdocs/theme/eldy/global.inc.php @@ -701,6 +701,9 @@ textarea.centpercent { .nowraponsmartphone { white-space: ; } +.wraponsmartphone { + white-space: ; +} .liste_titre .nowrap { white-space: nowrap; } @@ -1726,7 +1729,7 @@ td.showDragHandle { } #id-right { /* This must stay id-right and not be replaced with echo $right */ - padding-top: 10px; + padding-top: 14px; width: 100%; background: var(--colorbackbody); padding-bottom: 20px; @@ -6998,6 +7001,9 @@ div.clipboardCPValue.hidewithsize { z-index: 201; background: var(--colorbackvmenu1); } + #id-right { /* This must stay id-right and not be replaced with echo $right */ + padding-top: 8px; + } .login_vertical_align { padding-left: 20px; diff --git a/htdocs/theme/md/style.css.php b/htdocs/theme/md/style.css.php index dbbdb1d2679..1a49a61573d 100644 --- a/htdocs/theme/md/style.css.php +++ b/htdocs/theme/md/style.css.php @@ -850,6 +850,9 @@ textarea.centpercent { .nowraponsmartphone { white-space: ; } +.wraponsmartphone { + white-space: ; +} .liste_titre .nowrap { white-space: nowrap; }