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