xref: /webtrees/resources/views/branches-page.phtml (revision 00b1984e374faddab4698e73088f0c964e529b65)
1<?php
2
3use Fisharebest\Webtrees\I18N;
4
5?>
6
7<h2 class="wt-page-title">
8    <?= $title ?>
9</h2>
10
11<form method="post" class="wt-page-options wt-page-options-branches d-print-none">
12    <?= csrf_field() ?>
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" required>
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                <?= view('components/checkbox-inline', ['label' => I18N::translate('Russell'), 'name' => 'soundex_std', 'checked' => $soundex_std]) ?>
30                <?= view('components/checkbox-inline', ['label' => I18N::translate('Daitch-Mokotoff'), '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, 'tree' => $tree->name()])) ?>"></div>
48<?php endif ?>
49