Update coupons-add.tpl
This commit is contained in:
parent
883eb1bbee
commit
a15f759dcb
@ -38,7 +38,7 @@
|
|||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="col-md-2 control-label">{Lang::T('Discount Value')}</label>
|
<label class="col-md-2 control-label">{Lang::T('Discount Value')}</label>
|
||||||
<div class="col-md-6">
|
<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>
|
<p class="help-block"><small id="value-help">{Lang::T('Value of the discount (amount or percentage)')}</small></p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -132,11 +132,11 @@
|
|||||||
|
|
||||||
if (type === 'percent') {
|
if (type === 'percent') {
|
||||||
valueInput.setAttribute('max', '100');
|
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)')}';
|
helpText.textContent = '{Lang::T('Value of the discount (percentage, max 100)')}';
|
||||||
} else {
|
} else {
|
||||||
valueInput.removeAttribute('max');
|
valueInput.removeAttribute('max');
|
||||||
valueInput.setAttribute('placeholder', 'Enter amount');
|
valueInput.setAttribute('placeholder', '{Lang::T("Enter amount")}');
|
||||||
helpText.textContent = '{Lang::T('Value of the discount (amount)')}';
|
helpText.textContent = '{Lang::T('Value of the discount (amount)')}';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -150,4 +150,4 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
{include file="sections/footer.tpl"}
|
{include file="sections/footer.tpl"}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user