xref: /webtrees/resources/views/modules/edit-block-config.phtml (revision d4ec5ec0fe611c85b1d77527db3e9becde7e473d)
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               $title
12 * @var Tree                 $tree
13 */
14
15?>
16
17<h2 class="wt-page-title">
18    <?= $title ?>
19</h2>
20
21<p>
22    <?= $block->description() ?>
23</p>
24
25<form method="post">
26    <input type="hidden" name="save" value="1">
27    <?= csrf_field() ?>
28
29    <?= $block->editBlockConfiguration($tree, $block_id) ?>
30
31    <div class="row form-group mb-3">
32        <div class="offset-sm-3 col-sm-9">
33            <button type="submit" class="btn btn-primary">
34                <?= view('icons/save') ?>
35                <?= I18N::translate('save') ?>
36            </button>
37            <a class="btn btn-secondary" href="<?= e($cancel_url) ?>">
38                <?= view('icons/cancel') ?>
39                <?= I18N::translate('cancel') ?>
40            </a>
41        </div>
42    </div>
43</form>
44