xref: /webtrees/resources/views/modules/lifespans-chart/page.phtml (revision 803193fe6835fa954147d30cdf6ce1a1da6103ff)
1<?php use Fisharebest\Webtrees\I18N; ?>
2
3<h2 class="wt-page-title">
4    <?= $title ?>
5</h2>
6
7<form class="wt-page-options wt-page-options-lifespans-chart d-print-none">
8    <input type="hidden" name="route" value="module">
9    <input type="hidden" name="module" value="<?= e($module_name) ?>">
10    <input type="hidden" name="action" value="Chart">
11    <input type="hidden" name="ged" value="<?= e($tree->name()) ?>">
12
13    <?php foreach ($xrefs as $xref) : ?>
14        <input name="xrefs[]" type="hidden" value="<?= e($xref) ?>">
15    <?php endforeach ?>
16
17    <div class="row form-group">
18        <label class="col-sm-3 col-form-label wt-page-options-label" for="addxref">
19            <?= I18N::translate('Add individuals') ?>
20        </label>
21        <div class="col-sm-9 wt-page-options-value">
22            <?= view('components/select-individual', ['name' => 'addxref', 'tree' => $tree]) ?>
23            <?= view('components/checkbox', ['label' => /* I18N: Label for a configuration option */ I18N::translate('Include the individual’s immediate family'), 'name' => 'addfam']) ?>
24        </div>
25    </div>
26
27    <div class="row form-group">
28        <div class="col-sm-12 col-form-label wt-page-options-label">
29            <?= I18N::translate('Select individuals by place or date') ?>
30        </div>
31    </div>
32
33    <div class="row form-group">
34        <label class="col-sm-3 col-form-label wt-page-options-label" for="placename">
35            <?= I18N::translate('Place') ?>
36        </label>
37        <div class="col-sm-9 wt-page-options-value">
38            <input class="form-control" id="placename" name="placename" type="text" data-autocomplete-url="<?= e(route('autocomplete-place', ['query' => 'QUERY'])) ?>">
39        </div>
40    </div>
41
42    <div class="row form-group">
43        <label class="col-sm-3 col-form-label wt-page-options-label" for="start">
44            <?= I18N::translate('Start year') ?>
45        </label>
46        <div class="col-sm-9 wt-page-options-value">
47            <input class="form-control" id="start" name="start" type="text">
48        </div>
49    </div>
50
51    <div class="row form-group">
52        <label class="col-sm-3 col-form-label wt-page-options-label" for="end">
53            <?= I18N::translate('End year') ?>
54        </label>
55        <div class="col-sm-9 wt-page-options-value">
56            <input class="form-control" id="end" name="end" type="text">
57        </div>
58    </div>
59
60    <div class="row form-group">
61        <div class="col-form-label col-sm-3 wt-page-options-label"></div>
62        <div class="col-sm-9 wt-page-options-value">
63            <button type="submit" class="btn btn-primary" type="submit">
64                <?= /* I18N: A button label. */ I18N::translate('add') ?>
65            </button>
66            <a class="btn btn-secondary" href="<?= e($reset_url) ?>">
67                <?= /* I18N: A button label. */ I18N::translate('reset') ?>
68            </a>
69        </div>
70    </div>
71
72</form>
73
74<div class="wt-ajax-load wt-page-content wt-chart wt-timeline-chart" data-ajax-url="<?= e($ajax_url) ?>"></div>
75