xref: /webtrees/resources/views/edit-blocks-block.phtml (revision 1ff45046fabc22237b5d0d8e489c96f031fc598d)
1<?php
2
3declare(strict_types=1);
4
5use Fisharebest\Webtrees\I18N;
6use Fisharebest\Webtrees\Module\ModuleBlockInterface;
7
8/**
9 * @var ModuleBlockInterface $block
10 * @var int|string           $block_id
11 */
12
13?>
14
15<div class="card wt-block" id="block-<?= e($block_id) ?>">
16    <div class="card-header wt-block-header p-2 d-flex justify-content-between">
17        <div>
18            <input type="hidden" name="blocks[]" value="<?= e($block_id) ?>">
19
20            <span class="drag-handle">
21                <?= view('icons/drag-handle') ?>
22            </span>
23
24            <span title="<?= I18N::translate('Block') ?> <?= e($block_id) ?>">
25                <?= $block->title() ?>
26            </span>
27        </div>
28
29        <div>
30            <span title="<?= I18N::translate('Delete') ?>">
31                <?= view('icons/delete') ?>
32            </span>
33
34            <span title="<?= e($block->description()) ?>">
35                <?= view('icons/help') ?>
36            </span>
37        </div>
38    </div>
39</div>
40