Add 'checked' property in _field_radio.htm
Add 'checked' property in _field_radio.htm
This commit is contained in:
parent
e8688573ab
commit
949a5dc0d9
|
|
@ -16,6 +16,7 @@
|
|||
name="<?= $field->getName() ?>"
|
||||
value="<?= $value ?>"
|
||||
type="radio"
|
||||
<?= $field->value == $value ? 'checked="checked"' : '' ?>
|
||||
<?= HTML::attributes($field->attributes) ?>>
|
||||
|
||||
<label for="<?= $fieldId ?>">
|
||||
|
|
@ -34,4 +35,4 @@
|
|||
<p><?= e(trans($field->placeholder)) ?></p>
|
||||
<?php endif ?>
|
||||
|
||||
<?php endif ?>
|
||||
<?php endif ?>
|
||||
|
|
|
|||
Loading…
Reference in New Issue