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