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