xref: /webtrees/resources/views/setup/step-1-language.phtml (revision ad7270802ba57a28d195fc58fcc55f26458a779a)
1<?php use Fisharebest\Webtrees\I18N; ?>
2
3<form method="POST" autocomplete="off">
4    <input name="route" type="hidden" value="setup">
5    <input name="dbhost" type="hidden" value="<?= e($dbhost) ?>">
6    <input name="dbport" type="hidden" value="<?= e($dbport) ?>">
7    <input name="dbuser" type="hidden" value="<?= e($dbuser) ?>">
8    <input name="dbpass" type="hidden" value="<?= e($dbpass) ?>">
9    <input name="dbname" type="hidden" value="<?= e($dbname) ?>">
10    <input name="tblpfx" type="hidden" value="<?= e($tblpfx) ?>">
11    <input name="wtname" type="hidden" value="<?= e($wtname) ?>">
12    <input name="wtuser" type="hidden" value="<?= e($wtuser) ?>">
13    <input name="wtpass" type="hidden" value="<?= e($wtpass) ?>">
14    <input name="wtemail" type="hidden" value="<?= e($wtemail) ?>">
15
16    <div class="row form-group">
17        <label class="col-form-label col-sm-3" for="lang">
18            <?= I18N::translate('Language') ?>
19        </label>
20        <div class="col-sm-9">
21            <select class="form-control" id="lang" name="lang">
22                <?php foreach ($locales as $locale) : ?>
23                    <option value="<?= $locale->languageTag() ?>" <?= $lang === $locale->languageTag() ? 'selected' : '' ?>>
24                        <?= $locale->endonym() ?>
25                    </option>
26                <?php endforeach ?>
27            </select>
28        </div>
29    </div>
30
31    <hr>
32
33    <button class="btn btn-primary" name="step" type="submit" value="2">
34        <?= I18N::translate('next') ?>
35    </button>
36</form>
37