xref: /webtrees/resources/views/modules/todo/research-tasks.phtml (revision 37f4d1f0a7a5610284a8bb3182a07ec4441c9fc7)
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    data-columns="[null, null, null, null]"
11    data-info="false"
12    data-paging="false"
13    data-searching="false"
14>
15    <thead>
16        <tr>
17            <th class="d-none d-md-table-cell wt-side-block-optional">
18                <?= I18N::translate('Date') ?>
19            </th>
20            <th>
21                <?= I18N::translate('Record') ?>
22            </th>
23            <th class="d-none d-md-table-cell wt-side-block-optional">
24                <?= I18N::translate('Username') ?>
25            </th>
26            <th>
27                <?= I18N::translate('Research task') ?>
28            </th>
29        </tr>
30    </thead>
31
32    <tbody>
33        <?php foreach ($tasks as $task) : ?>
34            <tr>
35                <td data-sort="<?= $task->date()->julianDay() ?>" class="d-none d-md-table-cell wt-side-block-optional">
36                    <?= $task->date()->display() ?>
37                </td>
38                <td data-sort="<?= e($task->record()->sortName()) ?>">
39                    <a href="<?= e($task->record()->url()) ?>">
40                        <?= $task->record()->fullName() ?>
41                    </a>
42                </td>
43                <td class="d-none d-md-table-cell wt-side-block-optional">
44                    <?= e($task->attribute('_WT_USER')) ?>
45                </td>
46                <td dir="auto">
47                    <?= e($task->value()) ?>
48                </td>
49            </tr>
50        <?php endforeach ?>
51    </tbody>
52</table>
53