xref: /webtrees/resources/views/modules/pedigree-map/page.phtml (revision 89d880da80f202b08b9fe837f38a87b48c6d2a97)
1<?php use Fisharebest\Webtrees\I18N; ?>
2<?php use Fisharebest\Webtrees\Functions\FunctionsEdit; ?>
3
4<h2 class="wt-page-title"><?= $title ?></h2>
5
6<form class="wt-page-options wt-page-options-pedigreemap-chart d-print-none">
7    <input type="hidden" name="route" value="module">
8    <input type="hidden" name="module" value="<?= e($module_name) ?>">
9    <input type="hidden" name="action" value="PedigreeMap">
10    <input type="hidden" name="ged" value="<?= e($tree->name()) ?>">
11
12    <div class="form-group row">
13        <label class="col-sm-3 col-form-label wt-page-options-label" for="xref">
14            <?= I18N::translate('Individual') ?>
15        </label>
16        <div class="col-sm-9 wt-page-options-value">
17            <?= view('components/select-individual', ['name' => 'xref', 'individual' => $individual, 'tree' => $tree]) ?>
18        </div>
19    </div>
20
21    <div class="form-group row">
22        <label class="col-sm-3 col-form-label wt-page-options-label" for="generations">
23            <?= I18N::translate('Generations') ?>
24        </label>
25        <div class="col-sm-9 wt-page-options-value">
26            <?= view('components/select', ['name' => 'generations', 'selected' => $generations, 'options' => FunctionsEdit::numericOptions(range(2, $maxgenerations))]) ?>
27        </div>
28    </div>
29
30    <div class="form-group row">
31        <div class="col-sm-3 wt-page-options-label"></div>
32        <div class="col-sm-9 wt-page-options-value">
33            <input class="btn btn-primary" type="submit" value="<?= /* I18N: A button label. */
34            I18N::translate('view')
35            ?>">
36        </div>
37    </div>
38</form>
39
40
41<div class="wt-ajax-load wt-page-content">
42    <?= $map ?>
43</div>
44
45