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