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="dbtype" type="hidden" value="<?= e($dbtype) ?>"> 7 <input name="dbhost" type="hidden" value="<?= e($dbhost) ?>"> 8 <input name="dbport" type="hidden" value="<?= e($dbport) ?>"> 9 <input name="dbuser" type="hidden" value="<?= e($dbuser) ?>"> 10 <input name="dbpass" type="hidden" value="<?= e($dbpass) ?>"> 11 <input name="dbname" type="hidden" value="<?= e($dbname) ?>"> 12 <input name="tblpfx" type="hidden" value="<?= e($tblpfx) ?>"> 13 14 <h2> 15 <?= I18N::translate('Administrator account') ?> 16 </h2> 17 18 <?php foreach ($errors as $error) : ?> 19 <p class="alert alert-danger"><?= $error ?></p> 20 <?php endforeach ?> 21 22 <?php foreach ($warnings as $warning) : ?> 23 <p class="alert alert-warning"><?= $warning ?></p> 24 <?php endforeach ?> 25 26 <p> 27 <?= 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.') ?> 28 </p> 29 30 <div class="row form-group"> 31 <label class="col-form-label col-sm-3" for="wtname"> 32 <?= I18N::translate('Your name') ?> 33 </label> 34 <div class="col-sm-9"> 35 <input class="form-control" dir="ltr" id="wtname" name="wtname" type="text" value="<?= e($wtname) ?>" autocomplete="name"> 36 <p class="small text-muted"> 37 <?= I18N::translate('This is your real name, as you would like it displayed on screen.') ?> 38 </p> 39 </div> 40 </div> 41 42 <div class="row form-group"> 43 <label class="col-form-label col-sm-3" for="wtuser"> 44 <?= I18N::translate('Username') ?> 45 </label> 46 <div class="col-sm-9"> 47 <input class="form-control" dir="ltr" id="wtuser" name="wtuser" type="text" value="<?= e($wtuser) ?>" autocomplete="username"> 48 <p class="small text-muted"> 49 <?= I18N::translate('You will use this to sign in to webtrees.') ?> 50 </p> 51 </div> 52 </div> 53 54 <div class="row form-group"> 55 <label class="col-form-label col-sm-3" for="wtpass"> 56 <?= I18N::translate('Password') ?> 57 </label> 58 <div class="col-sm-9"> 59 <input class="form-control" dir="ltr" id="wtpass" name="wtpass" pattern=".{6,}" type="password" value="<?= e($wtpass) ?>" autocomplete="current-password"> 60 <p class="small text-muted"> 61 <?= I18N::translate('This must be at least six characters long. It is case-sensitive.') ?> 62 </p> 63 </div> 64 </div> 65 66 <div class="row form-group"> 67 <label class="col-form-label col-sm-3" for="wtemail"> 68 <?= I18N::translate('Email address') ?> 69 </label> 70 <div class="col-sm-9"> 71 <input class="form-control" dir="ltr" id="wtemail" name="wtemail" type="email" value="<?= e($wtemail) ?>" autocomplete="email"> 72 <p class="small text-muted"> 73 <?= 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.') ?> 74 </p> 75 </div> 76 </div> 77 78 <hr> 79 80 <div class="d-flex justify-content-between"> 81 <button class="btn btn-primary" name="step" type="submit" value="6"> 82 <?= I18N::translate('next') ?> 83 </button> 84 85 <button class="btn btn-secondary" name="step" type="submit" value="4"> 86 <?= I18N::translate('previous') ?> 87 </button> 88 </div> 89</form> 90