mirror of
https://github.com/wintercms/winter.git
synced 2024-06-28 05:33:29 +02:00
Merge pull request #301 from adisos/patch-1
Add 'checked' property in _field_radio.htm
This commit is contained in:
commit
317cb9039d
@ -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…
x
Reference in New Issue
Block a user