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