Save
This commit is contained in:
27
modules/raty/views/templates/hook/updateproduct.tpl
Normal file
27
modules/raty/views/templates/hook/updateproduct.tpl
Normal file
@@ -0,0 +1,27 @@
|
||||
<script>
|
||||
function check(event) {
|
||||
let checkbox = document.getElementById('alior_product_promotion');
|
||||
value = event.target.checked ? 1 : 0;
|
||||
checkbox.value = value;
|
||||
}
|
||||
</script>
|
||||
<div id="caraty-product-promotion">
|
||||
<h2>Raty Alior</h2>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<label>
|
||||
<input type="checkbox" id="alior_product_promotion" name="alior_product_promotion" onclick="check(event)"/>
|
||||
Włącz ofertę specjalną dla tego produktu
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
let checkbox = document.getElementById('alior_product_promotion');
|
||||
checkbox.value = {$alior_product_promotion}
|
||||
checkbox.checked = false;
|
||||
if(checkbox.value === '1') {
|
||||
checkbox.checked = true;
|
||||
}
|
||||
</script>
|
||||
Reference in New Issue
Block a user