Update coupons-add.tpl

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

View File

@ -38,7 +38,7 @@
<div class="form-group">
<label class="col-md-2 control-label">{Lang::T('Discount Value')}</label>
<div class="col-md-6">
<input type="number" class="form-control" name="value" id="value" step="0.01" placeholder="Enter amount" required>
<input type="number" class="form-control" name="value" id="value" step="0.01" placeholder="{Lang::T("Enter amoun")}" required>
<p class="help-block"><small id="value-help">{Lang::T('Value of the discount (amount or percentage)')}</small></p>
</div>
</div>
@ -132,11 +132,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)')}';
}
}