xref: /webtrees/resources/views/edit/icon-fact-copy.phtml (revision 1821c9e596679be8717c51394b448df204b1f577)
1<?php
2
3declare(strict_types=1);
4
5use Fisharebest\Webtrees\Fact;
6use Fisharebest\Webtrees\Http\RequestHandlers\CopyFact;
7use Fisharebest\Webtrees\I18N;
8
9/**
10 * @var Fact $fact
11 */
12
13?>
14
15<a class="btn btn-link btn-sm" href="#" data-wt-post-url="<?= e(route(CopyFact::class, ['tree' => $fact->record()->tree()->name(), 'xref' => $fact->record()->xref(), 'fact_id' => $fact->id()])) ?>" title="<?= I18N::translate('Copy') ?>">
16    <?= view('icons/copy') ?>
17    <span class="visually-hidden"><?= I18N::translate('Copy') ?></span>
18</a>
19