xref: /webtrees/resources/views/modules/interactive-tree/page.phtml (revision 10e0649788c8d7d4974d81c048ca2b225df8f22e)
117216d00SGreg Roach<?php
217216d00SGreg Roach
3*10e06497SGreg Roachdeclare(strict_types=1);
4*10e06497SGreg Roach
517216d00SGreg Roachuse Fisharebest\Webtrees\I18N;
67c2c99faSGreg Roachuse Fisharebest\Webtrees\Individual;
717216d00SGreg Roachuse Fisharebest\Webtrees\View;
817216d00SGreg Roach
97c2c99faSGreg Roach/**
107c2c99faSGreg Roach * @var string     $html
117c2c99faSGreg Roach * @var Individual $individual
127c2c99faSGreg Roach * @var string     $js
137c2c99faSGreg Roach * @var string     $title
147c2c99faSGreg Roach */
157c2c99faSGreg Roach
1617216d00SGreg Roach?>
17575707d1SGreg Roach
18575707d1SGreg Roach<h2 class="wt-page-title">
19575707d1SGreg Roach    <?= $title ?>
20575707d1SGreg Roach</h2>
21575707d1SGreg Roach
220e519608SGreg Roach<form method="post" class="wt-page-options wt-page-options-compact-chart d-print-none">
239e3c2cf9SGreg Roach    <div class="row">
24575707d1SGreg Roach        <label class="col-sm-3 col-form-label wt-page-options-label" for="xref">
25575707d1SGreg Roach            <?= I18N::translate('Individual') ?>
26575707d1SGreg Roach        </label>
27575707d1SGreg Roach        <div class="col-sm-9 wt-page-options-value">
2800efc03cSGreg Roach            <?= view('components/select-individual', ['name' => 'xref', 'individual' => $individual, 'tree' => $individual->tree(), 'required' => true]) ?>
29575707d1SGreg Roach        </div>
30575707d1SGreg Roach    </div>
31575707d1SGreg Roach
329e3c2cf9SGreg Roach    <div class="row mb-3">
33575707d1SGreg Roach        <div class="col-sm-3 wt-page-options-label"></div>
34575707d1SGreg Roach        <div class="col-sm-9 wt-page-options-value">
35575707d1SGreg Roach            <input class="btn btn-primary" type="submit" value="<?= /* I18N: A button label. */
36575707d1SGreg Roach            I18N::translate('view') ?>">
37575707d1SGreg Roach        </div>
38575707d1SGreg Roach    </div>
3981443e3cSGreg Roach
4081443e3cSGreg Roach    <?= csrf_field() ?>
41575707d1SGreg Roach</form>
42575707d1SGreg Roach
43575707d1SGreg Roach<div class="wt-page-content wt-chart wt-chart-interactive">
44575707d1SGreg Roach    <?= $html ?>
45575707d1SGreg Roach</div>
46575707d1SGreg Roach
47575707d1SGreg Roach<?php View::push('javascript') ?>
48575707d1SGreg Roach<script>
49575707d1SGreg Roach    <?= $js ?>
50575707d1SGreg Roach</script>
51575707d1SGreg Roach<?php View::endpush() ?>
52