Update coupons-edit.tpl

This commit is contained in:
Ahmad Husein 2025-01-19 15:18:57 +07:00 committed by GitHub
parent 8af46e5e51
commit 883eb1bbee
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -134,11 +134,11 @@
if (type === 'percent') {
valueInput.setAttribute('max', '100');
valueInput.setAttribute('placeholder', 'Enter percentage');
valueInput.setAttribute('placeholder', '{Lang::T("Enter percentage")}');
helpText.textContent = '{Lang::T('Value of the discount(percentage, max 100)')}';
} else {
valueInput.removeAttribute('max');
valueInput.setAttribute('placeholder', 'Enter amount');
valueInput.setAttribute('placeholder', '{Lang::T("Enter amount")}');
helpText.textContent = '{Lang::T('Value of the discount(amount)')}';
}
}
@ -146,4 +146,4 @@
{include file="sections/footer.tpl"}
{include file="sections/footer.tpl"}