xref: /webtrees/resources/views/modules/interactive-tree/page.phtml (revision 75e7614a3c4ae5641ce6af45e2bb8ce501918735)
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 class="wt-page-options wt-page-options-compact-chart d-print-none">
13    <input type="hidden" name="route" value="module">
14    <input type="hidden" name="module" value="tree">
15    <input type="hidden" name="action" value="Chart">
16    <input type="hidden" name="ged" value="<?= e($tree->name()) ?>">
17
18    <div class="row form-group">
19        <label class="col-sm-3 col-form-label wt-page-options-label" for="xref">
20            <?= I18N::translate('Individual') ?>
21        </label>
22        <div class="col-sm-9 wt-page-options-value">
23            <?= view('components/select-individual', ['name' => 'xref', 'individual' => $individual, 'tree' => $individual->tree()]) ?>
24        </div>
25    </div>
26
27    <div class="row form-group">
28        <div class="col-sm-3 wt-page-options-label"></div>
29        <div class="col-sm-9 wt-page-options-value">
30            <input class="btn btn-primary" type="submit" value="<?= /* I18N: A button label. */
31            I18N::translate('view') ?>">
32        </div>
33    </div>
34</form>
35
36<div class="wt-page-content wt-chart wt-chart-interactive">
37    <?= $html ?>
38</div>
39
40<?php View::push('javascript') ?>
41<script>
42    <?= $js ?>
43</script>
44<?php View::endpush() ?>
45