blob: db512e29402da0d00c8b3c901f373b51a1e5a999 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
<?php
declare(strict_types=1);
use Fisharebest\Webtrees\Fact;
use Fisharebest\Webtrees\Family;
use Fisharebest\Webtrees\I18N;
use Illuminate\Support\Collection;
/**
* @var bool $can_upload_media
* @var Collection<int,Fact> $clipboard_facts
* @var Collection<int,Fact> $facts
* @var Family $record
*/
?>
<?= view('family-page-pending', ['record' => $record]) ?>
<div class="d-flex mb-4">
<h2 class="wt-page-title mx-auto">
<?= $record->fullName() ?>
</h2>
<?php if ($record->canEdit()) : ?>
<?= view('family-page-menu', ['can_upload_media' => $can_upload_media, 'clipboard_facts' => $clipboard_facts, 'record' => $record]) ?>
<?php endif ?>
</div>
<div class="wt-page-content">
<div class="wt-family-members d-flex">
<?= view('family-page-children', ['family' => $record]) ?>
<?= view('family-page-parents', ['family' => $record]) ?>
</div>
<h3 class="mt-4"><?= I18N::translate('Facts and events') ?></h3>
<table class="table wt-facts-table">
<?php if ($facts->isEmpty()) : ?>
<tr>
<td colspan="2">
<?= I18N::translate('No facts exist for this family.') ?>
</td>
</tr>
<?php else : ?>
<?php foreach ($facts as $fact) : ?>
<?= view('fact', ['fact' => $fact, 'record' => $record]) ?>
<?php endforeach ?>
<?php endif ?>
<?php if ($record->canEdit()) : ?>
<?= view('fact-add-new', ['record' => $record]) ?>
<?php endif ?>
</table>
</div>
<?= view('modals/ajax') ?>
|