1d70512abSGreg Roach<?php 2d70512abSGreg Roach 3*10e06497SGreg Roachdeclare(strict_types=1); 4*10e06497SGreg Roach 58e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\TreePage; 6d70512abSGreg Roachuse Fisharebest\Webtrees\I18N; 77c2c99faSGreg Roachuse Fisharebest\Webtrees\Tree; 87c2c99faSGreg Roach 97c2c99faSGreg Roach/** 107c2c99faSGreg Roach * @var string $body 117c2c99faSGreg Roach * @var string $subject 127c2c99faSGreg Roach * @var string $title 137c2c99faSGreg Roach * @var Tree $tree 147c2c99faSGreg Roach */ 15d70512abSGreg Roach 16d70512abSGreg Roach?> 17dd6b2bfcSGreg Roach 18dd6b2bfcSGreg Roach<h2><?= $title ?></h2> 19dd6b2bfcSGreg Roach 20dd6b2bfcSGreg Roach<form method="post"> 21dd6b2bfcSGreg Roach <table> 22dd6b2bfcSGreg Roach <tr> 23dd6b2bfcSGreg Roach <th> 24dd6b2bfcSGreg Roach <label for="subject"> 25dd6b2bfcSGreg Roach <?= I18N::translate('Title') ?> 26dd6b2bfcSGreg Roach </label> 27dd6b2bfcSGreg Roach </th> 28dd6b2bfcSGreg Roach <tr> 29dd6b2bfcSGreg Roach <tr> 30dd6b2bfcSGreg Roach <td> 31dd6b2bfcSGreg Roach <input type="text" id="subject" name="subject" size="50" dir="auto" autofocus value="<?= e($subject) ?>"> 32dd6b2bfcSGreg Roach </td> 33dd6b2bfcSGreg Roach </tr> 34dd6b2bfcSGreg Roach <tr> 35dd6b2bfcSGreg Roach <th> 36dd6b2bfcSGreg Roach <label for="body"> 37dd6b2bfcSGreg Roach <?= I18N::translate('Content') ?> 38dd6b2bfcSGreg Roach </label> 39dd6b2bfcSGreg Roach </th> 40dd6b2bfcSGreg Roach </tr> 41dd6b2bfcSGreg Roach <tr> 42dd6b2bfcSGreg Roach <td> 43dd6b2bfcSGreg Roach <textarea id="body" name="body" class="html-edit form-control" rows="10" dir="auto"><?= e($body) ?></textarea> 44dd6b2bfcSGreg Roach </td> 45dd6b2bfcSGreg Roach </tr> 46dd6b2bfcSGreg Roach 47dd6b2bfcSGreg Roach <tr> 48dd6b2bfcSGreg Roach <td> 49dd6b2bfcSGreg Roach <button class="btn btn-primary" type="submit"> 50dd6b2bfcSGreg Roach <?= I18N::translate('save') ?> 51dd6b2bfcSGreg Roach </button> 52dd6b2bfcSGreg Roach 538e0e1b25SGreg Roach <a class="btn btn-secondary" href="<?= e(route(TreePage::class, ['tree' => $tree->name()])) ?>"> 54dd6b2bfcSGreg Roach <?= I18N::translate('cancel') ?> 55dd6b2bfcSGreg Roach </a> 56dd6b2bfcSGreg Roach </td> 57dd6b2bfcSGreg Roach </tr> 58dd6b2bfcSGreg Roach </table> 5981443e3cSGreg Roach 6081443e3cSGreg Roach <?= csrf_field() ?> 61dd6b2bfcSGreg Roach</form> 62