xref: /webtrees/resources/views/modules/fix-search-and-replace/options.phtml (revision ce42304a0e3b715b5830d587f136ecd5ca69f11b)
1*ce42304aSGreg Roach<?php
2*ce42304aSGreg Roach
3*ce42304aSGreg Roachdeclare(strict_types=1);
4*ce42304aSGreg Roach
5*ce42304aSGreg Roachuse Fisharebest\Webtrees\I18N;
6*ce42304aSGreg Roach
7*ce42304aSGreg Roach/**
8*ce42304aSGreg Roach * @var string               $default_method
9*ce42304aSGreg Roach * @var string               $default_type
10*ce42304aSGreg Roach * @var array<string,string> $methods
11*ce42304aSGreg Roach * @var array<string,string> $types
12*ce42304aSGreg Roach */
13*ce42304aSGreg Roach
14*ce42304aSGreg Roach?>
15*ce42304aSGreg Roach
16*ce42304aSGreg Roach<div class="row form-group">
17*ce42304aSGreg Roach    <label class="col-sm-3 col-form-label" for="search">
18*ce42304aSGreg Roach        <?= I18N::translate('Search text/pattern') ?>
19*ce42304aSGreg Roach    </label>
20*ce42304aSGreg Roach
21*ce42304aSGreg Roach    <div class="col-sm-9">
22*ce42304aSGreg Roach        <input class="form-control" id="search" name="search">
23*ce42304aSGreg Roach    </div>
24*ce42304aSGreg Roach</div>
25*ce42304aSGreg Roach
26*ce42304aSGreg Roach<div class="row form-group">
27*ce42304aSGreg Roach    <label class="col-sm-3 col-form-label" for="replace">
28*ce42304aSGreg Roach        <?= I18N::translate('Replacement text') ?>
29*ce42304aSGreg Roach    </label>
30*ce42304aSGreg Roach
31*ce42304aSGreg Roach    <div class="col-sm-9">
32*ce42304aSGreg Roach        <input class="form-control" id="replace" name="replace">
33*ce42304aSGreg Roach    </div>
34*ce42304aSGreg Roach</div>
35*ce42304aSGreg Roach
36*ce42304aSGreg Roach<div class="row form-group">
37*ce42304aSGreg Roach    <label class="col-sm-3 col-form-label">
38*ce42304aSGreg Roach        <?= I18N::translate('Search method') ?>
39*ce42304aSGreg Roach    </label>
40*ce42304aSGreg Roach
41*ce42304aSGreg Roach    <div class="col-sm-9">
42*ce42304aSGreg Roach        <?= view('components/select', ['name' => 'method', 'options' => $methods, 'selected' => $default_method]) ?>
43*ce42304aSGreg Roach    </div>
44*ce42304aSGreg Roach</div>
45*ce42304aSGreg Roach
46*ce42304aSGreg Roach<div class="row form-group">
47*ce42304aSGreg Roach    <label class="col-sm-3 col-form-label" for="case">
48*ce42304aSGreg Roach        <?= I18N::translate('Case insensitive') ?>
49*ce42304aSGreg Roach    </label>
50*ce42304aSGreg Roach
51*ce42304aSGreg Roach    <div class="col-sm-9">
52*ce42304aSGreg Roach        <?= view('components/radios-inline', ['name' => 'case', 'selected' => '', 'options' => [''  => I18N::translate('no'), 'i' => I18N::translate('yes')]]) ?>
53*ce42304aSGreg Roach        <p class="small text-muted">
54*ce42304aSGreg Roach            <?= /* I18N: Help text for "Case insensitive" searches */ I18N::translate('Match both upper and lower case letters.') ?>
55*ce42304aSGreg Roach        </p>
56*ce42304aSGreg Roach    </div>
57*ce42304aSGreg Roach</div>
58*ce42304aSGreg Roach
59*ce42304aSGreg Roach<div class="row form-group">
60*ce42304aSGreg Roach    <label class="col-sm-3 col-form-label" for="type">
61*ce42304aSGreg Roach        <?= I18N::translate('Records') ?>
62*ce42304aSGreg Roach    </label>
63*ce42304aSGreg Roach
64*ce42304aSGreg Roach    <div class="col-sm-9">
65*ce42304aSGreg Roach        <?= view('components/select', ['name' => 'type', 'options' => $types, 'selected' => $default_type]) ?>
66*ce42304aSGreg Roach    </div>
67*ce42304aSGreg Roach</div>
68