Add 'checked' property in _field_radio.htm

Add 'checked' property in _field_radio.htm
This commit is contained in:
Adis 2014-06-15 23:50:17 +06:00
parent e8688573ab
commit 949a5dc0d9
1 changed files with 2 additions and 1 deletions

View File

@ -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 ?>