xref: /webtrees/resources/views/edit/icon-fact-copy.phtml (revision ac71572d8462e396ed5a307f05b29381e49f9e6e)
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