mirror of
https://github.com/wasrusgen/wasrusgen1-crm.git
synced 2026-06-03 17:44:46 +00:00
feat: canvas e-signature + signature preview in admin
This commit is contained in:
parent
7414b69419
commit
cd5d5223b0
@ -1076,7 +1076,10 @@ function renderFinances(d){
|
||||
// Signed info
|
||||
if(c.status === 'signed' && c.signed_at){
|
||||
signInfo.style.display = 'block';
|
||||
signInfo.innerHTML = `✅ <b>Подписан:</b> ${fmtTime(c.signed_at)} · IP: ${c.sign_ip||'—'}`;
|
||||
const sigImgHtml = c.signature_image
|
||||
? `<div style="margin-top:10px"><div style="font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.06em;color:#64748B;margin-bottom:6px">Подпись клиента</div><div style="border:1.5px solid #A7F3D0;border-radius:8px;background:#fff;display:inline-block;padding:4px"><img src="${c.signature_image}" style="max-width:280px;height:auto;display:block;border-radius:4px"></div></div>`
|
||||
: '';
|
||||
signInfo.innerHTML = `✅ <b>Подписан:</b> ${fmtTime(c.signed_at)} · IP: ${c.sign_ip||'—'}${sigImgHtml}`;
|
||||
} else {
|
||||
signInfo.style.display = 'none';
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user