Save
This commit is contained in:
26
modules/raty/views/templates/hook/updatecategory.tpl
Normal file
26
modules/raty/views/templates/hook/updatecategory.tpl
Normal file
@@ -0,0 +1,26 @@
|
||||
<script>
|
||||
function check(event) {
|
||||
let checkbox = document.getElementById('alior_category_promotion');
|
||||
value = event.target.checked ? 1 : 0;
|
||||
checkbox.value = value;
|
||||
}
|
||||
</script>
|
||||
<div class="form-group row">
|
||||
<label class="form-control-label">
|
||||
Raty Alior
|
||||
</label>
|
||||
<div class="col-sm pt-2">
|
||||
<label>
|
||||
<input type="checkbox" id="alior_category_promotion" name="alior_category_promotion" onclick="check(event)"/>
|
||||
Włącz ofertę specjalną dla tej kategorii
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
let checkbox = document.getElementById('alior_category_promotion');
|
||||
checkbox.value = {$alior_category_promotion}
|
||||
checkbox.checked = false;
|
||||
if(checkbox.value === '1') {
|
||||
checkbox.checked = true;
|
||||
}
|
||||
</script>
|
||||
Reference in New Issue
Block a user