xref: /webtrees/resources/views/admin/fix-level-0-media-action.phtml (revision 00b1984e374faddab4698e73088f0c964e529b65)
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-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(false, '%Y', false) ?>
27</button>
28