xref: /webtrees/resources/views/modules/charts/config.phtml (revision a81396241f8b2caf70988b1979e1927e5c8e9398)
1<?php
2
3declare(strict_types=1);
4
5use Fisharebest\Webtrees\I18N;
6use Fisharebest\Webtrees\Individual;
7use Fisharebest\Webtrees\Tree;
8
9/**
10 * @var array<string,string> $charts
11 * @var Individual|null      $individual
12 * @var Tree                 $tree
13 * @var string               $type
14 */
15
16?>
17
18<div class="row mb-3">
19    <label class="col-sm-3 col-form-label" for="type">
20        <?= I18N::translate('Chart type') ?>
21    </label>
22    <div class="col-sm-9">
23        <?= view('components/select', ['name' => 'type', 'selected' => $type, 'options' => $charts]) ?>
24    </div>
25</div>
26
27<div class="row mb-3">
28    <label class="col-sm-3 col-form-label" for="xref">
29        <label for="xref">
30            <?= I18N::translate('Individual') ?>
31        </label>
32    </label>
33    <div class="col-sm-9">
34        <?= view('components/select-individual', ['name' => 'xref', 'individual' => $individual, 'tree' => $tree]) ?>
35    </div>
36</div>
37