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