xref: /webtrees/resources/views/admin/fix-level-0-media-action.phtml (revision ac71572d8462e396ed5a307f05b29381e49f9e6e)
1<?php
2
3declare(strict_types=1);
4
5use Fisharebest\Webtrees\Fact;
6use Fisharebest\Webtrees\I18N;
7use Fisharebest\Webtrees\Individual;
8use Fisharebest\Webtrees\Media;
9
10/**
11 * @var Fact       $fact
12 * @var Individual $individual
13 * @var Media      $media
14 */
15?>
16
17<button
18class="btn btn-primary btn-small mb-1 wt-fix-button"
19data-wt-confirm="<?= I18N::translate('Move the media object?') ?>"
20data-fact-id="<?= e($fact->id()) ?>"
21data-tree-id="<?= e($individual->tree()->id()) ?>"
22data-individual-xref="<?= e($individual->xref()) ?>"
23data-media-xref="<?= e($media->xref()) ?>"
24type="button"
25>
26    <?= $fact->label() ?>
27    <?= $fact->value() ?>
28    <?= $fact->date()->display(null, '%Y') ?>
29</button>
30