171378461SGreg Roach<?php 271378461SGreg Roach 3*10e06497SGreg Roachdeclare(strict_types=1); 4*10e06497SGreg Roach 563763244SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\AutoCompleteSurname; 671378461SGreg Roachuse Fisharebest\Webtrees\I18N; 763763244SGreg Roachuse Fisharebest\Webtrees\Tree; 871378461SGreg Roach 906a438b4SGreg Roach/** 1006a438b4SGreg Roach * @var string $ajax_url 1106a438b4SGreg Roach * @var bool $soundex_dm 1206a438b4SGreg Roach * @var bool $soundex_std 1306a438b4SGreg Roach * @var string $surname 1406a438b4SGreg Roach * @var string $title 1563763244SGreg Roach * @var Tree $tree 1606a438b4SGreg Roach */ 1706a438b4SGreg Roach 1871378461SGreg Roach?> 19dd6b2bfcSGreg Roach 20dd6b2bfcSGreg Roach<h2 class="wt-page-title"> 21dd6b2bfcSGreg Roach <?= $title ?> 22dd6b2bfcSGreg Roach</h2> 23dd6b2bfcSGreg Roach 24808ea2d4SGreg Roach<form method="post" class="wt-page-options wt-page-options-branches d-print-none"> 259e3c2cf9SGreg Roach <div class="row mb-3"> 26dd6b2bfcSGreg Roach <label class="col-form-label col-sm-3 wt-page-options-label" for="surname"> 27dd6b2bfcSGreg Roach <?= I18N::translate('Surname') ?> 28dd6b2bfcSGreg Roach </label> 2906a438b4SGreg Roach 30dd6b2bfcSGreg Roach <div class="col-sm-9 wt-page-options-value"> 31d4786c66SGreg Roach <input class="form-control" data-wt-autocomplete-url="<?= e(route(AutoCompleteSurname::class, ['tree' => $tree->name()])) ?>" autocomplete="off" type="text" name="surname" id="surname" value="<?= e($surname) ?>" dir="auto" required="required"> 32dd6b2bfcSGreg Roach </div> 33dd6b2bfcSGreg Roach </div> 34dd6b2bfcSGreg Roach 359e3c2cf9SGreg Roach <fieldset class="row mb-3"> 36dd6b2bfcSGreg Roach <legend class="col-form-label col-sm-3 wt-page-options-label"> 37dd6b2bfcSGreg Roach <?= I18N::translate('Phonetic search') ?> 38dd6b2bfcSGreg Roach </legend> 3906a438b4SGreg Roach 40dd6b2bfcSGreg Roach <div class="col-sm-9 wt-page-options-value"> 41b6c326d8SGreg Roach <?= view('components/checkbox-inline', ['label' => I18N::translate('Russell'), 'name' => 'soundex_std', 'checked' => $soundex_std]) ?> 42b6c326d8SGreg Roach <?= view('components/checkbox-inline', ['label' => I18N::translate('Daitch-Mokotoff'), 'name' => 'soundex_dm', 'checked' => $soundex_dm]) ?> 43dd6b2bfcSGreg Roach </div> 44dd6b2bfcSGreg Roach </fieldset> 45dd6b2bfcSGreg Roach 469e3c2cf9SGreg Roach <div class="row mb-3"> 4706a438b4SGreg Roach <div class="col-sm-3 wt-page-options-label"></div> 4806a438b4SGreg Roach 49dd6b2bfcSGreg Roach <div class="col-sm-9 wt-page-options-value"> 50dd6b2bfcSGreg Roach <button type="submit" class="btn btn-primary"> 51dd6b2bfcSGreg Roach <?= /* I18N: A button label. */ I18N::translate('view') ?> 52dd6b2bfcSGreg Roach </button> 53dd6b2bfcSGreg Roach </div> 54dd6b2bfcSGreg Roach </div> 5581443e3cSGreg Roach 5681443e3cSGreg Roach <?= csrf_field() ?> 57dd6b2bfcSGreg Roach</form> 58dd6b2bfcSGreg Roach 5906a438b4SGreg Roach<?php if ($ajax_url !== '') : ?> 60d4786c66SGreg Roach <div class="wt-ajax-load wt-page-content wt-chart wt-branches" data-wt-ajax-url="<?= e($ajax_url) ?>"></div> 61dd6b2bfcSGreg Roach<?php endif ?> 62