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