xref: /webtrees/resources/views/note-page.phtml (revision 30e63383b10bafff54347985dcdbd10c40c33f62)
1<?php
2
3use Fisharebest\Webtrees\Fact;
4use Fisharebest\Webtrees\Family;
5use Fisharebest\Webtrees\Individual;
6use Fisharebest\Webtrees\Media;
7use Fisharebest\Webtrees\Note;
8use Fisharebest\Webtrees\Source;
9use Fisharebest\Webtrees\Tree;
10use Illuminate\Support\Collection;
11
12/**
13 * @var Note                   $record
14 * @var Collection<Fact>       $clipboard_facts
15 * @var Collection<Family>     $linked_families
16 * @var Collection<Individual> $linked_individuals
17 * @var Collection<Media>      $linked_media_objects
18 * @var Collection<Source>     $linked_sources
19 * @var Tree                   $tree
20 */
21
22?>
23
24<?= view('note-page-pending', ['record' => $record]) ?>
25
26<div class="d-flex mb-4">
27    <h2 class="wt-page-title mx-auto">
28        <?= $record->fullName() ?>
29    </h2>
30    <?php if ($record->canEdit()) : ?>
31        <?= view('record-page-menu', ['clipboard_facts' => $clipboard_facts, 'record' => $record]) ?>
32    <?php endif ?>
33</div>
34
35<div class="wt-page-content">
36    <?= view('record-page-links', [
37        'details'              => view('note-page-details', ['clipboard_facts' => $clipboard_facts, 'record' => $record]),
38        'linked_families'      => $linked_families,
39        'linked_individuals'   => $linked_individuals,
40        'linked_media_objects' => $linked_media_objects,
41        'linked_notes'         => null,
42        'linked_sources'       => $linked_sources,
43        'tree'                 => $tree,
44    ]) ?>
45</div>
46
47<?= view('modals/ajax') ?>
48