xref: /webtrees/resources/views/modules/edit-block-config.phtml (revision 2ada9ea4cb12abae4cb4824ae5606c52b5b0be74)
1<?php
2
3use Fisharebest\Webtrees\I18N;
4use Fisharebest\Webtrees\Module\ModuleBlockInterface;
5use Fisharebest\Webtrees\Tree;
6
7/**
8 * @var ModuleBlockInterface $block
9 * @var int                  $block_id
10 * @var string               $cancel_url
11 * @var string               $save_url
12 * @var string               $title
13 * @var Tree                 $tree
14 */
15
16?>
17
18<h2 class="wt-page-title">
19    <?= $title ?>
20</h2>
21
22<p>
23    <?= $block->description() ?>
24</p>
25
26<form method="post" action="<?= e($save_url) ?>">
27    <?= $block->editBlockConfiguration($tree, $block_id) ?>
28
29    <div class="row mb-3">
30        <div class="offset-sm-3 col-sm-9">
31            <button type="submit" class="btn btn-primary">
32                <?= view('icons/save') ?>
33                <?= I18N::translate('save') ?>
34            </button>
35            <a class="btn btn-secondary" href="<?= e($cancel_url) ?>">
36                <?= view('icons/cancel') ?>
37                <?= I18N::translate('cancel') ?>
38            </a>
39        </div>
40    </div>
41
42    <?= csrf_field() ?>
43</form>
44