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