xref: /webtrees/resources/views/edit/icon-fact-edit.phtml (revision ac71572d8462e396ed5a307f05b29381e49f9e6e)
1<?php
2
3declare(strict_types=1);
4
5use Fisharebest\Webtrees\Fact;
6use Fisharebest\Webtrees\Http\RequestHandlers\EditFactPage;
7use Fisharebest\Webtrees\I18N;
8
9/**
10 * @var Fact        $fact
11 * @var string|null $url
12 */
13
14?>
15
16<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') ?>">
17    <?= view('icons/edit') ?>
18    <span class="visually-hidden"><?= I18N::translate('Edit') ?></span>
19</a>
20