xref: /webtrees/resources/views/modules/user_blog/edit.phtml (revision dc270d8cc5085ed29f3f419c99734ddd0960c624)
1d70512abSGreg Roach<?php
2d70512abSGreg Roach
38e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UserPage;
4d70512abSGreg Roachuse Fisharebest\Webtrees\I18N;
5*dc270d8cSGreg Roachuse Fisharebest\Webtrees\Tree;
6*dc270d8cSGreg Roach
7*dc270d8cSGreg Roach/**
8*dc270d8cSGreg Roach * @var string $body
9*dc270d8cSGreg Roach * @var string $subject
10*dc270d8cSGreg Roach * @var string $title
11*dc270d8cSGreg Roach * @var Tree   $tree
12*dc270d8cSGreg Roach */
13d70512abSGreg Roach
14d70512abSGreg Roach?>
15dd6b2bfcSGreg Roach
16dd6b2bfcSGreg Roach<h2><?= $title ?></h2>
17dd6b2bfcSGreg Roach
18dd6b2bfcSGreg Roach<form method="post">
19dd6b2bfcSGreg Roach    <?= csrf_field() ?>
20dd6b2bfcSGreg Roach
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(UserPage::class, ['tree' => $tree->name()])) ?>">
54dd6b2bfcSGreg Roach                    <?= I18N::translate('cancel') ?>
55dd6b2bfcSGreg Roach                </a>
56dd6b2bfcSGreg Roach            </td>
57dd6b2bfcSGreg Roach        </tr>
58dd6b2bfcSGreg Roach    </table>
59dd6b2bfcSGreg Roach</form>
60