xref: /webtrees/resources/views/forgot-password-page.phtml (revision ac71572d8462e396ed5a307f05b29381e49f9e6e)
1<?php
2
3declare(strict_types=1);
4
5use Fisharebest\Webtrees\I18N;
6use Fisharebest\Webtrees\Tree;
7
8/**
9 * @var string    $title
10 * @var Tree|null $tree
11 */
12?>
13
14<h2 class="wt-page-title">
15    <?= $title ?>
16</h2>
17
18<form method="post" class="wt-page-options wt-page-options-forgot-password">
19    <input type="hidden" name="tree" value="<?= $tree instanceof Tree ? e($tree->name()) : '' ?>">
20
21    <div class="row">
22        <label class="col-sm-3 col-form-label wt-page-options-label" for="identifier">
23            <?= I18N::translate('Username or email address') ?>
24        </label>
25        <div class="col-sm-9 wt-page-options-value">
26            <input class="form-control" type="text" id="identifier" name="identifier">
27        </div>
28    </div>
29
30    <div class="row">
31        <div class="col-sm-3 col-form-label wt-page-options-label">
32        </div>
33        <div class="col-sm-9 wt-page-options-value">
34            <button class="btn btn-primary" type="submit">
35                <?= /* I18N: A button label. */
36                I18N::translate('continue') ?>
37            </button>
38        </div>
39    </div>
40
41    <?= csrf_field() ?>
42</form>
43