mirror of
https://github.com/getformwork/formwork.git
synced 2025-02-23 01:02:46 +01:00
19 lines
580 B
PHP
19 lines
580 B
PHP
<?= $this->insert('fields.label', ['field' => $field]) ?>
|
|
<fieldset <?= $this->attr([
|
|
'id' => $field->name(),
|
|
'class' => 'input-togglegroup',
|
|
'disabled' => $field->isDisabled()
|
|
]) ?>>
|
|
<?php foreach ((array) $field->get('options') as $value => $label): ?>
|
|
<label>
|
|
<input <?= $this->attr([
|
|
'type' => 'radio',
|
|
'name' => $field->formName(),
|
|
'value' => $value,
|
|
'checked' => $value == $field->value()
|
|
]) ?>>
|
|
<span><?= $label ?></span>
|
|
</label>
|
|
<?php endforeach; ?>
|
|
</fieldset>
|