mirror of
https://github.com/getformwork/formwork.git
synced 2025-02-23 17:24:38 +01:00
9 lines
405 B
PHP
9 lines
405 B
PHP
<fieldset class="toggle-group"<?php if ($field->get('disabled')): ?> disabled<?php endif; ?>>
|
|
<?php foreach ((array) $field->get('options') as $value => $label): ?>
|
|
<label>
|
|
<input type="radio" name="<?= $field->formName() ?>" value="<?= $value ?>"<?php if ($value == $field->value()): ?> checked<?php endif; ?>>
|
|
<span><?= $label ?></span>
|
|
</label>
|
|
<?php endforeach; ?>
|
|
</fieldset>
|