xref: /webtrees/resources/views/modules/todo/research-tasks.phtml (revision e24053e5c68a36a62ca2714caf7fca093e7dc791)
1<?php
2
3use Fisharebest\Webtrees\I18N;
4
5?>
6
7<table
8    class="table table-bordered table-sm wt-table-tasks datatables d-none"
9    <?= view('lists/datatables-attributes') ?>
10    <?php if ($tasks->count() < $limit * 2) : ?>
11        data-paging="false"
12    <?php endif ?>
13    data-filter="false"
14    data-info="false"
15    data-length-change="false"
16>
17    <thead>
18        <tr>
19            <th class="d-none d-md-table-cell wt-side-block-optional">
20                <?= I18N::translate('Date') ?>
21            </th>
22            <th>
23                <?= I18N::translate('Record') ?>
24            </th>
25            <th class="d-none d-md-table-cell wt-side-block-optional">
26                <?= I18N::translate('Username') ?>
27            </th>
28            <th>
29                <?= I18N::translate('Research task') ?>
30            </th>
31        </tr>
32    </thead>
33
34    <tbody>
35        <?php foreach ($tasks as $task) : ?>
36            <tr>
37                <td data-sort="<?= $task->date()->julianDay() ?>" class="d-none d-md-table-cell wt-side-block-optional">
38                    <?= $task->date()->display() ?>
39                </td>
40                <td data-sort="<?= e($task->record()->sortName()) ?>">
41                    <a href="<?= e($task->record()->url()) ?>">
42                        <?= $task->record()->fullName() ?>
43                    </a>
44                </td>
45                <td class="d-none d-md-table-cell wt-side-block-optional">
46                    <?= e($task->attribute('_WT_USER')) ?>
47                </td>
48                <td dir="auto">
49                    <?= e($task->value()) ?>
50                </td>
51            </tr>
52        <?php endforeach ?>
53    </tbody>
54</table>
55