xref: /webtrees/resources/views/modules/timeline-chart/page.phtml (revision 824da64c7ee0caf91cac88892494fc0024068397)
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-timeline-chart d-print-none">
12    <?= csrf_field() ?>
13
14    <div class="row form-group">
15        <label class="col-sm-3 col-form-label wt-page-options-label" for="add">
16            <?= I18N::translate('Individual') ?>
17        </label>
18        <div class="col-sm-9 wt-page-options-value">
19            <?= view('components/select-individual', ['name' => 'add', 'id' => 'add', 'tree' => $tree, 'required' => true]) ?>
20        </div>
21    </div>
22
23    <div class="row form-group">
24        <div class="col-form-label col-sm-3 wt-page-options-label"></div>
25        <div class="col-sm-9 wt-page-options-value">
26            <input class="btn btn-primary" type="submit" value="<?= /* I18N: A button label. */
27            I18N::translate('add') ?>">
28            <a class="btn btn-secondary" href="<?= e($reset_url) ?>">
29                <?= /* I18N: A button label. */
30                I18N::translate('reset') ?>
31            </a>
32        </div>
33    </div>
34
35    <div class="row form-group">
36        <div class="col-form-label col-sm-3 wt-page-options-label"></div>
37        <div class="col-sm-9 wt-page-options-value">
38            <a href="<?= e($zoom_in_url) ?>" title="<?= I18N::translate('Zoom in') ?>">
39                <?= view('icons/zoom-in') ?>
40            </a>
41            <a href="<?= e($zoom_out_url) ?>" title="<?= I18N::translate('Zoom out') ?>">
42                <?= view('icons/zoom-out') ?>
43            </a>
44        </div>
45    </div>
46</form>
47
48<div class="row my-4">
49    <?php foreach ($individuals as $n => $individual) : ?>
50        <div class="col-md-6 col-lg-4 col-xl-3 person<?= $n % 6 ?>">
51            <?= view('icons/sex', ['sex' => $individual->sex()]) ?>
52            <a href="<?= e($individual->url()) ?>">
53                <?= $individual->fullName() ?>
54                <?php if ($individual->alternateName() !== '') : ?>
55                    <br>
56                    <?= $individual->alternateName() ?>
57                <?php endif ?>
58            </a>
59            <a href="<?= e($remove_urls[$individual->xref()]) ?>">
60                <?= I18N::translate('Remove individual') ?>
61            </a>
62            <?php if ($individual->getBirthDate()->isOK()) : ?>
63                <br>
64                <label>
65                    <input type="checkbox" name="agebar<?= $n ?>" onclick="$('#agebox<?= $n ?>').toggle();">
66                    <?= /* I18N: an age indicator, which can be dragged around the screen */
67                    I18N::translate('Show an age cursor') ?>
68                </label>
69            <?php endif ?>
70        </div>
71    <?php endforeach ?>
72</div>
73
74<div class="wt-ajax-load wt-page-content wt-chart wt-timeline-chart" data-ajax-url="<?= e($ajax_url) ?>"></div>
75