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