xref: /webtrees/resources/views/modules/todo/research-tasks.phtml (revision 1581e36eec57f11b12a03a1213501f41df10ee12)
1<?php
2
3use Fisharebest\Webtrees\I18N;
4
5?>
6
7<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">
8    <thead>
9        <tr>
10            <th class="d-none d-md-table-cell wt-side-block-optional">
11                <?= I18N::translate('Date') ?>
12            </th>
13            <th>
14                <?= I18N::translate('Record') ?>
15            </th>
16            <th class="d-none d-md-table-cell wt-side-block-optional">
17                <?= I18N::translate('Username') ?>
18            </th>
19            <th>
20                <?= I18N::translate('Research task') ?>
21            </th>
22        </tr>
23    </thead>
24
25    <tbody>
26        <?php foreach ($tasks as $task) : ?>
27            <tr>
28                <td data-sort="<?= $task->date()->julianDay() ?>" class="d-none d-md-table-cell wt-side-block-optional">
29                    <?= $task->date()->display() ?>
30                </td>
31                <td data-sort="<?= e($task->record()->sortName()) ?>">
32                    <a href="<?= e($task->record()->url()) ?>">
33                        <?= $task->record()->fullName() ?>
34                    </a>
35                </td>
36                <td class="d-none d-md-table-cell wt-side-block-optional">
37                    <?= e($task->attribute('_WT_USER')) ?>
38                </td>
39                <td dir="auto">
40                    <?= e($task->value()) ?>
41                </td>
42            </tr>
43        <?php endforeach ?>
44    </tbody>
45</table>
46