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