xref: /webtrees/resources/views/modules/yahrzeit/table.phtml (revision 37231d1e839cad24e911f38c73f4dc77a58e3eec)
1<?php use Fisharebest\Webtrees\I18N; ?>
2
3<table class="table table-sm datatable wt-table-yahrzeits" data-info="false" data-paging="false" data-searching="false" data-sorting="<?= e('[[3, "asc" ]]') ?>">
4    <thead>
5        <tr>
6            <th><?= I18N::translate('Name') ?></th>
7            <th><?= I18N::translate('Death') ?></th>
8            <th><i class="icon-reminder" title="<?= I18N::translate('Anniversary') ?>"></i></th>
9            <th><?= I18N::translate('Yahrzeit') ?></th>
10        </tr>
11    </thead>
12    <tbody>
13
14        <?php foreach ($yahrzeits as $yahrzeit) : ?>
15            <tr>
16                <td data-sort="<?= e($yahrzeit->individual->getSortName()) ?>">
17                    <a href="<?= e($yahrzeit->individual->url()) ?>">
18                        <?= $yahrzeit->individual->getFullname() ?>
19                        <?php if ($yahrzeit->individual->getAddName()) : ?>
20                        <br>
21                            <?= $yahrzeit->individual->getAddName() ?>
22                        <?php endif ?>
23                    </a>
24                </td>
25                <td data-sort="<?= e($yahrzeit->fact_date->julianDay()) ?>">
26                    <?= $yahrzeit->fact_date->display(true) ?>
27                </td>
28                <td data-sort="<?= e($yahrzeit->fact->anniv) ?>">
29                    <?= I18N::number($yahrzeit->fact->anniv) ?>
30                </td>
31                <td data-sort="<?= e($yahrzeit->yahrzeit_date->julianDay()) ?>">
32                    <?= $yahrzeit->yahrzeit_date->display(true) ?>
33                </td>
34            </tr>
35        <?php endforeach ?>
36    </tbody>
37</table>
38
39<script>
40  $(".wt-table-yahrzeits").dataTable();
41</script>
42