xref: /webtrees/resources/views/edit/language-checkboxes.phtml (revision dec352c1d7404cdd35c9b1a1b5d97f29e7c4ebb5)
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