xref: /webtrees/resources/views/edit/icon-fact-delete.phtml (revision 00e28091d5dbdf816443155193c9fd33a0b3dd34)
1<?php
2
3use Fisharebest\Webtrees\Http\RequestHandlers\DeleteFact;
4use Fisharebest\Webtrees\I18N;
5
6?>
7
8<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') ?>">
9    <?= view('icons/delete') ?>
10    <span class="sr-only"><?= I18N::translate('Delete') ?></span>
11</a>
12