xref: /webtrees/resources/views/components/radios-inline.phtml (revision e3c147d0d53873311b7c137c41b4439e01d4189e)
1<?php
2
3/**
4 * @var string   $name
5 * @var mixed    $selected
6 * @var string[] $options
7 */
8
9?>
10
11<?php foreach ($options as $value => $label) : ?>
12    <?= view('components/radio-inline', ['label' => $label, 'name' => $name, 'value' => (string) $value, 'checked' => $value === $selected]) ?>
13<?php endforeach;
14