xref: /webtrees/resources/views/modules/fix-search-and-replace/options.phtml (revision 30e63383b10bafff54347985dcdbd10c40c33f62)
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        <p class="small text-muted">
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        </p>
47    </div>
48</div>
49
50<div class="row form-group">
51    <label class="col-sm-3 col-form-label" for="case">
52        <?= I18N::translate('Case insensitive') ?>
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        <p class="small text-muted">
58            <?= /* I18N: Help text for "Case insensitive" searches */ I18N::translate('Match both upper and lower case letters.') ?>
59        </p>
60    </div>
61</div>
62
63<div class="row form-group">
64    <label class="col-sm-3 col-form-label" for="type">
65        <?= I18N::translate('Records') ?>
66    </label>
67
68    <div class="col-sm-9">
69        <?= view('components/select', ['name' => 'type', 'options' => $types, 'selected' => $default_type]) ?>
70    </div>
71</div>
72