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