xref: /webtrees/resources/views/modules/user_blog/edit.phtml (revision 10e0649788c8d7d4974d81c048ca2b225df8f22e)
1d70512abSGreg Roach<?php
2d70512abSGreg Roach
3*10e06497SGreg Roachdeclare(strict_types=1);
4*10e06497SGreg Roach
58e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UserPage;
6d70512abSGreg Roachuse Fisharebest\Webtrees\I18N;
7dc270d8cSGreg Roachuse Fisharebest\Webtrees\Tree;
8dc270d8cSGreg Roach
9dc270d8cSGreg Roach/**
10dc270d8cSGreg Roach * @var string $body
11dc270d8cSGreg Roach * @var string $subject
12dc270d8cSGreg Roach * @var string $title
13dc270d8cSGreg Roach * @var Tree   $tree
14dc270d8cSGreg 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(UserPage::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