xref: /webtrees/resources/views/setup/step-5-administrator.phtml (revision 0115bc1678cafd957052cd2d256563ad3e242cc1)
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="dbhost" type="hidden" value="<?= e($dbhost) ?>">
7    <input name="dbport" type="hidden" value="<?= e($dbport) ?>">
8    <input name="dbuser" type="hidden" value="<?= e($dbuser) ?>">
9    <input name="dbpass" type="hidden" value="<?= e($dbpass) ?>">
10    <input name="dbname" type="hidden" value="<?= e($dbname) ?>">
11    <input name="tblpfx" type="hidden" value="<?= e($tblpfx) ?>">
12
13    <h2><?= I18N::translate('Administrator account') ?></h2>
14
15    <p>
16        <?= I18N::translate('You need to set up an administrator account. This account can control all aspects of this webtrees installation. Please choose a strong password.') ?>
17    </p>
18
19    <?php if ($wt_user_error) : ?>
20        <p class="alert alert-danger">
21            <?= $wt_user_error ?>
22        </p>
23    <?php endif ?>
24
25    <div class="row form-group">
26        <label class="col-form-label col-sm-3" for="wtname">
27            <?= I18N::translate('Your name') ?>
28        </label>
29        <div class="col-sm-9">
30            <input class="form-control" dir="ltr" id="wtname" name="wtname" required type="text" value="<?= e($wtname) ?>">
31            <p class="small text-muted">
32                <?= I18N::translate('This is your real name, as you would like it displayed on screen.') ?>
33            </p>
34        </div>
35    </div>
36
37    <div class="row form-group">
38        <label class="col-form-label col-sm-3" for="wtuser">
39            <?= I18N::translate('Username') ?>
40        </label>
41        <div class="col-sm-9">
42            <input class="form-control" dir="ltr" id="wtuser" name="wtuser" required type="text" value="<?= e($wtuser) ?>">
43            <p class="small text-muted">
44                <?= I18N::translate('You will use this to sign in to webtrees.') ?>
45            </p>
46        </div>
47    </div>
48
49    <div class="row form-group">
50        <label class="col-form-label col-sm-3" for="wtpass">
51            <?= I18N::translate('Password') ?>
52        </label>
53        <div class="col-sm-9">
54            <input class="form-control" dir="ltr" id="wtpass" name="wtpass" pattern=".{6,}" required type="password" value="<?= e($wtpass) ?>">
55            <p class="small text-muted">
56                <?= I18N::translate('This must be at least six characters long. It is case-sensitive.') ?>
57            </p>
58        </div>
59    </div>
60
61    <div class="row form-group">
62        <label class="col-form-label col-sm-3" for="wtemail">
63            <?= I18N::translate('Email address') ?>
64        </label>
65        <div class="col-sm-9">
66            <input class="form-control" dir="ltr" id="wtemail" name="wtemail" required type="email" value="<?= e($wtemail) ?>">
67            <p class="small text-muted">
68                <?= I18N::translate('This email address will be used to send password reminders, website notifications, and messages from other family members who are registered on the website.') ?>
69            </p>
70        </div>
71    </div>
72
73    <hr>
74
75    <button class="btn btn-primary" name="step" type="submit" value="6">
76        <?= I18N::translate('next') ?>
77    </button>
78
79    <button class="btn btn-link" name="step" type="submit" value="4">
80        <?= I18N::translate('previous') ?>
81    </button>
82</form>
83