xref: /webtrees/resources/views/components/radio-inline.phtml (revision 4cf33693bbcbe509133373d32b338f0e76f0bc54)
1<?php
2
3/**
4 * @var bool|null   $checked
5 * @var bool|null   $disabled
6 * @var string|null $id
7 * @var string      $label
8 * @var string      $name
9 * @var string      $value
10 */
11
12?>
13
14<div class="form-check form-check-inline">
15    <input type="radio" class="form-check-input"
16    name="<?= e($name) ?>"
17    id="<?= e($id ?? $name . '-' . $value) ?>"
18    value="<?= e($value) ?>"
19        <?= $checked ?? false ? 'checked' : '' ?>
20        <?= $disabled ?? false ? 'disabled' : '' ?>
21        required
22    >
23    <label class="form-check-label" for="<?= e($id ?? $name . '-' . $value) ?>">
24        <?= $label ?>
25    </label>
26</div>
27