156f9a9c1SGreg Roach<?php 291c514e5SGreg Roach 310e06497SGreg Roachdeclare(strict_types=1); 410e06497SGreg Roach 556f9a9c1SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\LoginAction; 656f9a9c1SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PasswordRequestAction; 7e124422cSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PasswordRequestPage; 856f9a9c1SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\RegisterPage; 98e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UserPage; 1056f9a9c1SGreg Roachuse Fisharebest\Webtrees\I18N; 119fa6ab69SGreg Roachuse Fisharebest\Webtrees\Tree; 1291c514e5SGreg Roach 137c2c99faSGreg Roach/** 147c2c99faSGreg Roach * @var bool $allow_register 157c2c99faSGreg Roach * @var Tree $tree 167c2c99faSGreg Roach */ 177c2c99faSGreg Roach 1856f9a9c1SGreg Roach?> 19dd6b2bfcSGreg Roach 2071359d06SGreg Roach<form method="post" action="<?= route(LoginAction::class, ['tree' => $tree->name()]) ?>" name="login-form"> 218e0e1b25SGreg Roach <input type="hidden" name="url" value="<?= e(route(UserPage::class, ['tree' => $tree->name()])) ?>"> 22dd6b2bfcSGreg Roach 239e3c2cf9SGreg Roach <div class="mb-3"> 24dd6b2bfcSGreg Roach <label for="username"> 25dd6b2bfcSGreg Roach <?= I18N::translate('Username') ?> 26dd6b2bfcSGreg Roach </label> 27dd6b2bfcSGreg Roach <input type="text" id="username" name="username" class="form-control"> 28dd6b2bfcSGreg Roach </div> 29dd6b2bfcSGreg Roach 309e3c2cf9SGreg Roach <div class="mb-3"> 31dd6b2bfcSGreg Roach <label for="password"> 32dd6b2bfcSGreg Roach <?= I18N::translate('Password') ?> 33dd6b2bfcSGreg Roach </label> 34d4786c66SGreg Roach <input type="password" id="password" name="password" class="form-control" autocomplete="current-password" data-wt-show-password-text="<?= e(I18N::translate('show')) ?>" data-wt-show-password-title="<?= e(I18N::translate('Show password')) ?>" data-wt-hide-password-text="<?= e(I18N::translate('hide')) ?>" data-wt-hide-password-title="<?= e(I18N::translate('Hide password')) ?>"> 35dd6b2bfcSGreg Roach </div> 36dd6b2bfcSGreg Roach 37dd6b2bfcSGreg Roach <div> 38dd6b2bfcSGreg Roach <button type="submit" class="btn btn-primary"> 39dd6b2bfcSGreg Roach <?= /* I18N: A button label. */ I18N::translate('sign in') ?> 40dd6b2bfcSGreg Roach </button> 41dd6b2bfcSGreg Roach 42*d3d2996bSGreg Roach <a class="btn btn-link" href="<?= e(route(PasswordRequestPage::class, ['tree' => $tree->name()])) ?>"> 43dd6b2bfcSGreg Roach <?= I18N::translate('Forgot password?') ?> 44e124422cSGreg Roach </a> 45dd6b2bfcSGreg Roach 46dd6b2bfcSGreg Roach <?php if ($allow_register) : ?> 479fa6ab69SGreg Roach <a class="btn btn-link" href="<?= e(route(RegisterPage::class, ['tree' => $tree->name()])) ?>"> 48dd6b2bfcSGreg Roach <?= I18N::translate('Request a new user account') ?> 49dd6b2bfcSGreg Roach </a> 50dd6b2bfcSGreg Roach <?php endif ?> 51e124422cSGreg Roach </div> 52dd6b2bfcSGreg Roach 53e124422cSGreg Roach <?= csrf_field() ?> 54dd6b2bfcSGreg Roach</form> 55