1<?php use Fisharebest\Webtrees\I18N; ?> 2 3<h2 class="wt-page-title"> 4 <?= $title ?> 5</h2> 6 7<form class="wt-page-options wt-page-options-branches d-print-none"> 8 <input type="hidden" name="route" value="module"> 9 <input type="hidden" name="module" value="<?= e($module) ?>"> 10 <input type="hidden" name="action" value="<?= e($action) ?>"> 11 <input type="hidden" name="ged" value="<?= e($tree->name()) ?>"> 12 13 <div class="form-group row"> 14 <label class="col-form-label col-sm-3 wt-page-options-label" for="surname"> 15 <?= I18N::translate('Surname') ?> 16 </label> 17 <div class="col-sm-9 wt-page-options-value"> 18 <input class="form-control" data-autocomplete-type="SURN" type="text" name="surname" id="surname" value="<?= e($surname) ?>" dir="auto"> 19 </div> 20 </div> 21 22 <fieldset class="form-group"> 23 <div class="row"> 24 <legend class="col-form-label col-sm-3 wt-page-options-label"> 25 <?= I18N::translate('Phonetic search') ?> 26 </legend> 27 <div class="col-sm-9 wt-page-options-value"> 28 <?= view('components/checkbox-inline', ['label' => I18N::translate('Russell'), 'name' => 'soundex_std', 'checked' => $soundex_std]) ?> 29 <?= view('components/checkbox-inline', ['label' => I18N::translate('Daitch-Mokotoff'), 'name' => 'soundex_dm', 'checked' => $soundex_dm]) ?> 30 </div> 31 </div> 32 </fieldset> 33 34 <div class="form-group row"> 35 <div class="col-sm-3 wt-page-options-label"> 36 </div> 37 <div class="col-sm-9 wt-page-options-value"> 38 <button type="submit" class="btn btn-primary"> 39 <?= /* I18N: A button label. */ I18N::translate('view') ?> 40 </button> 41 </div> 42 </div> 43</form> 44 45<?php if ($surname !== '') : ?> 46 <div class="wt-ajax-load wt-page-content wt-chart wt-branches" data-ajax-url="<?= e(route('module', ['module' => $module, 'action' => 'List', 'surname' => $surname, 'soundex_std' => $soundex_std, 'soundex_dm' => $soundex_dm, 'ged' => $tree->name()])) ?>"></div> 47<?php endif ?> 48