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