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