1<?php 2 3use Fisharebest\Webtrees\Http\RequestHandlers\SearchReplaceAction; 4use Fisharebest\Webtrees\I18N; 5use Fisharebest\Webtrees\Tree; 6 7/** 8 * @var string $context 9 * @var string $replace 10 * @var string $search 11 * @var string $title 12 * @var Tree $tree 13 */ 14 15?> 16 17<h2 class="wt-page-title"> 18 <?= $title ?> 19</h2> 20 21<form method="post" action="<?= e(route(SearchReplaceAction::class, ['tree' => $tree->name()])) ?>" class="wt-page-options wt-page-options-ancestors-chart hidden-print"> 22 <div class="row"> 23 <label class="col-sm-3 col-form-label wt-page-options-label" for="search"> 24 <?= I18N::translate('Search for') ?> 25 </label> 26 <div class="col-sm-9 wt-page-options-value"> 27 <input class="form-control" id="search" name="search" value="<?= e($search) ?>" type="text" autofocus> 28 </div> 29 </div> 30 31 <div class="row"> 32 <label class="col-sm-3 col-form-label wt-page-options-label" for="replace"> 33 <?= I18N::translate('Replace with') ?> 34 </label> 35 <div class="col-sm-9 wt-page-options-value"> 36 <input class="form-control" id="replace" name="replace" value="<?= e($replace) ?>" type="text"> 37 </div> 38 </div> 39 40 <div class="row"> 41 <label class="col-sm-3 col-form-label wt-page-options-label"> 42 <?= /* I18N: A button label. */ I18N::translate('Search') ?> 43 </label> 44 <div class="col-sm-9 wt-page-options-value"> 45 <?= view('components/radios-inline', ['name' => 'context', 'options' => ['all' => I18N::translate('Entire record'), 'name' => I18N::translate('Names'), 'place' => I18N::translate('Places')], 'selected' => $context]) ?> 46 </div> 47 </div> 48 <div class="row"> 49 <label class="col-sm-3 col-form-label wt-page-options-label"></label> 50 <div class="col-sm-9 wt-page-options-value"> 51 <input class="btn btn-primary" type="submit" value="<?= /* I18N: A button label. */ I18N::translate('replace') ?>"> 52 </div> 53 </div> 54 55 <?= csrf_field() ?> 56</form> 57