xref: /webtrees/resources/views/modules/compact-chart/page.phtml (revision 10e0649788c8d7d4974d81c048ca2b225df8f22e)
171378461SGreg Roach<?php
271378461SGreg Roach
3*10e06497SGreg Roachdeclare(strict_types=1);
4*10e06497SGreg Roach
571378461SGreg Roachuse Fisharebest\Webtrees\I18N;
67c2c99faSGreg Roachuse Fisharebest\Webtrees\Individual;
77c2c99faSGreg Roachuse Fisharebest\Webtrees\Tree;
87c2c99faSGreg Roach
97c2c99faSGreg Roach/**
107c2c99faSGreg Roach * @var string     $ajax_url
117c2c99faSGreg Roach * @var string     $title
127c2c99faSGreg Roach * @var Individual $individual
137c2c99faSGreg Roach * @var Tree       $tree
147c2c99faSGreg Roach */
1571378461SGreg Roach
1671378461SGreg Roach?>
179b5537c3SGreg Roach
189b5537c3SGreg Roach<h2 class="wt-page-title">
199b5537c3SGreg Roach    <?= $title ?>
209b5537c3SGreg Roach</h2>
219b5537c3SGreg Roach
2271378461SGreg Roach<form method="post" class="wt-page-options wt-page-options-compact-chart d-print-none">
239e3c2cf9SGreg Roach    <div class="row">
249b5537c3SGreg Roach        <label class="col-sm-3 col-form-label wt-page-options-label" for="xref">
259b5537c3SGreg Roach            <?= I18N::translate('Individual') ?>
269b5537c3SGreg Roach        </label>
279b5537c3SGreg Roach        <div class="col-sm-9 wt-page-options-value">
2800efc03cSGreg Roach            <?= view('components/select-individual', ['name' => 'xref', 'individual' => $individual, 'tree' => $tree, 'required' => true]) ?>
299b5537c3SGreg Roach        </div>
309b5537c3SGreg Roach    </div>
319b5537c3SGreg Roach
329e3c2cf9SGreg Roach    <div class="row mb-3">
339b5537c3SGreg Roach        <div class="col-sm-3 wt-page-options-label"></div>
349b5537c3SGreg Roach        <div class="col-sm-9 wt-page-options-value">
359b5537c3SGreg Roach            <input class="btn btn-primary" type="submit" value="<?= /* I18N: A button label. */ I18N::translate('view') ?>">
369b5537c3SGreg Roach        </div>
379b5537c3SGreg Roach    </div>
3881443e3cSGreg Roach
3981443e3cSGreg Roach    <?= csrf_field() ?>
409b5537c3SGreg Roach</form>
419b5537c3SGreg Roach
42d4786c66SGreg Roach<div class="wt-ajax-load wt-page-content wt-chart wt-chart-compact" data-wt-ajax-url="<?= e($ajax_url) ?>"></div>
43