xref: /webtrees/resources/views/setup/step-1-language.phtml (revision 10e0649788c8d7d4974d81c048ca2b225df8f22e)
1d70512abSGreg Roach<?php
2d70512abSGreg Roach
3*10e06497SGreg Roachdeclare(strict_types=1);
4*10e06497SGreg Roach
5dc270d8cSGreg Roachuse Fisharebest\Localization\Locale\LocaleInterface;
6d70512abSGreg Roachuse Fisharebest\Webtrees\I18N;
7dc270d8cSGreg Roachuse Illuminate\Support\Collection;
8dc270d8cSGreg Roach
9dc270d8cSGreg Roach/**
10dc270d8cSGreg Roach * @var string                          $dbhost
11dc270d8cSGreg Roach * @var string                          $dbname
12dc270d8cSGreg Roach * @var string                          $dbpass
13dc270d8cSGreg Roach * @var string                          $dbport
14dc270d8cSGreg Roach * @var string                          $dbtype
15dc270d8cSGreg Roach * @var string                          $dbuser
1636779af1SGreg Roach * @var Collection<int,string>          $errors
17dc270d8cSGreg Roach * @var string                          $lang
1836779af1SGreg Roach * @var Collection<int,LocaleInterface> $locales
19dc270d8cSGreg Roach * @var string                          $tblpfx
2036779af1SGreg Roach * @var Collection<int,string>          $warnings
21dc270d8cSGreg Roach * @var string                          $wtemail
22dc270d8cSGreg Roach * @var string                          $wtname
23dc270d8cSGreg Roach * @var string                          $wtpass
24dc270d8cSGreg Roach * @var string                          $wtuser
25dc270d8cSGreg Roach */
26d70512abSGreg Roach
27d70512abSGreg Roach?>
28dd6b2bfcSGreg Roach
2983615acfSGreg Roach<form method="post" autocomplete="off">
30982d76d1SGreg Roach    <input name="dbtype" type="hidden" value="<?= e($dbtype) ?>">
31dd6b2bfcSGreg Roach    <input name="dbhost" type="hidden" value="<?= e($dbhost) ?>">
32dd6b2bfcSGreg Roach    <input name="dbport" type="hidden" value="<?= e($dbport) ?>">
33dd6b2bfcSGreg Roach    <input name="dbuser" type="hidden" value="<?= e($dbuser) ?>">
34dd6b2bfcSGreg Roach    <input name="dbpass" type="hidden" value="<?= e($dbpass) ?>">
35dd6b2bfcSGreg Roach    <input name="dbname" type="hidden" value="<?= e($dbname) ?>">
36dd6b2bfcSGreg Roach    <input name="tblpfx" type="hidden" value="<?= e($tblpfx) ?>">
37dd6b2bfcSGreg Roach    <input name="wtname" type="hidden" value="<?= e($wtname) ?>">
38dd6b2bfcSGreg Roach    <input name="wtuser" type="hidden" value="<?= e($wtuser) ?>">
39dd6b2bfcSGreg Roach    <input name="wtpass" type="hidden" value="<?= e($wtpass) ?>">
40dd6b2bfcSGreg Roach    <input name="wtemail" type="hidden" value="<?= e($wtemail) ?>">
41dd6b2bfcSGreg Roach
429e3c2cf9SGreg Roach    <div class="row mb-3">
43dd6b2bfcSGreg Roach        <label class="col-form-label col-sm-3" for="lang">
44dd6b2bfcSGreg Roach            <?= I18N::translate('Language') ?>
45dd6b2bfcSGreg Roach        </label>
46dd6b2bfcSGreg Roach        <div class="col-sm-9">
474b9213b3SGreg Roach            <select class="form-select" id="lang" name="lang">
48dd6b2bfcSGreg Roach                <?php foreach ($locales as $locale) : ?>
49dd6b2bfcSGreg Roach                    <option value="<?= $locale->languageTag() ?>" <?= $lang === $locale->languageTag() ? 'selected' : '' ?>>
50dd6b2bfcSGreg Roach                        <?= $locale->endonym() ?>
51dd6b2bfcSGreg Roach                    </option>
52dd6b2bfcSGreg Roach                <?php endforeach ?>
53dd6b2bfcSGreg Roach            </select>
54dd6b2bfcSGreg Roach        </div>
55dd6b2bfcSGreg Roach    </div>
56dd6b2bfcSGreg Roach
57dd6b2bfcSGreg Roach    <hr>
58dd6b2bfcSGreg Roach
593e0eba26SGreg Roach    <div>
60dd6b2bfcSGreg Roach        <button class="btn btn-primary" name="step" type="submit" value="2">
61dd6b2bfcSGreg Roach            <?= I18N::translate('next') ?>
62dd6b2bfcSGreg Roach        </button>
63982d76d1SGreg Roach    </div>
64dd6b2bfcSGreg Roach</form>
65