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