xref: /webtrees/resources/views/setup/step-3-database-type.phtml (revision f60bdb82d4dd2cd0b37ee9598ec6e772e3935798)
1<?php use Fisharebest\Webtrees\I18N; ?>
2
3<form method="post" autocomplete="off">
4    <input name="lang" type="hidden" value="<?= e($lang) ?>">
5    <input name="dbname" type="hidden" value="<?= e($dbname) ?>">
6    <input name="tblpfx" type="hidden" value="<?= e($tblpfx) ?>">
7    <input name="wtname" type="hidden" value="<?= e($wtname) ?>">
8    <input name="wtuser" type="hidden" value="<?= e($wtuser) ?>">
9    <input name="wtpass" type="hidden" value="<?= e($wtpass) ?>">
10    <input name="wtemail" type="hidden" value="<?= e($wtemail) ?>">
11
12    <h2>
13        <?= I18N::translate('Connection to database server') ?>
14    </h2>
15
16    <?php foreach ($errors as $error) : ?>
17        <p class="alert alert-danger"><?= $error ?></p>
18    <?php endforeach ?>
19
20    <?php foreach ($warnings as $warning) : ?>
21        <p class="alert alert-warning"><?= $warning ?></p>
22    <?php endforeach ?>
23
24    <p>
25        <?= I18N::translate('webtrees needs a database to store your genealogy data.') ?>
26    </p>
27
28    <div class="row form-group">
29        <label class="col-form-label col-sm-3" for="dbhost">
30            <?= I18N::translate('Database type') ?>
31        </label>
32        <div class="col-sm-9">
33            <div class="form-check">
34                <input class="form-check-input" type="radio" name="dbtype" id="dbtype-mysql" value="mysql" <?= $dbtype === 'mysql' ? 'checked' : '' ?>>
35                <label class="form-check-label" for="dbtype-mysql">
36                    MySQL
37                </label>
38            </div>
39
40            <div class="form-check">
41                <input class="form-check-input" type="radio" name="dbtype" id="dbtype-sqlite" value="sqlite" <?= $dbtype === 'sqlite' ? 'checked' : '' ?>>
42                <label class="form-check-label" for="dbtype-sqlite">
43                    SQLite
44                </label>
45            </div>
46
47            <div class="form-check">
48                <input class="form-check-input" type="radio" name="dbtype" id="dbtype-pgsql" value="pgsql" <?= $dbtype === 'pgsql' ? 'checked' : '' ?>>
49                <label class="form-check-label" for="dbtype-pgsql">
50                    PostgreSQL
51                </label>
52            </div>
53
54            <div class="form-check">
55                <input class="form-check-input" type="radio" name="dbtype" id="dbtype-sqlsvr" value="sqlsvr" <?= $dbtype === 'sqlsvr' ? 'checked' : '' ?>>
56                <label class="form-check-label" for="dbtype-sqlsvr">
57                    SQL Server
58                </label>
59            </div>
60
61            <p class="small text-muted">
62            </p>
63        </div>
64    </div>
65
66
67    <hr>
68
69    <div class="d-flex justify-content-between">
70        <button class="btn btn-primary" name="step" type="submit" value="4">
71            <?= I18N::translate('next') ?>
72        </button>
73
74        <button class="btn btn-secondary" name="step" type="submit" value="2">
75            <?= I18N::translate('previous') ?>
76        </button>
77    </div>
78</form>
79