xref: /webtrees/resources/views/modules/interactive-tree/page.phtml (revision 10e0649788c8d7d4974d81c048ca2b225df8f22e)
1<?php
2
3declare(strict_types=1);
4
5use Fisharebest\Webtrees\I18N;
6use Fisharebest\Webtrees\Individual;
7use Fisharebest\Webtrees\View;
8
9/**
10 * @var string     $html
11 * @var Individual $individual
12 * @var string     $js
13 * @var string     $title
14 */
15
16?>
17
18<h2 class="wt-page-title">
19    <?= $title ?>
20</h2>
21
22<form method="post" class="wt-page-options wt-page-options-compact-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' => $individual->tree(), 'required' => true]) ?>
29        </div>
30    </div>
31
32    <div class="row mb-3">
33        <div class="col-sm-3 wt-page-options-label"></div>
34        <div class="col-sm-9 wt-page-options-value">
35            <input class="btn btn-primary" type="submit" value="<?= /* I18N: A button label. */
36            I18N::translate('view') ?>">
37        </div>
38    </div>
39
40    <?= csrf_field() ?>
41</form>
42
43<div class="wt-page-content wt-chart wt-chart-interactive">
44    <?= $html ?>
45</div>
46
47<?php View::push('javascript') ?>
48<script>
49    <?= $js ?>
50</script>
51<?php View::endpush() ?>
52