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