summaryrefslogtreecommitdiff
path: root/resources/views/components/radios-hide-show.php
blob: 77bc12c3dc3df0a7f53a2090bf7d02210bb0cb81 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<?php use Fisharebest\Webtrees\I18N; ?>

<div class="form-check form-check-inline">
    <input class="form-check-input" type="radio" name="<?= e($name) ?>" id="radio-<?= e($name) ?>-false" value="" <?= $value ? '' : 'checked' ?>>
    <label class="form-check-label" for="radio-<?= e($name) ?>-false">
    <?= I18N::translate('hide') ?>
    </label>
</div>

<div class="form-check form-check-inline">
    <input class="form-check-input" type="radio" name="<?= e($name) ?>" id="radio-<?= e($name) ?>-true" value="1" <?= $value ? 'checked' : '' ?>>
    <label class="form-check-label" for="radio-<?= e($name) ?>-true">
    <?= I18N::translate('show') ?>
    </label>
</div>