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