xref: /webtrees/resources/views/modules/todo/research-tasks.phtml (revision 8121b9bec19818120092699199161a1357bb8f3f)
1<?php use Fisharebest\Webtrees\I18N; ?>
2
3<table class="table table-bordered table-sm datatables wt-table-tasks" data-columns="[null, null, null, null]" data-info="false" data-paging="false" data-searching="false" data-state-save="true">
4    <thead>
5        <tr>
6            <th class="d-none d-md-table-cell wt-side-block-optional">
7                <?= I18N::translate('Date') ?>
8            </th>
9            <th>
10                <?= I18N::translate('Record') ?>
11            </th>
12            <th class="d-none d-md-table-cell wt-side-block-optional">
13                <?= I18N::translate('Username') ?>
14            </th>
15            <th>
16                <?= I18N::translate('Research task') ?>
17            </th>
18        </tr>
19    </thead>
20
21    <tbody>
22        <?php foreach ($tasks as $task) : ?>
23            <tr>
24                <td data-sort="<?= $task->date()->julianDay() ?>" class="d-none d-md-table-cell wt-side-block-optional">
25                    <?= $task->date()->display() ?>
26                </td>
27                <td data-sort="<?= e($task->record()->getSortName()) ?>">
28                    <a href="<?= e($task->record()->url()) ?>">
29                        <?= $task->record()->getFullName() ?>
30                    </a>
31                </td>
32                <td class="d-none d-md-table-cell wt-side-block-optional">
33                    <?= e($task->attribute('_WT_USER')) ?>
34                </td>
35                <td dir="auto">
36                    <?= e($task->value()) ?>
37                </td>
38            </tr>
39        <?php endforeach ?>
40    </tbody>
41</table>
42