xref: /webtrees/resources/views/modules/fix-search-and-replace/options.phtml (revision e3c147d0d53873311b7c137c41b4439e01d4189e)
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 form-group">
17    <label class="col-sm-3 col-form-label" for="search">
18        <?= I18N::translate('Search text/pattern') ?>
19    </label>
20
21    <div class="col-sm-9">
22        <input class="form-control" id="search" name="search">
23    </div>
24</div>
25
26<div class="row form-group">
27    <label class="col-sm-3 col-form-label" for="replace">
28        <?= I18N::translate('Replacement text') ?>
29    </label>
30
31    <div class="col-sm-9">
32        <input class="form-control" id="replace" name="replace">
33    </div>
34</div>
35
36<div class="row form-group">
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>
44</div>
45
46<div class="row form-group">
47    <label class="col-sm-3 col-form-label" for="case">
48        <?= I18N::translate('Case insensitive') ?>
49    </label>
50
51    <div class="col-sm-9">
52        <?= view('components/radios-inline', ['name' => 'case', 'selected' => '', 'options' => [''  => I18N::translate('no'), 'i' => I18N::translate('yes')]]) ?>
53        <p class="small text-muted">
54            <?= /* I18N: Help text for "Case insensitive" searches */ I18N::translate('Match both upper and lower case letters.') ?>
55        </p>
56    </div>
57</div>
58
59<div class="row form-group">
60    <label class="col-sm-3 col-form-label" for="type">
61        <?= I18N::translate('Records') ?>
62    </label>
63
64    <div class="col-sm-9">
65        <?= view('components/select', ['name' => 'type', 'options' => $types, 'selected' => $default_type]) ?>
66    </div>
67</div>
68