1<?php 2 3declare(strict_types=1); 4 5use Fisharebest\Webtrees\I18N; 6 7/** 8 * @var string $default_method 9 * @var string $default_type 10 * @var array<string,string> $methods 11 * @var array<string,string> $types 12 */ 13 14?> 15 16<div class="row mb-3"> 17 <label class="col-sm-3 col-form-label" for="search-for"> 18 <?= I18N::translate('Search text/pattern') ?> 19 </label> 20 21 <div class="col-sm-9"> 22 <input class="form-control" id="search-for" name="search-for"> 23 </div> 24</div> 25 26<div class="row mb-3"> 27 <label class="col-sm-3 col-form-label" for="replace-with"> 28 <?= I18N::translate('Replacement text') ?> 29 </label> 30 31 <div class="col-sm-9"> 32 <input class="form-control" id="replace-with" name="replace-with"> 33 </div> 34</div> 35 36<div class="row mb-3"> 37 <label class="col-sm-3 col-form-label"> 38 <?= I18N::translate('Search method') ?> 39 </label> 40 41 <div class="col-sm-9"> 42 <?= view('components/select', ['name' => 'method', 'options' => $methods, 'selected' => $default_method]) ?> 43 <div class="form-text"> 44 <?= I18N::translate('Regular expressions are an advanced pattern matching technique.') ?> 45 <?= I18N::translate('See %s for more information.', '<a href="https://php.net/manual/regexp.reference.php">php.net/manual/regexp.reference.php</a>') ?> 46 </div> 47 </div> 48</div> 49 50<div class="row mb-3"> 51 <label class="col-sm-3 col-form-label" for="case"> 52 <?= I18N::translate('Match both upper and lower case letters.') ?> 53 </label> 54 55 <div class="col-sm-9"> 56 <?= view('components/radios-inline', ['name' => 'case', 'selected' => '', 'options' => ['' => I18N::translate('no'), 'i' => I18N::translate('yes')]]) ?> 57 </div> 58</div> 59 60<div class="row mb-3"> 61 <label class="col-sm-3 col-form-label" for="type"> 62 <?= I18N::translate('Records') ?> 63 </label> 64 65 <div class="col-sm-9"> 66 <?= view('components/select', ['name' => 'type', 'options' => $types, 'selected' => $default_type]) ?> 67 </div> 68</div> 69