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