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