// Fixed boulette
This commit is contained in:
@@ -17,22 +17,25 @@
|
||||
|
||||
<div class="form-group">
|
||||
<label class="control-label col-lg-3">{l s='Apply a discount'}</label>
|
||||
<div class="input-group col-lg-8">
|
||||
<span class="switch prestashop-switch switch-three">
|
||||
<input type="radio" name="apply_discount" id="apply_discount_percent" value="percent" {if $currentTab->getFieldValue($currentObject, 'reduction_percent')|floatval > 0}checked="checked"{/if} />
|
||||
<label class="t radio" for="apply_discount_percent">
|
||||
<i class="icon-check-sign color_success"></i> {l s='Percent (%)'}
|
||||
<div class="col-lg-9">
|
||||
<div class="radio">
|
||||
<label for="apply_discount_percent">
|
||||
<input type="radio" name="apply_discount" id="apply_discount_percent" value="percent" {if $currentTab->getFieldValue($currentObject, 'reduction_percent')|floatval > 0}checked="checked"{/if} />
|
||||
{l s='Percent (%)'}
|
||||
</label>
|
||||
<input type="radio" name="apply_discount" id="apply_discount_amount" value="amount" {if $currentTab->getFieldValue($currentObject, 'reduction_amount')|floatval > 0}checked="checked"{/if} />
|
||||
<label class="t radio" for="apply_discount_amount">
|
||||
<i class="icon-check-sign color_success"></i> {l s='Amount'}
|
||||
</div>
|
||||
<div class="radio">
|
||||
<label for="apply_discount_amount">
|
||||
<input type="radio" name="apply_discount" id="apply_discount_amount" value="amount" {if $currentTab->getFieldValue($currentObject, 'reduction_amount')|floatval > 0}checked="checked"{/if} />
|
||||
{l s='Amount'}
|
||||
</label>
|
||||
<input type="radio" name="apply_discount" id="apply_discount_off" value="off" {if !$currentTab->getFieldValue($currentObject, 'reduction_amount')|floatval > 0 && !$currentTab->getFieldValue($currentObject, 'reduction_percent')|floatval > 0}checked="checked"{/if} />
|
||||
<label class="t radio" for="apply_discount_off">
|
||||
<i class="icon-ban-circle color_danger"></i> {l s='None'}
|
||||
</div>
|
||||
<div class="radio">
|
||||
<label for="apply_discount_off">
|
||||
<input type="radio" name="apply_discount" id="apply_discount_off" value="off" {if !$currentTab->getFieldValue($currentObject, 'reduction_amount')|floatval > 0 && !$currentTab->getFieldValue($currentObject, 'reduction_percent')|floatval > 0}checked="checked"{/if} />
|
||||
<i class="icon-ban-circle color_danger"></i> {l s='None'}
|
||||
</label>
|
||||
<span class="slide-button btn btn-default"></span>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user