xref: /webtrees/resources/views/password-request-page.phtml (revision f7cf8a155e2743f3d124eef3d30a558ab062fa4b)
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    <?= csrf_field() ?>
20
21    <div class="form-group row">
22        <label class="col-sm-3 col-form-label wt-page-options-label" for="email">
23            <?= I18N::translate('Email') ?>
24        </label>
25        <div class="col-sm-9 wt-page-options-value">
26            <input class="form-control" type="email" id="email" name="email" autocomplete="email" required="required">
27        </div>
28    </div>
29
30    <div class="form-group 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
39        </div>
40    </div>
41</form>
42