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