xref: /webtrees/resources/views/modules/pedigree-map/page.phtml (revision 10e0649788c8d7d4974d81c048ca2b225df8f22e)
1<?php
2
3declare(strict_types=1);
4
5use Fisharebest\Webtrees\I18N;
6use Fisharebest\Webtrees\Individual;
7use Fisharebest\Webtrees\Tree;
8
9/**
10 * @var int        $generations
11 * @var Individual $individual
12 * @var string     $map
13 * @var int        $maxgenerations
14 * @var string     $title
15 * @var Tree       $tree
16 */
17
18?>
19
20<h2 class="wt-page-title"><?= $title ?></h2>
21
22<form method="post" class="wt-page-options wt-page-options-pedigreemap-chart d-print-none">
23    <div class="row">
24        <label class="col-sm-3 col-form-label wt-page-options-label" for="xref">
25            <?= I18N::translate('Individual') ?>
26        </label>
27        <div class="col-sm-9 wt-page-options-value">
28            <?= view('components/select-individual', ['name' => 'xref', 'individual' => $individual, 'tree' => $tree, 'required' => true]) ?>
29        </div>
30    </div>
31
32    <div class="row">
33        <label class="col-sm-3 col-form-label wt-page-options-label" for="generations">
34            <?= I18N::translate('Generations') ?>
35        </label>
36        <div class="col-sm-9 wt-page-options-value">
37            <?= view('components/select-number', ['name' => 'generations', 'selected' => $generations, 'options' => range(2, $maxgenerations)]) ?>
38        </div>
39    </div>
40
41    <div class="row">
42        <div class="col-sm-3 wt-page-options-label"></div>
43        <div class="col-sm-9 wt-page-options-value">
44            <input class="btn btn-primary" type="submit" value="<?= /* I18N: A button label. */
45            I18N::translate('view')
46            ?>">
47        </div>
48    </div>
49
50    <?= csrf_field() ?>
51</form>
52
53
54<div class="wt-ajax-load wt-page-content">
55    <?= $map ?>
56</div>
57
58