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