19 lines
598 B
HTML
19 lines
598 B
HTML
<!-- Checkbox -->
|
|
<div class="checkbox custom-checkbox" tabindex="0">
|
|
<input
|
|
type="checkbox"
|
|
id="<?= $field->getId() ?>"
|
|
name="<?= $field->getName() ?>"
|
|
value="1"
|
|
<?= $this->previewMode ? 'disabled="disabled"' : '' ?>
|
|
<?= $field->value == 1 ? 'checked="checked"' : '' ?>
|
|
<?= HTML::attributes($field->attributes) ?>>
|
|
|
|
<label for="<?= $field->getId() ?>">
|
|
<?= e(trans($field->label)) ?>
|
|
</label>
|
|
<?php if ($field->comment): ?>
|
|
<p class="help-block"><?= e(trans($field->comment)) ?></p>
|
|
<?php endif ?>
|
|
</div>
|