1*982d76d1SGreg Roach<?php use Fisharebest\Webtrees\I18N; ?> 2*982d76d1SGreg Roach 3*982d76d1SGreg Roach<form method="POST" autocomplete="off"> 4*982d76d1SGreg Roach <input name="route" type="hidden" value="setup"> 5*982d76d1SGreg Roach <input name="lang" type="hidden" value="<?= e($lang) ?>"> 6*982d76d1SGreg Roach <input name="dbtype" type="hidden" value="<?= e($dbtype) ?>"> 7*982d76d1SGreg Roach <input name="dbhost" type="hidden" value="<?= e($dbhost) ?>"> 8*982d76d1SGreg Roach <input name="dbport" type="hidden" value="<?= e($dbport) ?>"> 9*982d76d1SGreg Roach <input name="dbuser" type="hidden" value="<?= e($dbuser) ?>"> 10*982d76d1SGreg Roach <input name="dbpass" type="hidden" value="<?= e($dbpass) ?>"> 11*982d76d1SGreg Roach <input name="wtname" type="hidden" value="<?= e($wtname) ?>"> 12*982d76d1SGreg Roach <input name="wtuser" type="hidden" value="<?= e($wtuser) ?>"> 13*982d76d1SGreg Roach <input name="wtpass" type="hidden" value="<?= e($wtpass) ?>"> 14*982d76d1SGreg Roach <input name="wtemail" type="hidden" value="<?= e($wtemail) ?>"> 15*982d76d1SGreg Roach 16*982d76d1SGreg Roach <h2> 17*982d76d1SGreg Roach <?= I18N::translate('Database connection') ?> – SQLite 18*982d76d1SGreg Roach </h2> 19*982d76d1SGreg Roach 20*982d76d1SGreg Roach <?php foreach ($errors as $error) : ?> 21*982d76d1SGreg Roach <p class="alert alert-danger"><?= $error ?></p> 22*982d76d1SGreg Roach <?php endforeach ?> 23*982d76d1SGreg Roach 24*982d76d1SGreg Roach <?php foreach ($warnings as $warning) : ?> 25*982d76d1SGreg Roach <p class="alert alert-warning"><?= $warning ?></p> 26*982d76d1SGreg Roach <?php endforeach ?> 27*982d76d1SGreg Roach 28*982d76d1SGreg Roach <div class="row form-group"> 29*982d76d1SGreg Roach <label class="col-form-label col-sm-3" for="dbname"> 30*982d76d1SGreg Roach <?= I18N::translate('Database name') ?> 31*982d76d1SGreg Roach </label> 32*982d76d1SGreg Roach 33*982d76d1SGreg Roach <div class="col-sm-9"> 34*982d76d1SGreg Roach <div class="input-group" dir="ltr"> 35*982d76d1SGreg Roach <div class="input-group-prepend"> 36*982d76d1SGreg Roach <span class="input-group-text"><?=e( WT_ROOT) ?>data/</span> 37*982d76d1SGreg Roach </div> 38*982d76d1SGreg Roach 39*982d76d1SGreg Roach <input class="form-control" id="dbname" name="dbname" pattern="[a-zA-Z0-9_]+" type="text" value="<?= e($dbname) ?>"> 40*982d76d1SGreg Roach 41*982d76d1SGreg Roach <div class="input-group-append"> 42*982d76d1SGreg Roach <span class="input-group-text">.sqlite</span> 43*982d76d1SGreg Roach </div> 44*982d76d1SGreg Roach </div> 45*982d76d1SGreg Roach 46*982d76d1SGreg Roach <p class="small text-muted"> 47*982d76d1SGreg Roach <?= I18N::translate('Use letters A-Z, a-z, digits 0-9, or underscores') ?> 48*982d76d1SGreg Roach </p> 49*982d76d1SGreg Roach </div> 50*982d76d1SGreg Roach </div> 51*982d76d1SGreg Roach 52*982d76d1SGreg Roach <div class="row form-group"> 53*982d76d1SGreg Roach <label class="col-form-label col-sm-3" for="tblpfx"> 54*982d76d1SGreg Roach <?= I18N::translate('Table prefix') ?> 55*982d76d1SGreg Roach </label> 56*982d76d1SGreg Roach 57*982d76d1SGreg Roach <div class="col-sm-9"> 58*982d76d1SGreg Roach <input class="form-control" dir="ltr" id="tblpfx" name="tblpfx" pattern="[a-zA-Z0-9_]+" type="text" value="<?= e($tblpfx) ?>"> 59*982d76d1SGreg Roach 60*982d76d1SGreg Roach <p class="small text-muted"> 61*982d76d1SGreg Roach <?= I18N::translate('The prefix is optional, but recommended. By giving the table names a unique prefix you can let several different applications share the same database.') ?> 62*982d76d1SGreg Roach <?= I18N::translate('Use letters A-Z, a-z, digits 0-9, or underscores') ?> 63*982d76d1SGreg Roach </p> 64*982d76d1SGreg Roach </div> 65*982d76d1SGreg Roach </div> 66*982d76d1SGreg Roach 67*982d76d1SGreg Roach <hr> 68*982d76d1SGreg Roach 69*982d76d1SGreg Roach <div class="d-flex justify-content-between"> 70*982d76d1SGreg Roach <button class="btn btn-secondary" name="step" type="submit" value="3"> 71*982d76d1SGreg Roach <?= I18N::translate('previous') ?> 72*982d76d1SGreg Roach </button> 73*982d76d1SGreg Roach 74*982d76d1SGreg Roach <button class="btn btn-primary" name="step" type="submit" value="5"> 75*982d76d1SGreg Roach <?= I18N::translate('next') ?> 76*982d76d1SGreg Roach </button> 77*982d76d1SGreg Roach </div> 78*982d76d1SGreg Roach</form> 79