xref: /webtrees/resources/views/modules/interactive-tree/page.phtml (revision 9b152ff9230017d2c03aa1bf603a98b18250446d)
1<?php
2
3use Fisharebest\Webtrees\I18N;
4use Fisharebest\Webtrees\View;
5
6?>
7
8<h2 class="wt-page-title">
9    <?= $title ?>
10</h2>
11
12<form method="post" class="wt-page-options wt-page-options-compact-chart d-print-none">
13    <?= csrf_field() ?>
14
15    <div class="row form-group">
16        <label class="col-sm-3 col-form-label wt-page-options-label" for="xref">
17            <?= I18N::translate('Individual') ?>
18        </label>
19        <div class="col-sm-9 wt-page-options-value">
20            <?= view('components/select-individual', ['name' => 'xref', 'individual' => $individual, 'tree' => $individual->tree(), 'required' => true]) ?>
21        </div>
22    </div>
23
24    <div class="row form-group">
25        <div class="col-sm-3 wt-page-options-label"></div>
26        <div class="col-sm-9 wt-page-options-value">
27            <input class="btn btn-primary" type="submit" value="<?= /* I18N: A button label. */
28            I18N::translate('view') ?>">
29        </div>
30    </div>
31</form>
32
33<div class="wt-page-content wt-chart wt-chart-interactive">
34    <?= $html ?>
35</div>
36
37<?php View::push('javascript') ?>
38<script>
39    <?= $js ?>
40</script>
41<?php View::endpush() ?>
42