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