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