xref: /webtrees/resources/views/edit/icon-fact-delete.phtml (revision dd7dd2a11a7399e56fa4d21fb56b0ecdff69c7d0)
1<?php use Fisharebest\Webtrees\I18N; ?>
2
3<a class="btn btn-link btn-sm" href="#" data-confirm="<?= I18N::translate('Are you sure you want to delete this fact?') ?>" onclick="return delete_fact(this.dataset.confirm, '<?= e($fact->record()->tree()->name()) ?>', '<?= e($fact->record()->xref()) ?>', '<?= e($fact->id()) ?>');" title="<?= I18N::translate('Delete') ?>">
4    <?= view('icons/delete') ?>
5    <span class="sr-only"><?= I18N::translate('Delete') ?></span>
6</a>
7