xref: /webtrees/resources/views/edit/language-checkboxes.phtml (revision 9f9acdbc09170c04c1e150c36ee57d49027e314a)
1<?php
2
3use Fisharebest\Webtrees\I18N;
4
5/**
6 * @var array<string> $languages - Currently selected languages
7 */
8
9?>
10<div style="columns: auto 12rem">
11    <?php foreach (I18N::activeLocales() as $locale) : ?>
12        <div class="form-check">
13            <label title="<?= e($locale->languageTag()) ?>">
14                <input type="checkbox" name="languages[]" value="<?= e($locale->languageTag()) ?>" <?= in_array($locale->languageTag(), $languages, true) ? 'checked' : '' ?>>
15                <?= $locale->endonym() ?>
16            </label>
17        </div>
18    <?php endforeach ?>
19</div>
20