This commit is contained in:
Roman Pyrih
2024-12-12 15:57:01 +01:00
parent 2e7c3943e4
commit e75fa515f5
62 changed files with 4916 additions and 42 deletions

View 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>