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