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