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