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 <?= 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