xref: /webtrees/resources/views/setup/step-1-language.phtml (revision 1a218474113038005e50986fff24ebcbd58554ff)
1<?php use Fisharebest\Webtrees\I18N; ?>
2
3<form method="post" autocomplete="off">
4    <input name="dbtype" type="hidden" value="<?= e($dbtype) ?>">
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    <div>
34        <button class="btn btn-primary" name="step" type="submit" value="2">
35            <?= I18N::translate('next') ?>
36        </button>
37    </div>
38</form>
39