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