blob: 3e11665b3c967e07a272c4b147efcfca5b0a509c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
<?php
declare(strict_types=1);
use Fisharebest\Localization\Locale\LocaleInterface;
use Fisharebest\Webtrees\I18N;
use Illuminate\Support\Collection;
/**
* @var string $dbhost
* @var string $dbname
* @var string $dbpass
* @var string $dbport
* @var string $dbtype
* @var string $dbuser
* @var Collection<int,string> $errors
* @var string $lang
* @var Collection<int,LocaleInterface> $locales
* @var string $tblpfx
* @var Collection<int,string> $warnings
* @var string $wtemail
* @var string $wtname
* @var string $wtpass
* @var string $wtuser
*/
?>
<form method="post" autocomplete="off">
<input name="dbtype" type="hidden" value="<?= e($dbtype) ?>">
<input name="dbhost" type="hidden" value="<?= e($dbhost) ?>">
<input name="dbport" type="hidden" value="<?= e($dbport) ?>">
<input name="dbuser" type="hidden" value="<?= e($dbuser) ?>">
<input name="dbpass" type="hidden" value="<?= e($dbpass) ?>">
<input name="dbname" type="hidden" value="<?= e($dbname) ?>">
<input name="tblpfx" type="hidden" value="<?= e($tblpfx) ?>">
<input name="wtname" type="hidden" value="<?= e($wtname) ?>">
<input name="wtuser" type="hidden" value="<?= e($wtuser) ?>">
<input name="wtpass" type="hidden" value="<?= e($wtpass) ?>">
<input name="wtemail" type="hidden" value="<?= e($wtemail) ?>">
<div class="row mb-3">
<label class="col-form-label col-sm-3" for="lang">
<?= I18N::translate('Language') ?>
</label>
<div class="col-sm-9">
<select class="form-select" id="lang" name="lang">
<?php foreach ($locales as $locale) : ?>
<option value="<?= $locale->languageTag() ?>" <?= $lang === $locale->languageTag() ? 'selected' : '' ?>>
<?= $locale->endonym() ?>
</option>
<?php endforeach ?>
</select>
</div>
</div>
<hr>
<div>
<button class="btn btn-primary" name="step" type="submit" value="2">
<?= I18N::translate('next') ?>
</button>
</div>
</form>
|