xref: /webtrees/resources/views/branches-page.phtml (revision 71378461661e7642e52abe7d41c9cfffb3e5369b)
1<?php
2
3use Fisharebest\Webtrees\Http\RequestHandlers\ModuleAction;
4use Fisharebest\Webtrees\I18N;
5
6?>
7
8<h2 class="wt-page-title">
9    <?= $title ?>
10</h2>
11
12<form method="get" action="<?= e(route('module', ['module' => $module, 'action' => $action])) ?>" class="wt-page-options wt-page-options-branches d-print-none">
13    <input type="hidden" name="route" value="<?= e('/module/' . $module . '/' . $action) ?>">
14    <input type="hidden" name="ged" value="<?= e($tree->name()) ?>">
15
16    <div class="form-group row">
17        <label class="col-form-label col-sm-3 wt-page-options-label" for="surname">
18            <?= I18N::translate('Surname') ?>
19        </label>
20        <div class="col-sm-9 wt-page-options-value">
21            <input class="form-control" data-autocomplete-type="SURN" type="text" name="surname" id="surname" value="<?= e($surname) ?>" dir="auto">
22        </div>
23    </div>
24
25    <fieldset class="form-group">
26        <div class="row">
27            <legend class="col-form-label col-sm-3 wt-page-options-label">
28                <?= I18N::translate('Phonetic search') ?>
29            </legend>
30            <div class="col-sm-9 wt-page-options-value">
31                <?= view('components/checkbox-inline', ['label' => I18N::translate('Russell'), 'name' => 'soundex_std', 'checked' => $soundex_std]) ?>
32                <?= view('components/checkbox-inline', ['label' => I18N::translate('Daitch-Mokotoff'), 'name' => 'soundex_dm', 'checked' => $soundex_dm]) ?>
33            </div>
34        </div>
35    </fieldset>
36
37    <div class="form-group row">
38        <div class="col-sm-3 wt-page-options-label">
39        </div>
40        <div class="col-sm-9 wt-page-options-value">
41            <button type="submit" class="btn btn-primary">
42                <?= /* I18N: A button label. */ I18N::translate('view') ?>
43            </button>
44        </div>
45    </div>
46</form>
47
48<?php if ($surname !== '') : ?>
49    <div class="wt-ajax-load wt-page-content wt-chart wt-branches" data-ajax-url="<?= e(route('module', ['module' => $module, 'action' => 'List', 'surname' => $surname, 'soundex_std' => $soundex_std, 'soundex_dm' => $soundex_dm, 'ged' => $tree->name()])) ?>"></div>
50<?php endif ?>
51