xref: /webtrees/resources/views/modules/pedigree-map/page.phtml (revision 090a06287954f43677f06ea778b3f67c029de8fe)
1<?php
2
3use Fisharebest\Webtrees\I18N;
4use Fisharebest\Webtrees\Individual;
5use Fisharebest\Webtrees\Tree;
6
7/**
8 * @var int        $generations
9 * @var Individual $individual
10 * @var string     $map
11 * @var int        $maxgenerations
12 * @var string     $title
13 * @var Tree       $tree
14 */
15
16?>
17
18<h2 class="wt-page-title"><?= $title ?></h2>
19
20<form method="post" class="wt-page-options wt-page-options-pedigreemap-chart d-print-none">
21    <?= csrf_field() ?>
22
23    <div class="form-group 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="form-group 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="form-group 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</form>
50
51
52<div class="wt-ajax-load wt-page-content">
53    <?= $map ?>
54</div>
55
56