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