Merge pull request #301 from adisos/patch-1

Add 'checked' property in _field_radio.htm
This commit is contained in:
Samuel Georges 2014-06-16 08:47:55 +10:00
commit 317cb9039d

View File

@ -16,6 +16,7 @@
name="<?= $field->getName() ?>" name="<?= $field->getName() ?>"
value="<?= $value ?>" value="<?= $value ?>"
type="radio" type="radio"
<?= $field->value == $value ? 'checked="checked"' : '' ?>
<?= HTML::attributes($field->attributes) ?>> <?= HTML::attributes($field->attributes) ?>>
<label for="<?= $fieldId ?>"> <label for="<?= $fieldId ?>">
@ -34,4 +35,4 @@
<p><?= e(trans($field->placeholder)) ?></p> <p><?= e(trans($field->placeholder)) ?></p>
<?php endif ?> <?php endif ?>
<?php endif ?> <?php endif ?>