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