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