1<?php 2 3declare(strict_types=1); 4 5use Fisharebest\Webtrees\Http\RequestHandlers\PasswordRequestAction; 6use Fisharebest\Webtrees\I18N; 7use Fisharebest\Webtrees\Tree; 8 9/** 10 * @var string $title 11 * @var Tree|null $tree 12 */ 13 14?> 15 16<h2 class="wt-page-title"> 17 <?= $title ?> 18</h2> 19 20<form method="post" action="<?= e(route(PasswordRequestAction::class, ['tree' => $tree instanceof Tree ? $tree->name() : null])) ?>" class="wt-page-options wt-page-options-login"> 21 <div class="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="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 42 <?= csrf_field() ?> 43</form> 44