formwork/admin/views/fields/checkbox.php

7 lines
307 B
PHP
Raw Normal View History

2018-06-16 16:41:58 +02:00
<div>
2018-06-16 17:49:27 +02:00
<label class="checkbox-label">
<input type="checkbox" class="custom-checkbox" id="<?= $field->name() ?>" name="<?= $field->name() ?>"<?php if ($field->value() == true): ?> checked<?php endif; ?>>
<span class="custom-checkbox-text"><?= $field->label() ?></span>
</label>
2018-06-16 16:41:58 +02:00
</div>