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