1<?php 2 3use Fisharebest\Webtrees\Http\RequestHandlers\TreePage; 4use Fisharebest\Webtrees\I18N; 5use Fisharebest\Webtrees\Tree; 6 7/** 8 * @var string $body 9 * @var string $subject 10 * @var string $title 11 * @var Tree $tree 12 */ 13 14?> 15 16<h2><?= $title ?></h2> 17 18<form method="post"> 19 <table> 20 <tr> 21 <th> 22 <label for="subject"> 23 <?= I18N::translate('Title') ?> 24 </label> 25 </th> 26 <tr> 27 <tr> 28 <td> 29 <input type="text" id="subject" name="subject" size="50" dir="auto" autofocus value="<?= e($subject) ?>"> 30 </td> 31 </tr> 32 <tr> 33 <th> 34 <label for="body"> 35 <?= I18N::translate('Content') ?> 36 </label> 37 </th> 38 </tr> 39 <tr> 40 <td> 41 <textarea id="body" name="body" class="html-edit form-control" rows="10" dir="auto"><?= e($body) ?></textarea> 42 </td> 43 </tr> 44 45 <tr> 46 <td> 47 <button class="btn btn-primary" type="submit"> 48 <?= I18N::translate('save') ?> 49 </button> 50 51 <a class="btn btn-secondary" href="<?= e(route(TreePage::class, ['tree' => $tree->name()])) ?>"> 52 <?= I18N::translate('cancel') ?> 53 </a> 54 </td> 55 </tr> 56 </table> 57 58 <?= csrf_field() ?> 59</form> 60