xref: /webtrees/resources/views/modules/edit-block-config.phtml (revision 10e0649788c8d7d4974d81c048ca2b225df8f22e)
1d70512abSGreg Roach<?php
2d70512abSGreg Roach
3*10e06497SGreg Roachdeclare(strict_types=1);
4*10e06497SGreg Roach
5d70512abSGreg Roachuse Fisharebest\Webtrees\I18N;
67c2c99faSGreg Roachuse Fisharebest\Webtrees\Module\ModuleBlockInterface;
77c2c99faSGreg Roachuse Fisharebest\Webtrees\Tree;
87c2c99faSGreg Roach
97c2c99faSGreg Roach/**
107c2c99faSGreg Roach * @var ModuleBlockInterface $block
117c2c99faSGreg Roach * @var int                  $block_id
127c2c99faSGreg Roach * @var string               $cancel_url
13b55cbc6bSGreg Roach * @var string               $save_url
147c2c99faSGreg Roach * @var string               $title
157c2c99faSGreg Roach * @var Tree                 $tree
167c2c99faSGreg Roach */
17d70512abSGreg Roach
18d70512abSGreg Roach?>
19dd6b2bfcSGreg Roach
20dd6b2bfcSGreg Roach<h2 class="wt-page-title">
21dd6b2bfcSGreg Roach    <?= $title ?>
22dd6b2bfcSGreg Roach</h2>
23dd6b2bfcSGreg Roach
24dd6b2bfcSGreg Roach<p>
2549a243cbSGreg Roach    <?= $block->description() ?>
26dd6b2bfcSGreg Roach</p>
27dd6b2bfcSGreg Roach
28b55cbc6bSGreg Roach<form method="post" action="<?= e($save_url) ?>">
29dd6b2bfcSGreg Roach    <?= $block->editBlockConfiguration($tree, $block_id) ?>
30dd6b2bfcSGreg Roach
319e3c2cf9SGreg Roach    <div class="row mb-3">
32dd6b2bfcSGreg Roach        <div class="offset-sm-3 col-sm-9">
33dd6b2bfcSGreg Roach            <button type="submit" class="btn btn-primary">
34d993d560SGreg Roach                <?= view('icons/save') ?>
35dd6b2bfcSGreg Roach                <?= I18N::translate('save') ?>
36dd6b2bfcSGreg Roach            </button>
37dd6b2bfcSGreg Roach            <a class="btn btn-secondary" href="<?= e($cancel_url) ?>">
38d993d560SGreg Roach                <?= view('icons/cancel') ?>
39dd6b2bfcSGreg Roach                <?= I18N::translate('cancel') ?>
40dd6b2bfcSGreg Roach            </a>
41dd6b2bfcSGreg Roach        </div>
42dd6b2bfcSGreg Roach    </div>
4381443e3cSGreg Roach
4481443e3cSGreg Roach    <?= csrf_field() ?>
45dd6b2bfcSGreg Roach</form>
46