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