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